Rework trigger to operate on work queue and timers without jitter

This commit is contained in:
Lorenz Meier
2015-08-07 14:35:56 +02:00
parent e0f203e3da
commit 06a4e9c585
2 changed files with 134 additions and 119 deletions

View File

@@ -51,19 +51,19 @@
* @max 500.0
* @group Camera trigger
*/
PARAM_DEFINE_FLOAT(TRIG_INT_TIME, 300.0f);
PARAM_DEFINE_FLOAT(TRIG_INT_TIME, 1.0f);
/**
* Camera trigger transfer time
* Camera trigger interval
*
* This parameter sets the time the image transfer takes (PointGrey mode_0)
* This parameter sets the time between two consecutive trigger events
*
* @unit milliseconds
* @min 15.0
* @max 33.0
* @group Camera trigger
*/
PARAM_DEFINE_FLOAT(TRIG_TRANS_TIME, 15.0f);
PARAM_DEFINE_FLOAT(TRIG_INTERVAL, 15.0f);
/**
* Camera trigger polarity
@@ -79,10 +79,20 @@ PARAM_DEFINE_INT32(TRIG_POLARITY, 0);
/**
* Camera trigger activation time
*
* This parameter sets the time the trigger needs to pulled high or low to start light
* integration.
* This parameter sets the time the trigger needs to pulled high or low.
*
* @unit milliseconds
* @group Camera trigger
*/
PARAM_DEFINE_FLOAT(TRIG_ACT_TIME, 5.0f);
PARAM_DEFINE_FLOAT(TRIG_ACT_TIME, 0.5f);
/**
* Camera trigger mode
*
* 0 disables the trigger, 1 sets it to enabled on command, 2 always on
*
* @min 0
* @max 2
* @group Camera trigger
*/
PARAM_DEFINE_INT32(TRIG_MODE, 0);