mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
MC_AIRMODE: move parameter definition to mixer_module
Makes sure that the parameter is included for the builds that need it.
This commit is contained in:
parent
077b229655
commit
1bee984bb0
18
src/lib/mixer_module/params.c
Normal file
18
src/lib/mixer_module/params.c
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
/**
|
||||
* Multicopter air-mode
|
||||
*
|
||||
* The air-mode enables the mixer to increase the total thrust of the multirotor
|
||||
* in order to keep attitude and rate control even at low and high throttle.
|
||||
*
|
||||
* This function should be disabled during tuning as it will help the controller
|
||||
* to diverge if the closed-loop is unstable (i.e. the vehicle is not tuned yet).
|
||||
*
|
||||
* Enabling air-mode for yaw requires the use of an arming switch.
|
||||
*
|
||||
* @value 0 Disabled
|
||||
* @value 1 Roll/Pitch
|
||||
* @value 2 Roll/Pitch/Yaw
|
||||
* @group Multicopter Attitude Control
|
||||
*/
|
||||
PARAM_DEFINE_INT32(MC_AIRMODE, 0);
|
||||
@ -609,21 +609,3 @@ PARAM_DEFINE_FLOAT(MC_TPA_RATE_D, 0.0f);
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MC_DTERM_CUTOFF, 0.f);
|
||||
|
||||
/**
|
||||
* Multicopter air-mode
|
||||
*
|
||||
* The air-mode enables the mixer to increase the total thrust of the multirotor
|
||||
* in order to keep attitude and rate control even at low and high throttle.
|
||||
*
|
||||
* This function should be disabled during tuning as it will help the controller
|
||||
* to diverge if the closed-loop is unstable (i.e. the vehicle is not tuned yet).
|
||||
*
|
||||
* Enabling air-mode for yaw requires the use of an arming switch.
|
||||
*
|
||||
* @value 0 Disabled
|
||||
* @value 1 Roll/Pitch
|
||||
* @value 2 Roll/Pitch/Yaw
|
||||
* @group Multicopter Attitude Control
|
||||
*/
|
||||
PARAM_DEFINE_INT32(MC_AIRMODE, 0);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user