Init Commit: Moved bproto to seperate repo

This commit is contained in:
AlexanderHD27
2025-04-14 14:43:03 +02:00
commit 45bfc724fc
125 changed files with 10822 additions and 0 deletions

39
test/test_protocol.bproto Normal file
View 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
}
}