mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 15:23:34 +08:00
mc_pos_control: limit altitude
mc_pos_control: delete spaces mc_pos_control: cleanup and threshold for velocity control to altitude control when close to max altitude
This commit is contained in:
committed by
Lorenz Meier
parent
497a210742
commit
c8690fd072
@@ -424,7 +424,6 @@ PARAM_DEFINE_FLOAT(MPC_HOLD_XY_DZ, 0.1f);
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MPC_HOLD_Z_DZ, 0.1f);
|
||||
|
||||
|
||||
/**
|
||||
* Maximum horizontal velocity for which position hold is enabled (use 0 to disable check)
|
||||
*
|
||||
@@ -519,3 +518,15 @@ PARAM_DEFINE_INT32(MPC_ALT_MODE, 0);
|
||||
* @group Multicopter Position Control
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MPC_XY_MAN_EXPO, 0.0f);
|
||||
|
||||
/**
|
||||
* Maximum altitude that can be reached
|
||||
*
|
||||
* @unit m
|
||||
* @min 5
|
||||
* @max 150
|
||||
* @increment 1
|
||||
* @decimal 2
|
||||
* @group Multicopter Position Control
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MPC_ALTITUDE_MAX, 10.0f);
|
||||
|
||||
Reference in New Issue
Block a user