blob: 437cfd7faa86275591f9bba6ade43c955f8b1dea [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001namespace aos;
2
3// This message is sent out on this queue when sensors are read. It contains
4// global robot state and information about whether the process reading sensors
5// has been restarted, along with all counters etc it keeps track of. It is
6// published on "/aos"
7table RobotState {
8 // The PID of the process reading sensors.
9 // This is here so control loops can tell when it changes.
10 reader_pid:int;
11
12 // True when outputs are enabled.
13 // Motor controllers keep going for a bit after this goes to false.
14 outputs_enabled:bool;
15 // Indicates whether something is browned out (I think motor controller
16 // outputs). IMPORTANT: This is NOT !outputs_enabled. outputs_enabled goes to
17 // false for other reasons too (disabled, e-stopped, maybe more).
18 browned_out:bool;
19
20 // Whether the two sensor rails are currently working.
21 is_3v3_active:bool;
22 is_5v_active:bool;
23 // The current voltages measured on the two sensor rails.
24 voltage_3v3:double;
25 voltage_5v:double;
26
27 // The input voltage to the roboRIO.
28 voltage_roborio_in:double;
29
30 // From the DriverStation object, aka what FMS sees and what shows up on the
31 // actual driver's station.
32 voltage_battery:double;
33}
34
35root_type RobotState;