Examples
Automatic Balancing (FRC)
FRC C++ Example
Full C++ source code on GitHub
FRC Java Example
Full Java Source code on GitHub
FRC LabView Example
The navX-MXP AutoBalance LabView example shows how to make small modifications to the
LabView "FRC RoboRIO Robot Project" using the "Mecanum Robot" configuration to
implement high-accuracy Automatic Balancing.
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.
45