Straight-Line Driving; Automatic Balancing; Collision Detection - Kauai Labs VMX-pi User Manual

Robotics controller/motion & vision processor
Hide thumbs Also See for VMX-pi:
Table of Contents

Advertisement

Examples
Rotate to Angle
available in the navX-MXP RoboRIO libraries.
Driving a robot in a straight line using navX-Micro is very similar in nature to the Rotate to Angle
example, the only difference being that the robot will move in a direction, and continually adjust
the motors, just as in the Rotate to Angle example, to ensure that angular heading is
maintained.
This example also includes the functionality to "reset" the "yaw" angle, so that the heading
when forward motion starts is equivalent to zero degrees.
The PID Controller coefficients defined in the example code will need to be tuned for your drive
system, and you may wish the adjust the update rate from the sensor to match the speed at
which you wish to update the motors with new motor speeds.
FTC Android Example
Note: the link below leads to the navX-MXP website.
Automatic Balancing (FRC)
Note: the link below leads to the navX-MXP website.
Collision Detection (FRC)

Straight-line Driving

Automatic Balancing

Collision Detection

28

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents