mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
AP_Baro: Delete the total temperature process.
AP_Baro: Delete the total temperature process.
This commit is contained in:
parent
0c9fd0ae93
commit
2d4dd1643d
@ -209,10 +209,8 @@ void AP_Baro::calibrate(bool save)
|
||||
hal.scheduler->delay(100);
|
||||
}
|
||||
|
||||
// now average over 5 values for the ground pressure and
|
||||
// temperature settings
|
||||
// now average over 5 values for the ground pressure settings
|
||||
float sum_pressure[BARO_MAX_INSTANCES] = {0};
|
||||
float sum_temperature[BARO_MAX_INSTANCES] = {0};
|
||||
uint8_t count[BARO_MAX_INSTANCES] = {0};
|
||||
const uint8_t num_samples = 5;
|
||||
|
||||
@ -228,7 +226,6 @@ void AP_Baro::calibrate(bool save)
|
||||
for (uint8_t i=0; i<_num_sensors; i++) {
|
||||
if (healthy(i)) {
|
||||
sum_pressure[i] += sensors[i].pressure;
|
||||
sum_temperature[i] += sensors[i].temperature;
|
||||
count[i] += 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user