Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 1 | namespace y2014.control_loops.shooter; |
| 2 | |
| 3 | table Status { |
| 4 | // Whether it's ready to shoot right now. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 5 | ready:bool (id: 0); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 6 | // Whether the plunger is in and out of the way of grabbing a ball. |
| 7 | // TODO(ben): Populate these! |
| 8 | //cocked:bool; |
| 9 | // How many times we've shot. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 10 | shots:int32 (id: 1); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 11 | //done:bool; |
| 12 | // What we think the current position of the hard stop on the shooter is, in |
| 13 | // shot power (Joules). |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 14 | hard_stop_power:double (id: 2); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 15 | |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 16 | absolute_position:double (id: 3); |
| 17 | absolute_velocity:double (id: 4); |
| 18 | state:uint32 (id: 5); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | root_type Status; |