Plane: Updated highest airspeed limit when armed

This commit is contained in:
Sanket Sharma 2022-04-17 23:04:57 +05:30 committed by Randy Mackay
parent 71cc0dc02d
commit ec2a33589c

View File

@ -9,7 +9,7 @@ float Plane::calc_speed_scaler(void)
{
float aspeed, speed_scaler;
if (ahrs.airspeed_estimate(aspeed)) {
if (aspeed > auto_state.highest_airspeed) {
if (aspeed > auto_state.highest_airspeed && hal.util->get_soft_armed()) {
auto_state.highest_airspeed = aspeed;
}
if (aspeed > 0.0001f) {