Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 1 | namespace y2019.control_loops.drivetrain; |
| 2 | |
| 3 | // See the Target structure in //y2019/jevois:structures.h for documentation. |
| 4 | table CameraTarget { |
| 5 | distance:float; |
| 6 | height:float; |
| 7 | heading:float; |
| 8 | skew:float; |
| 9 | } |
| 10 | |
| 11 | // Frames from a camera. |
| 12 | table CameraFrame { |
| 13 | // Number of nanoseconds since the aos::monotonic_clock epoch at which this |
| 14 | // frame was captured. |
| 15 | timestamp:long; |
| 16 | |
| 17 | // Buffer for the 3 targets. |
| 18 | targets:[CameraTarget]; |
| 19 | |
| 20 | // Index of the camera position (not serial number) which this frame is from. |
| 21 | camera:ubyte; |
| 22 | } |
| 23 | |
| 24 | root_type CameraFrame; |