This commit is contained in:
fan 2024-03-08 10:41:51 +08:00
commit f3013d1079
2 changed files with 30 additions and 11 deletions

View File

@ -131,7 +131,7 @@ message TrainState{
float speed = 3; float speed = 3;
//,1=1mm //,1=1mm
int64 trainLength = 4; int64 trainLength = 4;
// //false
bool show = 5; bool show = 5;
// ID // ID
uint32 headDeviceId = 6; uint32 headDeviceId = 6;
@ -161,8 +161,14 @@ message TrainState{
common.TrainEndsState trainEndsA = 18; common.TrainEndsState trainEndsA = 18;
//B端 //B端
common.TrainEndsState trainEndsB = 19; common.TrainEndsState trainEndsB = 19;
// ID
uint32 tailDeviceId = 20;
//
int64 tailOffset = 21;
//
string tailDevicePort = 22;
// BTM状态 // BTM状态
BTMState btmState = 20; BTMState btmState = 23;
} }
// //
@ -412,8 +418,10 @@ message TrainMapState{
uint32 tailDeviceId = 66; uint32 tailDeviceId = 66;
// //
int64 tailOffset = 67; int64 tailOffset = 67;
//
string tailDevicePort = 68;
// BTM状态 // BTM状态
BTMState btmState = 68; BTMState btmState = 69;
} }
message BTMState { message BTMState {
@ -446,11 +454,11 @@ message TrainDynamicConfigMqtt{
// //
bool jump = 9; bool jump = 9;
//(m/s) 0 float //(m/s) 0 float
string slipA=10; string slipA = 10;
// (m/s) 0 // (m/s) 0
string slipR=11; string slipR = 11;
// ms 0 // ms 0
int32 slipD=12; int32 slipD = 12;
// m/s20 float // m/s20 float
string idlingA = 14; string idlingA = 14;
// m/s30 // m/s30
@ -459,7 +467,7 @@ message TrainDynamicConfigMqtt{
int32 idlingD = 16; int32 idlingD = 16;
///mm ///mm
int32 stopSign = 17; int32 stopSign = 17;
// /m/s0 float // /m/s0 float
string slide = 18 ; string slide = 18 ;
} }
// //
@ -496,7 +504,7 @@ message ButtonState {
uint32 id = 1; uint32 id = 1;
bool down = 2; bool down = 2;
bool active = 3; // bool active = 3; //
// bool bypass = 4; // // bool bypass = 4; //
} }
// //
@ -517,7 +525,7 @@ message PsdState {
repeated AsdState asdStates = 2; // repeated AsdState asdStates = 2; //
bool mgj = 3; // bool mgj = 3; //
request.PsdParam param = 4; // request.PsdParam param = 4; //
bool obstacle = 5; // bool zaw = 5; //
} }
// //
@ -526,6 +534,8 @@ message AsdState {
bool kmdw = 2; // bool kmdw = 2; //
bool gmdw = 3; // bool gmdw = 3; //
bool mgj = 4; // bool mgj = 4; //
bool zaw = 5; //
bool force = 6; ///
} }
@ -533,7 +543,7 @@ message AsdState {
message KeyState { message KeyState {
uint32 id = 1; uint32 id = 1;
int32 gear = 2; int32 gear = 2;
// bool bypass = 3; // // bool bypass = 3; //
} }
// //

View File

@ -65,6 +65,15 @@ message Canvas {
string backgroundColor = 3; string backgroundColor = 3;
// //
Transform viewportTransform = 4; Transform viewportTransform = 4;
//
Grid gridBackground = 5;
}
//
message Grid {
bool hasGrid = 1;
string lineColor = 2; // 线
int32 space = 3; //
} }
message Point { message Point {
@ -200,7 +209,7 @@ message Station {
// string kilometerCode = 5; // // string kilometerCode = 5; //
KilometerSystem kilometerSystem = 6; // KilometerSystem kilometerSystem = 6; //
// int32 index = 7; // int32 index = 7;
string refIbpMapCode = 8; // IBP地图Code //string refIbpMapCode = 8; // IBP地图Code
string stationName = 9; // string stationName = 9; //
string stationNameAcronym = 10; // string stationNameAcronym = 10; //
bool depots = 11; // bool depots = 11; //