forked from Archive/PX4-Autopilot
TECS: run underspeed detection method before calculating speed demand
- the method in TECS for detecting an underspeed condition was run after the method which calculated the airspeed demand. As a result the specific engergy balance error signal showed a spike when TECS detected an underspeed condition. Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
parent
dc6ca7c372
commit
eec55a0918
|
@ -583,14 +583,15 @@ void TECS::update_pitch_throttle(const math::Matrix<3,3> &rotMat, float pitch, f
|
|||
// Calculate Specific Total Energy Rate Limits
|
||||
_update_STE_rate_lim();
|
||||
|
||||
// Detect underspeed condition
|
||||
_detect_underspeed();
|
||||
|
||||
// Calculate the speed demand
|
||||
_update_speed_demand();
|
||||
|
||||
// Calculate the height demand
|
||||
_update_height_demand(hgt_dem, baro_altitude);
|
||||
|
||||
// Detect underspeed condition
|
||||
_detect_underspeed();
|
||||
|
||||
// Calculate specific energy quantitiues
|
||||
_update_energies();
|
||||
|
|
Loading…
Reference in New Issue