blob: 6ef6f49f640dbc59652591fba7e500ae99da7016 [file] [log] [blame]
James Kuszmaul09f564a2019-02-18 17:37:09 -08001package y2019.control_loops.drivetrain;
2
Brian Silvermanc41fb862019-03-02 21:14:46 -08003// See the Target structure in //y2019/jevois:structures.h for documentation.
James Kuszmaul09f564a2019-02-18 17:37:09 -08004struct CameraTarget {
5 float distance;
6 float height;
7 float heading;
8 float skew;
9};
10
11message CameraFrame {
Brian Silvermanc41fb862019-03-02 21:14:46 -080012 // Number of nanoseconds since the aos::monotonic_clock epoch at which this
13 // frame was captured.
James Kuszmaul09f564a2019-02-18 17:37:09 -080014 int64_t timestamp;
15
16 // Number of targets actually in this frame.
17 uint8_t num_targets;
18
Brian Silvermanc41fb862019-03-02 21:14:46 -080019 // Buffer for the targets.
James Kuszmaul09f564a2019-02-18 17:37:09 -080020 CameraTarget[3] targets;
21
Brian Silvermanc41fb862019-03-02 21:14:46 -080022 // Index of the camera position (not serial number) which this frame is from.
James Kuszmaul09f564a2019-02-18 17:37:09 -080023 uint8_t camera;
24};
25
26queue CameraFrame camera_frames;