mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 07:50:35 +08:00
PWM - Add PWM_MIN and PWM_MAX parameters for MAIN and AUX (#10452)
This commit is contained in:
@@ -101,6 +101,252 @@ PARAM_DEFINE_INT32(PWM_AUX_MAX, 2000);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_DISARMED, 1500);
|
||||
|
||||
/******************************************************************************
|
||||
* PWM_AUX_MIN *
|
||||
******************************************************************************/
|
||||
/**
|
||||
* Set the min PWM value for the auxiliary 1 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MIN1, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the auxiliary 2 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MIN2, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the auxiliary 3 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MIN3, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the auxiliary 4 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MIN4, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the auxiliary 5 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MIN5, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the auxiliary 6 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MIN6, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the auxiliary 7 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MIN7, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the auxiliary 8 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MIN8, -1);
|
||||
|
||||
/******************************************************************************
|
||||
* PWM_AUX_MAX *
|
||||
******************************************************************************/
|
||||
/**
|
||||
* Set the max PWM value for the auxiliary 1 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MAX1, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the auxiliary 2 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MAX2, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the auxiliary 3 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MAX3, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the auxiliary 4 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MAX4, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the auxiliary 5 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MAX5, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the auxiliary 6 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MAX6, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the auxiliary 7 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MAX7, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the auxiliary 8 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_AUX_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_AUX_MAX8, -1);
|
||||
|
||||
/******************************************************************************
|
||||
* PWM_AUX_FAIL *
|
||||
******************************************************************************/
|
||||
|
||||
@@ -101,6 +101,252 @@ PARAM_DEFINE_INT32(PWM_MAX, 2000);
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_DISARMED, 900);
|
||||
|
||||
/******************************************************************************
|
||||
* PWM_MAIN_MIN *
|
||||
******************************************************************************/
|
||||
/**
|
||||
* Set the min PWM value for the main 1 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MIN1, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the main 2 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MIN2, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the main 3 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MIN3, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the main 4 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MIN4, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the main 5 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MIN5, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the main 6 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MIN6, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the main 7 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MIN7, -1);
|
||||
|
||||
/**
|
||||
* Set the min PWM value for the main 8 output
|
||||
*
|
||||
* This is the minimum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MIN will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MIN8, -1);
|
||||
|
||||
/******************************************************************************
|
||||
* PWM_MAIN_MAX *
|
||||
******************************************************************************/
|
||||
/**
|
||||
* Set the max PWM value for the main 1 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MAX1, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the main 2 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MAX2, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the main 3 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MAX3, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the main 4 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MAX4, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the main 5 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MAX5, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the main 6 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MAX6, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the main 7 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MAX7, -1);
|
||||
|
||||
/**
|
||||
* Set the max PWM value for the main 8 output
|
||||
*
|
||||
* This is the maximum PWM pulse the autopilot is allowed to output.
|
||||
* When set to -1 the value for PWM_MAX will be used
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min -1
|
||||
* @max 2200
|
||||
* @unit us
|
||||
* @group PWM Outputs
|
||||
*/
|
||||
PARAM_DEFINE_INT32(PWM_MAIN_MAX8, -1);
|
||||
|
||||
/******************************************************************************
|
||||
* PWM_MAIN_FAIL *
|
||||
******************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user