VEX V5 - Inertial Sensor and Gyro Turn

Jump to Section:

  1. Intro
  2. Example Code
  3. Gyro Turn Application
  4. Calibration
  5. What's Inside

Intro

The inertial sensor is a combined 3 axis Gyro and a 3 axis Accelerometer.  The three axis are x,y,z and are perpendicular to each other.  Rotations about these axes are measured by the gyro. The accelerometer measures the acceleration in each of these directions.  To understand the 3 axis measurement of the gyro we need to understand the possible rotations of the robot. We will use the standard aerospace terms to name the different rotations, Pitch, Roll and Yaw.

A visual representation of rotations. This is from the Nasa Glenn Research Center  beginners guide to aeronautics. You can find a bunch more information by clicking through to their site.

Example Code

In this section we will take a look at what data we can get from the sensor and print it to the screen.