brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | package aos; |
| 2 | |
| 3 | message RobotState { |
| 4 | bool enabled; |
| 5 | bool autonomous; |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 6 | uint16_t team_id; |
Brian Silverman | e155ebc | 2014-03-20 19:37:57 -0700 | [diff] [blame] | 7 | // If this is true, then this message isn't actually from the control |
| 8 | // system and so should not be trusted as evidence that the button inputs |
| 9 | // etc are actually real and should be acted on. |
| 10 | // However, most things should ignore this so that sending fake messages is |
| 11 | // useful for testing. |
| 12 | bool fake; |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 13 | }; |
| 14 | |
| 15 | // The robot_state Queue is checked by all control loops to make sure that the |
| 16 | // joystick code hasn't died. |
| 17 | // It also provides information about whether or not the robot is in autonomous |
| 18 | // mode and what the team_id is. |
| 19 | |
| 20 | queue RobotState robot_state; |