列车控制btn调整

This commit is contained in:
tiger_zhou 2024-07-04 14:47:24 +08:00
parent c0aa3ab5b7
commit 2ac805b054
2 changed files with 11 additions and 8 deletions

View File

@ -349,7 +349,7 @@ message TrainVobcState {
// ATP/ATO旁路状态
bool atpOrAtoBypassState = 33;
//
// bool trainTractionCuted = 34;
bool trainTractionCuted = 34;
//
bool obstacleCheckBtn = 35;
//
@ -432,6 +432,8 @@ message TrainVobcState {
// ATO牵引指令3
bool atoTractionCommand3=74;
uint32 mockInfo = 75; //
// atp
bool atpCutSwitch = 76;
// request.TrainControl.Direction historyDir = 76; //使
}
@ -883,20 +885,16 @@ message SimulationThirdPartyApiServiceState {
//
message TrainControlState{
EmergentButton ebutton = 1; //
repeated ControlButton buttons = 1;
repeated DriverKeySwitch driverKey = 2; //
DirectionKeySwitch dirKey = 3; //
PushHandler pushHandler = 4; //
ControlButton buttons = 5;
message ControlButton{
uint32 id = 1;
bool passed = 3;
}
message EmergentButton{
uint32 id = 1;
bool passed = 3;
}
message DriverKeySwitch{
uint32 id = 1;
bool val = 2; //0=1=

View File

@ -192,10 +192,15 @@ message TrainControl{
string trainId = 2;
uint32 deviceId = 3;//id
TrainControlType controlType = 4;
EmergentButton button = 5;//
ControlButton controlButton = 5; //
DriverKeySwitch driverKey = 6;
DirectionKeySwitch dirKey = 7; //
PushHandler handler = 8; //
message ControlButton{
bool active = 1;
}
enum TrainControlType{
EMERGENT_BUTTON = 0; //
DRIVER_KEY_SWITCH = 1; //