Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 1 | namespace y2014.control_loops.claw; |
| 2 | |
| 3 | // All angles here are 0 vertical, positive "up" (aka backwards). |
| 4 | table Status { |
| 5 | // True if zeroed enough for the current period (autonomous or teleop). |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 6 | zeroed:bool (id: 0); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 7 | // True if zeroed as much as we will force during autonomous. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 8 | zeroed_for_auto:bool (id: 1); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 9 | // True if zeroed and within tolerance for separation and bottom angle. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 10 | done:bool (id: 2); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 11 | // True if zeroed and within tolerance for separation and bottom angle. |
| 12 | // seperation allowance much wider as a ball may be included |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 13 | done_with_ball:bool (id: 3); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 14 | // Dump the values of the state matrix. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 15 | bottom:double (id: 4); |
| 16 | bottom_velocity:double (id: 5); |
| 17 | separation:double (id: 6); |
| 18 | separation_velocity:double (id: 7); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | root_type Status; |