Examples
Data Monitor (FRC)
MXP I/O Expansion (FRC)
The “MXP I/O Expansion” example program demonstrates the use of the
capabilities of the navX2-MXP / navX-MXP, including the following capabilities:
DIGITAL I/O
Pulse-Width Modulation [PWM] (e.g., Motor Control)
Digital Inputs (e.g., Contact Switch closure)
Digital Outputs (e.g., Relay control)
Quadrature Encoders (e.g., Wheel Encoder)
ANALOG I/O
Analog Inputs (e.g., Ultrasonic Sensor)
Analog Input Trigger (e.g., Proximity Sensor trigger)
Analog Trigger Counter
Analog Output (e.g., Constant-current LED, Sound)
This example also demonstrates a simple method for calculating the ‘RoboRIO Channel Number’ which
corresponds to a given navX2-MXP /navX-MXP IO Pin number.
55