mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:03:35 +08:00
PWM parameters centralize under sensors and add aux 7&8
This commit is contained in:
@@ -31,138 +31,6 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/**
|
||||
* Invert direction of aux output channel 1
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_REV1, 0);
|
||||
|
||||
/**
|
||||
* Invert direction of aux output channel 2
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_REV2, 0);
|
||||
|
||||
/**
|
||||
* Invert direction of aux output channel 3
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_REV3, 0);
|
||||
|
||||
/**
|
||||
* Invert direction of aux output channel 4
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_REV4, 0);
|
||||
|
||||
/**
|
||||
* Invert direction of aux output channel 5
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_REV5, 0);
|
||||
|
||||
/**
|
||||
* Invert direction of aux output channel 6
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_REV6, 0);
|
||||
|
||||
/**
|
||||
* Trim value for FMU PWM output channel 1
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_AUX_TRIM1, 0);
|
||||
|
||||
/**
|
||||
* Trim value for FMU PWM output channel 2
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_AUX_TRIM2, 0);
|
||||
|
||||
/**
|
||||
* Trim value for FMU PWM output channel 3
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_AUX_TRIM3, 0);
|
||||
|
||||
/**
|
||||
* Trim value for FMU PWM output channel 4
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_AUX_TRIM4, 0);
|
||||
|
||||
/**
|
||||
* Trim value for FMU PWM output channel 5
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_AUX_TRIM5, 0);
|
||||
|
||||
/**
|
||||
* Trim value for FMU PWM output channel 6
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_AUX_TRIM6, 0);
|
||||
|
||||
/**
|
||||
* Thrust to PWM model parameter
|
||||
*
|
||||
|
||||
@@ -55,182 +55,6 @@
|
||||
*/
|
||||
PARAM_DEFINE_INT32(SYS_USE_IO, 1);
|
||||
|
||||
/**
|
||||
* Invert direction of main output channel 1
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_REV1, 0);
|
||||
|
||||
/**
|
||||
* Invert direction of main output channel 2
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_REV2, 0);
|
||||
|
||||
/**
|
||||
* Invert direction of main output channel 3
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_REV3, 0);
|
||||
|
||||
/**
|
||||
* Invert direction of main output channel 4
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_REV4, 0);
|
||||
|
||||
/**
|
||||
* Invert direction of main output channel 5
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_REV5, 0);
|
||||
|
||||
/**
|
||||
* Invert direction of main output channel 6
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_REV6, 0);
|
||||
|
||||
/**
|
||||
* Invert direction of main output channel 7
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_REV7, 0);
|
||||
|
||||
/**
|
||||
* Invert direction of main output channel 8
|
||||
*
|
||||
* Enable to invert the channel.
|
||||
*
|
||||
* @boolean
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_REV8, 0);
|
||||
|
||||
/**
|
||||
* Trim value for main output channel 1
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_MAIN_TRIM1, 0);
|
||||
|
||||
/**
|
||||
* Trim value for main output channel 2
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_MAIN_TRIM2, 0);
|
||||
|
||||
/**
|
||||
* Trim value for main output channel 3
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_MAIN_TRIM3, 0);
|
||||
|
||||
/**
|
||||
* Trim value for main output channel 4
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_MAIN_TRIM4, 0);
|
||||
|
||||
/**
|
||||
* Trim value for main output channel 5
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_MAIN_TRIM5, 0);
|
||||
|
||||
/**
|
||||
* Trim value for main output channel 6
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_MAIN_TRIM6, 0);
|
||||
|
||||
/**
|
||||
* Trim value for main output channel 7
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_MAIN_TRIM7, 0);
|
||||
|
||||
/**
|
||||
* Trim value for main output channel 8
|
||||
*
|
||||
* Set to normalized offset
|
||||
*
|
||||
* @min -0.2
|
||||
* @max 0.2
|
||||
* @decimal 2
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(PWM_MAIN_TRIM8, 0);
|
||||
|
||||
/**
|
||||
* S.BUS out
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user