-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add relays.proto and update core.proto to include Relays as a Device (#…
…26) I created relays.proto with RelaysCommand and Data message types. I also updated core.proto to include RELAYS as a device type. --------- Co-authored-by: Levi Lesches <[email protected]>
- Loading branch information
1 parent
386dd7e
commit ae2275f
Showing
2 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
syntax = "proto3"; | ||
|
||
import "utils.proto"; | ||
|
||
message RelaysCommand { | ||
// Turn the following devices on or off | ||
BoolState backLeftMotor = 1; | ||
BoolState backRightMotor = 2; | ||
BoolState frontLeftMotor = 3; | ||
BoolState frontRightMotor = 4; | ||
BoolState arm = 5; | ||
BoolState science = 6; | ||
BoolState drive = 7; | ||
|
||
// Special commands | ||
BoolState bypass = 8; | ||
} | ||
|
||
message RelaysData { | ||
// Whether the following devices are on or off | ||
BoolState backLeftMotor = 1; | ||
BoolState backRightMotor = 2; | ||
BoolState frontLeftMotor = 3; | ||
BoolState frontRightMotor = 4; | ||
BoolState arm = 5; | ||
BoolState science = 6; | ||
BoolState drive = 7; | ||
|
||
// Special data | ||
BoolState bypass = 8; | ||
BoolState mechanicalOverride = 9; | ||
} |