-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatus.proto
24 lines (22 loc) · 979 Bytes
/
status.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Version 1.0 (not enforced)
syntax = "proto3";
/// Changes the way the rover listens to incoming commands.
///
/// - When IDLE, all subsystems will ignore all commands
/// - When MANUAL, all subsystems will accept all commands
/// - When AUTONOMOUS, the rover will ignore commands from the dashboard
enum RoverStatus {
DISCONNECTED = 0; // no signal at all means disconnected
IDLE = 1; // Yellow button should be lit.
MANUAL = 2; // Must show blue LEDs. Green button should be lit.
AUTONOMOUS = 3; // See [AutonomyState] for LED colors
POWER_OFF = 4; // Press the red button to turn off the Pis on the rover
RESTART = 5; // Reboots the program that receives this message
}
/// Update a sensitive setting, such as the rover's status.
///
/// This message must be triggered manually and the recipient (usually the subsystems Pi)
/// must respond with the exact same message to confirm its receipt.
message UpdateSetting {
RoverStatus status = 1;
}