James Kuszmaul | ef35d73 | 2022-02-12 16:37:32 -0800 | [diff] [blame] | 1 | namespace frc971.controls; |
| 2 | |
| 3 | // This provides a minimal output from the localizer that can be forwarded to |
| 4 | // the roborio and used for corrections to its (simpler) localizer. |
| 5 | |
| 6 | table LocalizerOutput { |
| 7 | // Timestamp (on the source node) that this sample corresponds with. This |
| 8 | // may be older than the sent time to account for delays in sensor readings. |
| 9 | monotonic_timestamp_ns:int64 (id: 0); |
| 10 | // Current x/y position estimate, in meters. |
| 11 | x:double (id: 1); |
| 12 | y:double (id: 2); |
| 13 | // Current heading, in radians. |
| 14 | theta:double (id: 3); |
| 15 | } |
| 16 | |
| 17 | root_type LocalizerOutput; |