Kauai Labs navX-MXP User Manual page 45

Robotics navigation sensor
Table of Contents

Advertisement

Examples
Rotate to Angle (FRC)
The PID Controller coefficients defined in the example code will need to be tuned for your drive
system.
NOTE: The examples below are for Mecanum drive systems. If you are using a tank
(differential) drive system, this
For more details on this approach, please visit Chief Delphi, including this
FRC C++ Example
Full C++ source code on GitHub
FRC Java Example
Full Java Source code on GitHub
FRC LabView Example
The navX-MXP Rotate to Angle LabView example shows how to make small modifications to
the LabView "FRC RoboRIO Robot Project" using the "Mecanum Robot" configuration to
rotate the robot to a given angle.
RobotMain.vi
Place the NavX main vi on the block diagram and set it up to your needs. The default sample
rate is 50Hz. You may need to process faster for your situation. For the SPI, I2C and USB
connections the max sample rate is 200Hz.
Java example
is available.
helpful
post.
42

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Kauai Labs navX-MXP

Table of Contents