mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 09:43:34 +08:00
FW Pos Control: add in_takeoff_situation argument to adapt_airspeed_setpoint()
when we're in a takeoff situation, we only want to adapt the airspeed to avoid accelerated stall due to load factor changes. Disable othre logic like minimum ground speed, wind based adaption and airspeed slew rating. Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Thomas Stastny
parent
78eb0cdb72
commit
f1b47b14b8
@@ -669,10 +669,11 @@ private:
|
||||
* @param calibrated_airspeed_setpoint Calibrated airspeed septoint (generally from the position setpoint) [m/s]
|
||||
* @param calibrated_min_airspeed Minimum calibrated airspeed [m/s]
|
||||
* @param ground_speed Vehicle ground velocity vector (NE) [m/s]
|
||||
* @param in_takeoff_situation Vehicle is currently in a takeoff situation
|
||||
* @return Adjusted calibrated airspeed setpoint [m/s]
|
||||
*/
|
||||
float adapt_airspeed_setpoint(const float control_interval, float calibrated_airspeed_setpoint,
|
||||
float calibrated_min_airspeed, const Vector2f &ground_speed);
|
||||
float calibrated_min_airspeed, const Vector2f &ground_speed, bool in_takeoff_situation = false);
|
||||
|
||||
void reset_takeoff_state();
|
||||
void reset_landing_state();
|
||||
|
||||
Reference in New Issue
Block a user