Failsafe PWM - Add PWM_MAIN/AUX_FAILx parameters to set "failsafe" values.

This commit is contained in:
bresch
2018-08-28 11:23:25 -04:00
committed by Daniel Agar
parent b0bbc56d12
commit 04c765f497
4 changed files with 290 additions and 0 deletions
+130
View File
@@ -101,6 +101,136 @@ PARAM_DEFINE_INT32(PWM_AUX_MAX, 2000);
*/
PARAM_DEFINE_INT32(PWM_AUX_DISARMED, 1500);
/******************************************************************************
* PWM_AUX_FAIL *
******************************************************************************/
/**
* Set the failsafe PWM for the auxiliary 1 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_AUX_FAIL1, -1);
/**
* Set the failsafe PWM for the auxiliary 2 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_AUX_FAIL2, -1);
/**
* Set the failsafe PWM for the auxiliary 3 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_AUX_FAIL3, -1);
/**
* Set the failsafe PWM for the auxiliary 4 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_AUX_FAIL4, -1);
/**
* Set the failsafe PWM for the auxiliary 5 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_AUX_FAIL5, -1);
/**
* Set the failsafe PWM for the auxiliary 6 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_AUX_FAIL6, -1);
/**
* Set the failsafe PWM for the auxiliary 7 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_AUX_FAIL7, -1);
/**
* Set the failsafe PWM for the auxiliary 8 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_AUX_FAIL8, -1);
/******************************************************************************
* PWM_AUX_DIS *
+132
View File
@@ -101,6 +101,138 @@ PARAM_DEFINE_INT32(PWM_MAX, 2000);
*/
PARAM_DEFINE_INT32(PWM_DISARMED, 900);
/******************************************************************************
* PWM_MAIN_FAIL *
******************************************************************************/
/**
* Set the failsafe PWM for the main 1 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_MAIN_FAIL1, -1);
/**
* Set the failsafe PWM for the main 2 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_MAIN_FAIL2, -1);
/**
* Set the failsafe PWM for the main 3 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_MAIN_FAIL3, -1);
/**
* Set the failsafe PWM for the main 4 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_MAIN_FAIL4, -1);
/**
* Set the failsafe PWM for the main 5 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_MAIN_FAIL5, -1);
/**
* Set the failsafe PWM for the main 6 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_MAIN_FAIL6, -1);
/**
* Set the failsafe PWM for the main 7 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_MAIN_FAIL7, -1);
/**
* Set the failsafe PWM for the main 8 output
*
* This is the PWM pulse the autopilot is outputting if in failsafe mode.
* When set to -1 the value is set automatically depending if the actuator
* is a motor (900us) or a servo (1500us)
*
* @reboot_required true
*
* @min -1
* @max 2200
* @unit us
* @group PWM Outputs
*/
PARAM_DEFINE_INT32(PWM_MAIN_FAIL8, -1);
/******************************************************************************
* PWM_MAIN_DIS *
******************************************************************************/