diff --git a/tecs/tecs.cpp b/tecs/tecs.cpp index 9255ce0cd2..dd9809db1b 100644 --- a/tecs/tecs.cpp +++ b/tecs/tecs.cpp @@ -74,7 +74,7 @@ void TECS::update_vehicle_state_estimates(float airspeed, const matrix::Dcmf &ro } if (reset_altitude) { - _states_initalized = false; + _states_initialized = false; } _state_update_timestamp = now; @@ -100,7 +100,7 @@ void TECS::update_vehicle_state_estimates(float airspeed, const matrix::Dcmf &ro } if (!_in_air) { - _states_initalized = false; + _states_initialized = false; } } @@ -477,7 +477,7 @@ void TECS::_update_pitch_setpoint() void TECS::_initialize_states(float pitch, float throttle_cruise, float baro_altitude, float pitch_min_climbout, float EAS2TAS) { - if (_pitch_update_timestamp == 0 || _dt > DT_MAX || !_in_air || !_states_initalized) { + if (_pitch_update_timestamp == 0 || _dt > DT_MAX || !_in_air || !_states_initialized) { // On first time through or when not using TECS of if there has been a large time slip, // states must be reset to allow filters to a clean start _vert_vel_state = 0.0f; @@ -525,7 +525,7 @@ void TECS::_initialize_states(float pitch, float throttle_cruise, float baro_alt _uncommanded_descent_recovery = false; } - _states_initalized = true; + _states_initialized = true; } void TECS::_update_STE_rate_lim() diff --git a/tecs/tecs.h b/tecs/tecs.h index 7466f46496..03660564b4 100644 --- a/tecs/tecs.h +++ b/tecs/tecs.h @@ -89,7 +89,7 @@ public: float get_pitch_setpoint() { return _pitch_setpoint; } float get_speed_weight() { return _pitch_speed_weight; } - void reset_state() { _states_initalized = false; } + void reset_state() { _states_initialized = false; } enum ECL_TECS_MODE { ECL_TECS_MODE_NORMAL = 0, @@ -270,7 +270,7 @@ private: bool _uncommanded_descent_recovery{false}; ///< true when a continuous descent caused by an unachievable airspeed demand has been detected bool _climbout_mode_active{false}; ///< true when in climbout mode bool _airspeed_enabled{false}; ///< true when airspeed use has been enabled - bool _states_initalized{false}; ///< true when TECS states have been iniitalized + bool _states_initialized{false}; ///< true when TECS states have been iniitalized bool _in_air{false}; ///< true when the vehicle is flying /**