/* Gets a whole set of gyro data including data, accuracy and timestamp.  */
void inv_get_gyro_set(long *data, int8_t *accuracy, inv_time_t *timestamp)
/* Gets a whole set of gyro data including data, accuracy and timestamp.  */
void inv_get_gyro_set(long *data, int8_t *accuracy, inv_time_t *timestamp)
{
    memcpy(data, sensors.gyro.calibrated, sizeof(sensors.gyro.calibrated));
    if (timestamp != NULL) {
        *timestamp = sensors.gyro.timestamp;
    }
    if (accuracy != NULL) {
        *accuracy = sensors.gyro.accuracy;
    }
}