Init Commit: Moved bproto to seperate repo
This commit is contained in:
39
test/test_protocol.bproto
Normal file
39
test/test_protocol.bproto
Normal file
@@ -0,0 +1,39 @@
|
||||
protocol HCP version 0
|
||||
|
||||
enum error_codes {
|
||||
MOTOR1_disconnected = 1,
|
||||
MOTOR2_disconnected = 2,
|
||||
MOTORS_disconnected = 3,
|
||||
input_buffer_overflow = 4,
|
||||
}
|
||||
|
||||
bits enables {
|
||||
a, b, c: 3
|
||||
}
|
||||
|
||||
message [1] MotionUpdate {
|
||||
[0] speed : int32[3],
|
||||
[1] stearing : float32,
|
||||
[3] enable : bool[4],
|
||||
[4] heading : char,
|
||||
[2] name : string[32],
|
||||
[5] enables : bits enables,
|
||||
[6] dangerLvl: enum {
|
||||
WARNING,
|
||||
ERROR, MELTDOWN
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
message [2] Error {
|
||||
[0] recoveryStatus: enum {
|
||||
YES, NO
|
||||
},
|
||||
[1] enables: bits {
|
||||
test : 0,
|
||||
asd : 1,
|
||||
b,
|
||||
c,
|
||||
aa: 7
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user