mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Baro: update climb rate only if healthy
This commit is contained in:
parent
cc27fb46bf
commit
5732a6a144
@ -347,7 +347,9 @@ void AP_Baro::update(void)
|
||||
}
|
||||
|
||||
// ensure the climb rate filter is updated
|
||||
_climb_rate_filter.update(get_altitude(), get_last_update());
|
||||
if (healthy()) {
|
||||
_climb_rate_filter.update(get_altitude(), get_last_update());
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user