From fa7f6d5421f036f24b9267065d06470da373d2ac Mon Sep 17 00:00:00 2001 From: George Zogopoulos Date: Thu, 20 Jun 2024 14:28:02 +0200 Subject: [PATCH] AP_TECS: Renamed flag --- libraries/AP_TECS/AP_TECS.cpp | 6 +++--- libraries/AP_TECS/AP_TECS.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_TECS/AP_TECS.cpp b/libraries/AP_TECS/AP_TECS.cpp index 8fe42a3b4e914b..cabac5c292a339 100644 --- a/libraries/AP_TECS/AP_TECS.cpp +++ b/libraries/AP_TECS/AP_TECS.cpp @@ -1175,16 +1175,16 @@ void AP_TECS::_initialise_states(int32_t ptchMinCO_cd, float hgt_afe) _pitch_measured_lpf.reset(_ahrs.get_pitch()); } - if (!_reset_after_takeoff) { + if (!_flag_have_reset_after_takeoff) { _flags.reset = true; - _reset_after_takeoff = true; + _flag_have_reset_after_takeoff = true; } } if (_flight_stage != AP_FixedWing::FlightStage::TAKEOFF && _flight_stage != AP_FixedWing::FlightStage::ABORT_LANDING) { // reset takeoff speed flag when not in takeoff _flags.reached_speed_takeoff = false; - _reset_after_takeoff = false; + _flag_have_reset_after_takeoff = false; } } diff --git a/libraries/AP_TECS/AP_TECS.h b/libraries/AP_TECS/AP_TECS.h index 30485f5c33dfef..002197134a7a15 100644 --- a/libraries/AP_TECS/AP_TECS.h +++ b/libraries/AP_TECS/AP_TECS.h @@ -420,7 +420,7 @@ class AP_TECS { bool _need_reset; // Checks if we reset at the beginning of takeoff. - bool _reset_after_takeoff{false}; + bool _flag_have_reset_after_takeoff; float _SKE_weighting;