|
|
@ -378,8 +378,8 @@ int TemperatureCompensation::apply_corrections_gyro(int topic_instance, math::Ve |
|
|
|
|
|
|
|
|
|
|
|
int8_t temperaturei = (int8_t)temperature; |
|
|
|
int8_t temperaturei = (int8_t)temperature; |
|
|
|
|
|
|
|
|
|
|
|
if (temperaturei != _gyro_data.last_temperature) { |
|
|
|
if (temperaturei != _gyro_data.last_temperature[topic_instance]) { |
|
|
|
_gyro_data.last_temperature = temperaturei; |
|
|
|
_gyro_data.last_temperature[topic_instance] = temperaturei; |
|
|
|
return 2; |
|
|
|
return 2; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -409,8 +409,8 @@ int TemperatureCompensation::apply_corrections_accel(int topic_instance, math::V |
|
|
|
|
|
|
|
|
|
|
|
int8_t temperaturei = (int8_t)temperature; |
|
|
|
int8_t temperaturei = (int8_t)temperature; |
|
|
|
|
|
|
|
|
|
|
|
if (temperaturei != _accel_data.last_temperature) { |
|
|
|
if (temperaturei != _accel_data.last_temperature[topic_instance]) { |
|
|
|
_accel_data.last_temperature = temperaturei; |
|
|
|
_accel_data.last_temperature[topic_instance] = temperaturei; |
|
|
|
return 2; |
|
|
|
return 2; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -438,8 +438,8 @@ int TemperatureCompensation::apply_corrections_baro(int topic_instance, float &s |
|
|
|
|
|
|
|
|
|
|
|
int8_t temperaturei = (int8_t)temperature; |
|
|
|
int8_t temperaturei = (int8_t)temperature; |
|
|
|
|
|
|
|
|
|
|
|
if (temperaturei != _baro_data.last_temperature) { |
|
|
|
if (temperaturei != _baro_data.last_temperature[topic_instance]) { |
|
|
|
_baro_data.last_temperature = temperaturei; |
|
|
|
_baro_data.last_temperature[topic_instance] = temperaturei; |
|
|
|
return 2; |
|
|
|
return 2; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|