/* Helper function stating whether the gyro is on or off.  */
int inv_get_gyro_on()
/* Helper function stating whether the gyro is on or off.  */
int inv_get_gyro_on()
{
    return (sensors.gyro.status & INV_SENSOR_ON) == INV_SENSOR_ON;
}