diff --git a/src/lib/external_lgpl/tecs/tecs.cpp b/src/lib/external_lgpl/tecs/tecs.cpp index cca01e6a3a..9fc847e440 100644 --- a/src/lib/external_lgpl/tecs/tecs.cpp +++ b/src/lib/external_lgpl/tecs/tecs.cpp @@ -621,7 +621,7 @@ void TECS::update_pitch_throttle(const math::Matrix<3,3> &rotMat, float pitch, f _tecs_state.total_energy_error = _STE_error; _tecs_state.energy_distribution_error = _SEB_error; _tecs_state.total_energy_rate_error = _STEdot_error; - _tecs_state.energy_distribution_error = _SEBdot_error; + _tecs_state.energy_distribution_rate_error = _SEBdot_error; _tecs_state.energy_error_integ = _integ6_state; _tecs_state.energy_distribution_error_integ = _integ7_state;