Hi!
Currently I am running a basic still image solution using
capture_cmd = dai.CameraControl()
capture_cmd.setCaptureStill(True)
I run a trigger every 500ms using the following:
def should_trigger(trigger_timestamp, every_ms=500):
if trigger_timestamp is None:
return True
delta = (dai.Clock.now() - trigger_timestamp).total_seconds() * 1000
return delta >= every_ms
From the main-loop:
trigger_timestamp = None
while True:
if should_trigger(trigger_timestamp):
trigger_timestamp = dai.Clock.now()
for _, q in q_map_in:
q.send(capture_cmd)
When receiving the messages the sequence numbers seems to depend on the timing of the trigger (adjusting 500ms)
I am using a blocking queue with length 1