mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 18:51:36 +08:00
Omni Pos-Ctrl: Defined MC_OMNI_MODE PX4 parameter in the position controller
This commit is contained in:
@@ -172,7 +172,8 @@ private:
|
||||
(ParamInt<px4::params::MPC_ALT_MODE>) _param_mpc_alt_mode,
|
||||
(ParamFloat<px4::params::MPC_TILTMAX_LND>) _param_mpc_tiltmax_lnd, /**< maximum tilt for landing and smooth takeoff */
|
||||
(ParamFloat<px4::params::MPC_THR_MIN>) _param_mpc_thr_min,
|
||||
(ParamFloat<px4::params::MPC_THR_MAX>) _param_mpc_thr_max
|
||||
(ParamFloat<px4::params::MPC_THR_MAX>) _param_mpc_thr_max,
|
||||
(ParamInt<px4::params::MC_OMNI_MODE>) _param_mc_omni_mode
|
||||
);
|
||||
|
||||
control::BlockDerivative _vel_x_deriv; /**< velocity derivative in x */
|
||||
|
||||
@@ -745,3 +745,17 @@ PARAM_DEFINE_FLOAT(MPC_SPOOLUP_TIME, 1.0f);
|
||||
* @group Mission
|
||||
*/
|
||||
PARAM_DEFINE_INT32(MPC_YAW_MODE, 0);
|
||||
|
||||
/**
|
||||
* Omni-directional Controller mode.
|
||||
*
|
||||
* Specifies the heading in Auto.
|
||||
*
|
||||
* @min 0
|
||||
* @max 2
|
||||
* @value 0 tilted attitude
|
||||
* @value 1 daisy-chain tilt/no-tilt attitude
|
||||
* @value 2 constant zero tilt
|
||||
* @group Multicopter Attitude Control
|
||||
*/
|
||||
PARAM_DEFINE_INT32(MC_OMNI_MODE, 0);
|
||||
|
||||
Reference in New Issue
Block a user