FW Position Controller: change airspeed setpoint init

-remove dedicated vtol transition airspeed init logic
-init airspeed setpoint on first usage of tecs
-init to max of current airspeed and min airspeed

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2023-12-21 11:34:28 +01:00
parent 27957e1f2f
commit 5211c358aa
2 changed files with 15 additions and 60 deletions
@@ -384,13 +384,8 @@ private:
bool _tecs_is_running{false};
// VTOL / TRANSITION
float _airspeed_after_transition{0.0f};
bool _was_in_transition{false};
bool _is_vtol_tailsitter{false};
matrix::Vector2d _transition_waypoint{(double)NAN, (double)NAN};
param_t _param_handle_airspeed_trans{PARAM_INVALID};
float _param_airspeed_trans{NAN}; // [m/s]
// ESTIMATOR RESET COUNTERS