blob: 74117d94c720197eef642cb2e96d3ad2edff1d85 [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001namespace y2019.control_loops.drivetrain;
2
3// See the Target structure in //y2019/jevois:structures.h for documentation.
4table CameraTarget {
Austin Schuhd7851b02020-11-14 13:46:27 -08005 distance:float (id: 0);
6 height:float (id: 1);
7 heading:float (id: 2);
8 skew:float (id: 3);
Alex Perrycb7da4b2019-08-28 19:35:56 -07009}
10
11// Frames from a camera.
12table CameraFrame {
13 // Number of nanoseconds since the aos::monotonic_clock epoch at which this
14 // frame was captured.
Austin Schuhd7851b02020-11-14 13:46:27 -080015 timestamp:long (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -070016
17 // Buffer for the 3 targets.
Austin Schuhd7851b02020-11-14 13:46:27 -080018 targets:[CameraTarget] (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070019
20 // Index of the camera position (not serial number) which this frame is from.
Austin Schuhd7851b02020-11-14 13:46:27 -080021 camera:ubyte (id: 2);
Alex Perrycb7da4b2019-08-28 19:35:56 -070022}
23
24root_type CameraFrame;