Browse Source

Update src/lib/tecs/TECS.cpp

Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com>
release/1.12
Roman Bapst 4 years ago
parent
commit
701c105ab6
  1. 4
      src/lib/tecs/TECS.cpp

4
src/lib/tecs/TECS.cpp

@ -254,10 +254,8 @@ void TECS::_update_energy_estimates() @@ -254,10 +254,8 @@ void TECS::_update_energy_estimates()
// Calculate the specific energy balance demand which specifies how the available total
// energy should be allocated to speed (kinetic energy) and height (potential energy)
float SEB_setpoint = _SPE_setpoint * _SPE_weighting - _SKE_setpoint * _SKE_weighting;
// Calculate the specific energy balance error
_SEB_error = SEB_setpoint - (_SPE_estimate * _SPE_weighting - _SKE_estimate * _SKE_weighting);
_SEB_error = SEB_setpoint() - (_SPE_estimate * _SPE_weighting - _SKE_estimate * _SKE_weighting);
// Calculate specific energy rate demands in units of (m**2/sec**3)
_SPE_rate_setpoint = _hgt_rate_setpoint * CONSTANTS_ONE_G; // potential energy rate of change

Loading…
Cancel
Save