Examples
Use-Case
This example program demonstrates how to use the AndyMark IMU in an FTC OpMode. It initializes the sensor from the robot’s hardware map and continuously reads orientation and motion data while the OpMode is active. The IMU provides information such as angular orientation (heading, pitch, and roll), angular velocity, and linear acceleration. These values are updated in real time and displayed on the Driver Station screen, allowing users to see exactly how their robot is rotating and moving.
This example is especially useful for testing the IMU, understanding its output format, and verifying sensor mounting orientation. Teams can use it to develop field-centric drive systems, balance mechanisms, or autonomous routines that require precise robot orientation. Because the program is designed for direct sensor feedback, it can also be used as a diagnostic or learning tool without requiring advanced programming knowledge.
Mounting Examples

Configuration


Code Example

Last updated
Was this helpful?