信号机状态

This commit is contained in:
xzb 2023-10-16 11:01:12 +08:00
parent c18ac281a6
commit 3f409d717b

View File

@ -55,7 +55,7 @@ message SignalState{
// //
string id = 1; string id = 1;
// //
repeated Signal.Light light = 2; repeated Signal.Aspect aspect = 2;
} }
// //
message Signal { message Signal {
@ -63,27 +63,18 @@ message Signal {
enum Aspect { enum Aspect {
// //
OFF = 0; OFF = 0;
//
ON = 1;
//绿 //绿
L = 2; L = 1;
// //
H = 3; H = 2;
// //
U = 4; U = 3;
// //
HU= 5; HU= 4;
// //
B=6; B=5;
// //
A=7; A=6;
}
//
message Light{
//()
Aspect color = 1;
//true-false-
bool display = 2;
} }
} }