/* Acceleration (g's) in body frame. Embedded MPL defines gravity as positive acceleration pointing away from the Earth.  */
int inv_get_sensor_type_accel(long *data, int8_t *accuracy, inv_time_t *timestamp)
/* Acceleration (g's) in body frame. Embedded MPL defines gravity as positive acceleration pointing away from the Earth.  */
int inv_get_sensor_type_accel(long *data, int8_t *accuracy, inv_time_t *timestamp)
{
    inv_get_accel_set(data, accuracy, timestamp);
    if (eMPL_out.accel_status & INV_NEW_DATA)
        return 1;
    else
        return 0;
}