blob: 696bf2c0dbcae228ceaca06b06e2c688e96eea03 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001package aos;
2
3message RobotState {
4 bool enabled;
5 bool autonomous;
brians343bc112013-02-10 01:53:46 +00006 uint16_t team_id;
Brian Silvermane155ebc2014-03-20 19:37:57 -07007 // 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;
brians343bc112013-02-10 01:53:46 +000013};
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
20queue RobotState robot_state;