braid-triggerbox 0.6.0

camera synchronization trigger box for Braid
Documentation

braid-triggerbox

Host-side driver for the camera synchronization triggerbox used by Braid.

The triggerbox generates the hardware trigger pulses for a multi-camera setup. This crate talks to it over a USB serial port: it sets the trigger rate, starts and stops the pulses, and continuously measures the triggerbox clock to build a model relating trigger pulse numbers to host time. See synchronization.md for the theory of operation.

Two kinds of triggerbox are supported, both speaking the same protocol:

Example

examples/standalone-triggerbox-demo.rs drives a triggerbox and prints the clock model as it is updated:

cargo run --example standalone-triggerbox-demo -- --device /dev/ttyACM0 --fps 100

Run it with --help for all options. A Pico is ready immediately, so --sleep 0.5 shortens the default 7 second wait for an Arduino Nano to reset.

License

Licensed under either of the Apache License, Version 2.0 or the MIT license, at your option.