Replies

  • Hi,

    It's telemetry log, right? It has got to be this, from Log.pde:

    static void NOINLINE send_raw_imu2(mavlink_channel_t chan)
    {
        mavlink_msg_scaled_pressure_send(
            chan,
            millis(),
            (float)barometer.get_pressure()/100.0,
            (float)(barometer.get_pressure() - barometer.get_ground_pressure())/100.0,
            (int)(barometer.get_temperature()*10));
    }

    Temperature is:

    float AP_Baro_MS5611::get_temperature()
    {
        // callers want the temperature in 0.1C units
        return Temp/10;
    }

    and the Temp variable is in 1/100 degrees C. So the log data appears to be 100ths of degrees C divided by 10, truncated and then multiplied by 10 again ... that is, in 100th of degrees C but rounded down to nearest lower 1/10 degree.

    Pressure is returned by the function in AP_Baro:

    get_pressure() : return pressure in mbar*100 units

    and then divided by 100 in Log.pde, so it appears to be mBar = hPa.

    Which sort of numbers do you see, is it consistent with this?

    Regards

    Soren

This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…