mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 09:33:34 +08:00
Camera trigger update (#4998)
* updating the camera driver, correct init and keepAlive function * removing debug output
This commit is contained in:
committed by
Lorenz Meier
parent
15880f8d13
commit
9974b6f747
@@ -36,25 +36,12 @@
|
||||
* Camera trigger parameters
|
||||
*
|
||||
* @author Mohammed Kabir <mhkabir98@gmail.com>
|
||||
* @author Andreas Bircher <andreas@wingtra.com>
|
||||
*/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <systemlib/param/param.h>
|
||||
|
||||
/**
|
||||
* Camera trigger Interface
|
||||
*
|
||||
* Selects the trigger interface
|
||||
*
|
||||
* @value 1 GPIO
|
||||
* @value 2 Seagull MAP2 (PWM)
|
||||
*
|
||||
* @reboot_required true
|
||||
*
|
||||
* @group Camera trigger
|
||||
*/
|
||||
PARAM_DEFINE_INT32(TRIG_INTERFACE, 2);
|
||||
|
||||
/**
|
||||
* Camera trigger Interface
|
||||
*
|
||||
@@ -102,7 +89,7 @@ PARAM_DEFINE_INT32(TRIG_POLARITY, 0);
|
||||
*
|
||||
* @unit ms
|
||||
* @min 0.1
|
||||
* @max 3
|
||||
* @max 3000
|
||||
* @decimal 1
|
||||
* @group Camera trigger
|
||||
*/
|
||||
@@ -126,7 +113,9 @@ PARAM_DEFINE_INT32(TRIG_MODE, 0);
|
||||
/**
|
||||
* Camera trigger pin
|
||||
*
|
||||
* Selects which pin is used, ranges from 1 to 6 (AUX1-AUX6)
|
||||
* Selects which pin is used, ranges from 1 to 6 (AUX1-AUX6 on px4fmu-v2 and the rail
|
||||
* pins on px4fmu-v4). The PWM interface takes two pins per camera, while relay
|
||||
* triggers on every pin individually. Example: Value 34 would trigger on pins 3 and 4.
|
||||
*
|
||||
* @min 1
|
||||
* @max 123456
|
||||
|
||||
Reference in New Issue
Block a user