mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 20:53:37 +08:00
mc_pos_control: improved smooth takeoff and used it for manual takeoff as well
adresses: there were setpoint twitches at the beginning and end of my smooth takeoff routine it was to slow and not configurable it was only available for automatic takeoff
This commit is contained in:
@@ -543,3 +543,15 @@ PARAM_DEFINE_FLOAT(MPC_LAND_ALT1, 10.0f);
|
||||
* @group Multicopter Position Control
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MPC_LAND_ALT2, 5.0f);
|
||||
|
||||
/**
|
||||
* Position control smooth takeoff ramp time constant
|
||||
*
|
||||
* Increasing this value will make automatic and manual takeoff slower.
|
||||
* If it's too slow the drone might scratch the ground and tip over.
|
||||
*
|
||||
* @min 0.1
|
||||
* @max 1
|
||||
* @group Multicopter Position Control
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MPC_TKO_RAMP_T, 0.4f);
|
||||
|
||||
Reference in New Issue
Block a user