mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 18:43:34 +08:00
Add camera trigger pwm params
Fix math::constrain usage Fix second constraint
This commit is contained in:
@@ -139,3 +139,29 @@ PARAM_DEFINE_INT32(TRIG_PINS, 56);
|
||||
* @group Camera trigger
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TRIG_DISTANCE, 25.0f);
|
||||
|
||||
/**
|
||||
* PWM output to trigger shot.
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @min 1000
|
||||
* @max 2000
|
||||
* @unit us
|
||||
* @group Camera trigger
|
||||
* @reboot_required true
|
||||
*/
|
||||
PARAM_DEFINE_INT32(TRIG_PWM_SHOOT, 1900);
|
||||
|
||||
|
||||
/**
|
||||
* PWM neutral output on trigger pin.
|
||||
*
|
||||
* @min 1000
|
||||
* @max 2000
|
||||
* @unit us
|
||||
* @group Camera trigger
|
||||
* @reboot_required true
|
||||
*/
|
||||
PARAM_DEFINE_INT32(TRIG_PWM_NEUTRAL, 1500);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user