James Kuszmaul | ef428a0 | 2019-03-02 22:19:41 -0800 | [diff] [blame] | 1 | package frc971.control_loops.drivetrain; |
| 2 | |
| 3 | // Allows you to reset the state of the localizer to a specific position on the |
| 4 | // field. |
Austin Schuh | eb99d07 | 2019-05-12 21:03:38 -0700 | [diff] [blame] | 5 | // Published on ".frc971.control_loops.drivetrain.localizer_control" |
James Kuszmaul | ef428a0 | 2019-03-02 22:19:41 -0800 | [diff] [blame] | 6 | message LocalizerControl { |
| 7 | float x; // X position, meters |
| 8 | float y; // Y position, meters |
| 9 | float theta; // heading, radians |
Austin Schuh | 4b3a005 | 2019-03-24 19:19:10 -0700 | [diff] [blame] | 10 | double theta_uncertainty; // Uncertainty in theta. |
James Kuszmaul | 518640d | 2019-04-13 15:50:50 -0700 | [diff] [blame] | 11 | bool keep_current_theta; // Whether to keep the current theta value. |
James Kuszmaul | ef428a0 | 2019-03-02 22:19:41 -0800 | [diff] [blame] | 12 | }; |