16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 19:49:19 +02:00

Command order fix

This commit is contained in:
2025-03-16 17:06:37 +01:00
parent 5ad3789d27
commit d5c89e365c
2 changed files with 977 additions and 975 deletions

View File

@@ -22,364 +22,365 @@ namespace simulation {
command_queue Commands; command_queue Commands;
commanddescription_sequence Commands_descriptions = { commanddescription_sequence Commands_descriptions = {
{ "aidriverenable", command_target::vehicle, command_mode::oneoff }, {"aidriverenable", command_target::vehicle, command_mode::oneoff},
{ "aidriverdisable", command_target::vehicle, command_mode::oneoff }, {"aidriverdisable", command_target::vehicle, command_mode::oneoff},
{ "jointcontrollerset", command_target::vehicle, command_mode::oneoff }, {"jointcontrollerset", command_target::vehicle, command_mode::oneoff},
{ "mastercontrollerincrease", command_target::vehicle, command_mode::oneoff }, {"mastercontrollerincrease", command_target::vehicle, command_mode::oneoff},
{ "mastercontrollerincreasefast", command_target::vehicle, command_mode::oneoff }, {"mastercontrollerincreasefast", command_target::vehicle, command_mode::oneoff},
{ "mastercontrollerdecrease", command_target::vehicle, command_mode::oneoff }, {"mastercontrollerdecrease", command_target::vehicle, command_mode::oneoff},
{ "mastercontrollerdecreasefast", command_target::vehicle, command_mode::oneoff }, {"mastercontrollerdecreasefast", command_target::vehicle, command_mode::oneoff},
{ "mastercontrollerset", command_target::vehicle, command_mode::oneoff }, {"mastercontrollerset", command_target::vehicle, command_mode::oneoff},
{ "secondcontrollerincrease", command_target::vehicle, command_mode::oneoff }, {"secondcontrollerincrease", command_target::vehicle, command_mode::oneoff},
{ "secondcontrollerincreasefast", command_target::vehicle, command_mode::oneoff }, {"secondcontrollerincreasefast", command_target::vehicle, command_mode::oneoff},
{ "secondcontrollerdecrease", command_target::vehicle, command_mode::oneoff }, {"secondcontrollerdecrease", command_target::vehicle, command_mode::oneoff},
{ "secondcontrollerdecreasefast", command_target::vehicle, command_mode::oneoff }, {"secondcontrollerdecreasefast", command_target::vehicle, command_mode::oneoff},
{ "secondcontrollerset", command_target::vehicle, command_mode::oneoff }, {"secondcontrollerset", command_target::vehicle, command_mode::oneoff},
{ "mucurrentindicatorothersourceactivate", command_target::vehicle, command_mode::oneoff }, {"mucurrentindicatorothersourceactivate", command_target::vehicle, command_mode::oneoff},
{ "independentbrakeincrease", command_target::vehicle, command_mode::continuous }, {"independentbrakeincrease", command_target::vehicle, command_mode::continuous},
{ "independentbrakeincreasefast", command_target::vehicle, command_mode::oneoff }, {"independentbrakeincreasefast", command_target::vehicle, command_mode::oneoff},
{ "independentbrakedecrease", command_target::vehicle, command_mode::continuous }, {"independentbrakedecrease", command_target::vehicle, command_mode::continuous},
{ "independentbrakedecreasefast", command_target::vehicle, command_mode::oneoff }, {"independentbrakedecreasefast", command_target::vehicle, command_mode::oneoff},
{ "independentbrakeset", command_target::vehicle, command_mode::oneoff }, {"independentbrakeset", command_target::vehicle, command_mode::oneoff},
{ "independentbrakebailoff", command_target::vehicle, command_mode::oneoff }, {"independentbrakebailoff", command_target::vehicle, command_mode::oneoff},
{ "universalbrakebutton1", command_target::vehicle, command_mode::oneoff }, {"universalbrakebutton1", command_target::vehicle, command_mode::oneoff},
{ "universalbrakebutton2", command_target::vehicle, command_mode::oneoff }, {"universalbrakebutton2", command_target::vehicle, command_mode::oneoff},
{ "universalbrakebutton3", command_target::vehicle, command_mode::oneoff }, {"universalbrakebutton3", command_target::vehicle, command_mode::oneoff},
{ "trainbrakeincrease", command_target::vehicle, command_mode::continuous }, {"trainbrakeincrease", command_target::vehicle, command_mode::continuous},
{ "trainbrakedecrease", command_target::vehicle, command_mode::continuous }, {"trainbrakedecrease", command_target::vehicle, command_mode::continuous},
{ "trainbrakeset", command_target::vehicle, command_mode::oneoff }, {"trainbrakeset", command_target::vehicle, command_mode::oneoff},
{ "trainbrakecharging", command_target::vehicle, command_mode::oneoff }, {"trainbrakecharging", command_target::vehicle, command_mode::oneoff},
{ "trainbrakerelease", command_target::vehicle, command_mode::oneoff }, {"trainbrakerelease", command_target::vehicle, command_mode::oneoff},
{ "trainbrakefirstservice", command_target::vehicle, command_mode::oneoff }, {"trainbrakefirstservice", command_target::vehicle, command_mode::oneoff},
{ "trainbrakeservice", command_target::vehicle, command_mode::oneoff }, {"trainbrakeservice", command_target::vehicle, command_mode::oneoff},
{ "trainbrakefullservice", command_target::vehicle, command_mode::oneoff }, {"trainbrakefullservice", command_target::vehicle, command_mode::oneoff},
{ "trainbrakehandleoff", command_target::vehicle, command_mode::oneoff }, {"trainbrakehandleoff", command_target::vehicle, command_mode::oneoff},
{ "trainbrakeemergency", command_target::vehicle, command_mode::oneoff }, {"trainbrakeemergency", command_target::vehicle, command_mode::oneoff},
{ "trainbrakebasepressureincrease", command_target::vehicle, command_mode::oneoff }, {"trainbrakebasepressureincrease", command_target::vehicle, command_mode::oneoff},
{ "trainbrakebasepressuredecrease", command_target::vehicle, command_mode::oneoff }, {"trainbrakebasepressuredecrease", command_target::vehicle, command_mode::oneoff},
{ "trainbrakebasepressurereset", command_target::vehicle, command_mode::oneoff }, {"trainbrakebasepressurereset", command_target::vehicle, command_mode::oneoff},
{ "trainbrakeoperationtoggle", command_target::vehicle, command_mode::oneoff }, {"trainbrakeoperationtoggle", command_target::vehicle, command_mode::oneoff},
{ "manualbrakeincrease", command_target::vehicle, command_mode::oneoff }, {"manualbrakeincrease", command_target::vehicle, command_mode::oneoff},
{ "manualbrakedecrease", command_target::vehicle, command_mode::oneoff }, {"manualbrakedecrease", command_target::vehicle, command_mode::oneoff},
{ "alarmchaintoggle", command_target::vehicle, command_mode::oneoff }, {"alarmchaintoggle", command_target::vehicle, command_mode::oneoff},
{ "alarmchainenable", command_target::vehicle, command_mode::oneoff}, {"alarmchainenable", command_target::vehicle, command_mode::oneoff},
{ "alarmchaindisable", command_target::vehicle, command_mode::oneoff}, {"alarmchaindisable", command_target::vehicle, command_mode::oneoff},
{ "wheelspinbrakeactivate", command_target::vehicle, command_mode::oneoff }, {"wheelspinbrakeactivate", command_target::vehicle, command_mode::oneoff},
{ "sandboxactivate", command_target::vehicle, command_mode::oneoff }, {"sandboxactivate", command_target::vehicle, command_mode::oneoff},
{ "autosandboxtoggle", command_target::vehicle, command_mode::oneoff }, {"autosandboxtoggle", command_target::vehicle, command_mode::oneoff},
{ "autosandboxactivate", command_target::vehicle, command_mode::oneoff }, {"autosandboxactivate", command_target::vehicle, command_mode::oneoff},
{ "autosandboxdeactivate", command_target::vehicle, command_mode::oneoff }, {"autosandboxdeactivate", command_target::vehicle, command_mode::oneoff},
{ "reverserincrease", command_target::vehicle, command_mode::oneoff }, {"reverserincrease", command_target::vehicle, command_mode::oneoff},
{ "reverserdecrease", command_target::vehicle, command_mode::oneoff }, {"reverserdecrease", command_target::vehicle, command_mode::oneoff},
{ "reverserforwardhigh", command_target::vehicle, command_mode::oneoff }, {"reverserforwardhigh", command_target::vehicle, command_mode::oneoff},
{ "reverserforward", command_target::vehicle, command_mode::oneoff }, {"reverserforward", command_target::vehicle, command_mode::oneoff},
{ "reverserneutral", command_target::vehicle, command_mode::oneoff }, {"reverserneutral", command_target::vehicle, command_mode::oneoff},
{ "reverserbackward", command_target::vehicle, command_mode::oneoff }, {"reverserbackward", command_target::vehicle, command_mode::oneoff},
{ "waterpumpbreakertoggle", command_target::vehicle, command_mode::oneoff }, {"waterpumpbreakertoggle", command_target::vehicle, command_mode::oneoff},
{ "waterpumpbreakerclose", command_target::vehicle, command_mode::oneoff }, {"waterpumpbreakerclose", command_target::vehicle, command_mode::oneoff},
{ "waterpumpbreakeropen", command_target::vehicle, command_mode::oneoff }, {"waterpumpbreakeropen", command_target::vehicle, command_mode::oneoff},
{ "waterpumptoggle", command_target::vehicle, command_mode::oneoff }, {"waterpumptoggle", command_target::vehicle, command_mode::oneoff},
{ "waterpumpenable", command_target::vehicle, command_mode::oneoff }, {"waterpumpenable", command_target::vehicle, command_mode::oneoff},
{ "waterpumpdisable", command_target::vehicle, command_mode::oneoff }, {"waterpumpdisable", command_target::vehicle, command_mode::oneoff},
{ "waterheaterbreakertoggle", command_target::vehicle, command_mode::oneoff }, {"waterheaterbreakertoggle", command_target::vehicle, command_mode::oneoff},
{ "waterheaterbreakerclose", command_target::vehicle, command_mode::oneoff }, {"waterheaterbreakerclose", command_target::vehicle, command_mode::oneoff},
{ "waterheaterbreakeropen", command_target::vehicle, command_mode::oneoff }, {"waterheaterbreakeropen", command_target::vehicle, command_mode::oneoff},
{ "waterheatertoggle", command_target::vehicle, command_mode::oneoff }, {"waterheatertoggle", command_target::vehicle, command_mode::oneoff},
{ "waterheaterenable", command_target::vehicle, command_mode::oneoff }, {"waterheaterenable", command_target::vehicle, command_mode::oneoff},
{ "waterheaterdisable", command_target::vehicle, command_mode::oneoff }, {"waterheaterdisable", command_target::vehicle, command_mode::oneoff},
{ "watercircuitslinktoggle", command_target::vehicle, command_mode::oneoff }, {"watercircuitslinktoggle", command_target::vehicle, command_mode::oneoff},
{ "watercircuitslinkenable", command_target::vehicle, command_mode::oneoff }, {"watercircuitslinkenable", command_target::vehicle, command_mode::oneoff},
{ "watercircuitslinkdisable", command_target::vehicle, command_mode::oneoff }, {"watercircuitslinkdisable", command_target::vehicle, command_mode::oneoff},
{ "fuelpumptoggle", command_target::vehicle, command_mode::oneoff }, {"fuelpumptoggle", command_target::vehicle, command_mode::oneoff},
{ "fuelpumpenable", command_target::vehicle, command_mode::oneoff }, {"fuelpumpenable", command_target::vehicle, command_mode::oneoff},
{ "fuelpumpdisable", command_target::vehicle, command_mode::oneoff }, {"fuelpumpdisable", command_target::vehicle, command_mode::oneoff},
{ "oilpumptoggle", command_target::vehicle, command_mode::oneoff }, {"oilpumptoggle", command_target::vehicle, command_mode::oneoff},
{ "oilpumpenable", command_target::vehicle, command_mode::oneoff }, {"oilpumpenable", command_target::vehicle, command_mode::oneoff},
{ "oilpumpdisable", command_target::vehicle, command_mode::oneoff }, {"oilpumpdisable", command_target::vehicle, command_mode::oneoff},
{ "linebreakertoggle", command_target::vehicle, command_mode::oneoff }, {"linebreakertoggle", command_target::vehicle, command_mode::oneoff},
{ "linebreakeropen", command_target::vehicle, command_mode::oneoff }, {"linebreakeropen", command_target::vehicle, command_mode::oneoff},
{ "linebreakerclose", command_target::vehicle, command_mode::oneoff }, {"linebreakerclose", command_target::vehicle, command_mode::oneoff},
{ "convertertoggle", command_target::vehicle, command_mode::oneoff }, {"convertertoggle", command_target::vehicle, command_mode::oneoff},
{ "converterenable", command_target::vehicle, command_mode::oneoff }, {"converterenable", command_target::vehicle, command_mode::oneoff},
{ "converterdisable", command_target::vehicle, command_mode::oneoff }, {"converterdisable", command_target::vehicle, command_mode::oneoff},
{ "convertertogglelocal", command_target::vehicle, command_mode::oneoff }, {"convertertogglelocal", command_target::vehicle, command_mode::oneoff},
{ "converteroverloadrelayreset", command_target::vehicle, command_mode::oneoff }, {"converteroverloadrelayreset", command_target::vehicle, command_mode::oneoff},
{ "compressortoggle", command_target::vehicle, command_mode::oneoff }, {"compressortoggle", command_target::vehicle, command_mode::oneoff},
{ "compressorenable", command_target::vehicle, command_mode::oneoff }, {"compressorenable", command_target::vehicle, command_mode::oneoff},
{ "compressordisable", command_target::vehicle, command_mode::oneoff }, {"compressordisable", command_target::vehicle, command_mode::oneoff},
{ "compressortogglelocal", command_target::vehicle, command_mode::oneoff }, {"compressortogglelocal", command_target::vehicle, command_mode::oneoff},
{ "compressorpresetactivatenext", command_target::vehicle, command_mode::oneoff }, {"compressorpresetactivatenext", command_target::vehicle, command_mode::oneoff},
{ "compressorpresetactivateprevious", command_target::vehicle, command_mode::oneoff }, {"compressorpresetactivateprevious", command_target::vehicle, command_mode::oneoff},
{ "compressorpresetactivatedefault", command_target::vehicle, command_mode::oneoff }, {"compressorpresetactivatedefault", command_target::vehicle, command_mode::oneoff},
{ "motoroverloadrelaythresholdtoggle", command_target::vehicle, command_mode::oneoff }, {"motoroverloadrelaythresholdtoggle", command_target::vehicle, command_mode::oneoff},
{ "motoroverloadrelaythresholdsetlow", command_target::vehicle, command_mode::oneoff }, {"motoroverloadrelaythresholdsetlow", command_target::vehicle, command_mode::oneoff},
{ "motoroverloadrelaythresholdsethigh", command_target::vehicle, command_mode::oneoff }, {"motoroverloadrelaythresholdsethigh", command_target::vehicle, command_mode::oneoff},
{ "motoroverloadrelayreset", command_target::vehicle, command_mode::oneoff }, {"motoroverloadrelayreset", command_target::vehicle, command_mode::oneoff},
{ "universalrelayreset1", command_target::vehicle, command_mode::oneoff }, {"universalrelayreset1", command_target::vehicle, command_mode::oneoff},
{ "universalrelayreset2", command_target::vehicle, command_mode::oneoff }, {"universalrelayreset2", command_target::vehicle, command_mode::oneoff},
{ "universalrelayreset3", command_target::vehicle, command_mode::oneoff }, {"universalrelayreset3", command_target::vehicle, command_mode::oneoff},
{ "notchingrelaytoggle", command_target::vehicle, command_mode::oneoff }, {"notchingrelaytoggle", command_target::vehicle, command_mode::oneoff},
{ "epbrakecontroltoggle", command_target::vehicle, command_mode::oneoff }, {"epbrakecontroltoggle", command_target::vehicle, command_mode::oneoff},
{ "trainbrakeoperationmodeincrease", command_target::vehicle, command_mode::oneoff }, {"epbrakecontrolenable", command_target::vehicle, command_mode::oneoff},
{ "trainbrakeoperationmodedecrease", command_target::vehicle, command_mode::oneoff }, {"epbrakecontroldisable", command_target::vehicle, command_mode::oneoff},
{ "brakeactingspeedincrease", command_target::vehicle, command_mode::oneoff }, {"trainbrakeoperationmodeincrease", command_target::vehicle, command_mode::oneoff},
{ "brakeactingspeeddecrease", command_target::vehicle, command_mode::oneoff }, {"trainbrakeoperationmodedecrease", command_target::vehicle, command_mode::oneoff},
{ "brakeactingspeedsetcargo", command_target::vehicle, command_mode::oneoff }, {"brakeactingspeedincrease", command_target::vehicle, command_mode::oneoff},
{ "brakeactingspeedsetpassenger", command_target::vehicle, command_mode::oneoff }, {"brakeactingspeeddecrease", command_target::vehicle, command_mode::oneoff},
{ "brakeactingspeedsetrapid", command_target::vehicle, command_mode::oneoff }, {"brakeactingspeedsetcargo", command_target::vehicle, command_mode::oneoff},
{ "brakeloadcompensationincrease", command_target::vehicle, command_mode::oneoff }, {"brakeactingspeedsetpassenger", command_target::vehicle, command_mode::oneoff},
{ "brakeloadcompensationdecrease", command_target::vehicle, command_mode::oneoff }, {"brakeactingspeedsetrapid", command_target::vehicle, command_mode::oneoff},
{ "mubrakingindicatortoggle", command_target::vehicle, command_mode::oneoff }, {"brakeloadcompensationincrease", command_target::vehicle, command_mode::oneoff},
{ "alerteracknowledge", command_target::vehicle, command_mode::oneoff }, {"brakeloadcompensationdecrease", command_target::vehicle, command_mode::oneoff},
{ "cabsignalacknowledge", command_target::vehicle, command_mode::oneoff }, {"mubrakingindicatortoggle", command_target::vehicle, command_mode::oneoff},
{ "hornlowactivate", command_target::vehicle, command_mode::oneoff }, {"alerteracknowledge", command_target::vehicle, command_mode::oneoff},
{ "hornhighactivate", command_target::vehicle, command_mode::oneoff }, {"cabsignalacknowledge", command_target::vehicle, command_mode::oneoff},
{ "whistleactivate", command_target::vehicle, command_mode::oneoff }, {"hornlowactivate", command_target::vehicle, command_mode::oneoff},
{ "radiotoggle", command_target::vehicle, command_mode::oneoff }, {"hornhighactivate", command_target::vehicle, command_mode::oneoff},
{ "radioenable", command_target::vehicle, command_mode::oneoff }, {"whistleactivate", command_target::vehicle, command_mode::oneoff},
{ "radiodisable", command_target::vehicle, command_mode::oneoff }, {"radiotoggle", command_target::vehicle, command_mode::oneoff},
{ "radiochannelincrease", command_target::vehicle, command_mode::oneoff }, {"radioenable", command_target::vehicle, command_mode::oneoff},
{ "radiochanneldecrease", command_target::vehicle, command_mode::oneoff }, {"radiodisable", command_target::vehicle, command_mode::oneoff},
{ "radiochannelset", command_target::vehicle, command_mode::oneoff }, {"radiochannelincrease", command_target::vehicle, command_mode::oneoff},
{ "radiostopsend", command_target::vehicle, command_mode::oneoff }, {"radiochanneldecrease", command_target::vehicle, command_mode::oneoff},
{ "radiostopenable", command_target::vehicle, command_mode::oneoff }, {"radiochannelset", command_target::vehicle, command_mode::oneoff},
{ "radiostopdisable", command_target::vehicle, command_mode::oneoff }, {"radiostopsend", command_target::vehicle, command_mode::oneoff},
{ "radiostoptest", command_target::vehicle, command_mode::oneoff }, {"radiostopenable", command_target::vehicle, command_mode::oneoff},
{ "radiocall3send", command_target::vehicle, command_mode::oneoff }, {"radiostopdisable", command_target::vehicle, command_mode::oneoff},
{ "radiovolumeincrease", command_target::vehicle, command_mode::oneoff }, {"radiostoptest", command_target::vehicle, command_mode::oneoff},
{ "radiovolumedecrease", command_target::vehicle, command_mode::oneoff }, {"radiocall3send", command_target::vehicle, command_mode::oneoff},
{ "radiovolumeset", command_target::vehicle, command_mode::oneoff }, {"radiovolumeincrease", command_target::vehicle, command_mode::oneoff},
{ "cabchangeforward", command_target::vehicle, command_mode::oneoff }, {"radiovolumedecrease", command_target::vehicle, command_mode::oneoff},
{ "cabchangebackward", command_target::vehicle, command_mode::oneoff }, {"radiovolumeset", command_target::vehicle, command_mode::oneoff},
{"cabchangeforward", command_target::vehicle, command_mode::oneoff},
{"cabchangebackward", command_target::vehicle, command_mode::oneoff},
{"modernlightdimmerdecrease", command_target::vehicle, command_mode::oneoff}, {"modernlightdimmerdecrease", command_target::vehicle, command_mode::oneoff},
{"modernlightdimmerincrease", command_target::vehicle, command_mode::oneoff}, {"modernlightdimmerincrease", command_target::vehicle, command_mode::oneoff},
{ "viewturn", command_target::entity, command_mode::oneoff }, {"viewturn", command_target::entity, command_mode::oneoff},
{ "movehorizontal", command_target::entity, command_mode::oneoff }, {"movehorizontal", command_target::entity, command_mode::oneoff},
{ "movehorizontalfast", command_target::entity, command_mode::oneoff }, {"movehorizontalfast", command_target::entity, command_mode::oneoff},
{ "movevertical", command_target::entity, command_mode::oneoff }, {"movevertical", command_target::entity, command_mode::oneoff},
{ "moveverticalfast", command_target::entity, command_mode::oneoff }, {"moveverticalfast", command_target::entity, command_mode::oneoff},
{ "moveleft", command_target::entity, command_mode::oneoff }, {"moveleft", command_target::entity, command_mode::oneoff},
{ "moveright", command_target::entity, command_mode::oneoff }, {"moveright", command_target::entity, command_mode::oneoff},
{ "moveforward", command_target::entity, command_mode::oneoff }, {"moveforward", command_target::entity, command_mode::oneoff},
{ "moveback", command_target::entity, command_mode::oneoff }, {"moveback", command_target::entity, command_mode::oneoff},
{ "moveup", command_target::entity, command_mode::oneoff }, {"moveup", command_target::entity, command_mode::oneoff},
{ "movedown", command_target::entity, command_mode::oneoff }, {"movedown", command_target::entity, command_mode::oneoff},
{ "nearestcarcouplingincrease", command_target::vehicle, command_mode::oneoff }, {"nearestcarcouplingincrease", command_target::vehicle, command_mode::oneoff},
{ "nearestcarcouplingdisconnect", command_target::vehicle, command_mode::oneoff }, {"nearestcarcouplingdisconnect", command_target::vehicle, command_mode::oneoff},
{ "nearestcarcoupleradapterattach", command_target::vehicle, command_mode::oneoff }, {"nearestcarcoupleradapterattach", command_target::vehicle, command_mode::oneoff},
{ "nearestcarcoupleradapterremove", command_target::vehicle, command_mode::oneoff }, {"nearestcarcoupleradapterremove", command_target::vehicle, command_mode::oneoff},
{ "occupiedcarcouplingdisconnect", command_target::vehicle, command_mode::oneoff }, {"occupiedcarcouplingdisconnect", command_target::vehicle, command_mode::oneoff},
{ "occupiedcarcouplingdisconnectback", command_target::vehicle, command_mode::oneoff }, {"occupiedcarcouplingdisconnectback", command_target::vehicle, command_mode::oneoff},
{ "doortoggleleft", command_target::vehicle, command_mode::oneoff }, {"doortoggleleft", command_target::vehicle, command_mode::oneoff},
{ "doortoggleright", command_target::vehicle, command_mode::oneoff }, {"doortoggleright", command_target::vehicle, command_mode::oneoff},
{ "doorpermitleft", command_target::vehicle, command_mode::oneoff }, {"doorpermitleft", command_target::vehicle, command_mode::oneoff},
{ "doorpermitright", command_target::vehicle, command_mode::oneoff }, {"doorpermitright", command_target::vehicle, command_mode::oneoff},
{ "doorpermitpresetactivatenext", command_target::vehicle, command_mode::oneoff }, {"doorpermitpresetactivatenext", command_target::vehicle, command_mode::oneoff},
{ "doorpermitpresetactivateprevious", command_target::vehicle, command_mode::oneoff }, {"doorpermitpresetactivateprevious", command_target::vehicle, command_mode::oneoff},
{ "dooropenleft", command_target::vehicle, command_mode::oneoff }, {"dooropenleft", command_target::vehicle, command_mode::oneoff},
{ "dooropenright", command_target::vehicle, command_mode::oneoff }, {"dooropenright", command_target::vehicle, command_mode::oneoff},
{ "dooropenall", command_target::vehicle, command_mode::oneoff }, {"dooropenall", command_target::vehicle, command_mode::oneoff},
{ "doorcloseleft", command_target::vehicle, command_mode::oneoff }, {"doorcloseleft", command_target::vehicle, command_mode::oneoff},
{ "doorcloseright", command_target::vehicle, command_mode::oneoff }, {"doorcloseright", command_target::vehicle, command_mode::oneoff},
{ "doorcloseall", command_target::vehicle, command_mode::oneoff }, {"doorcloseall", command_target::vehicle, command_mode::oneoff},
{ "doorsteptoggle", command_target::vehicle, command_mode::oneoff }, {"doorsteptoggle", command_target::vehicle, command_mode::oneoff},
{ "doormodetoggle", command_target::vehicle, command_mode::oneoff }, {"doormodetoggle", command_target::vehicle, command_mode::oneoff},
{ "mirrorstoggle", command_target::vehicle, command_mode::oneoff }, {"mirrorstoggle", command_target::vehicle, command_mode::oneoff},
{ "departureannounce", command_target::vehicle, command_mode::oneoff }, {"departureannounce", command_target::vehicle, command_mode::oneoff},
{ "doorlocktoggle", command_target::vehicle, command_mode::oneoff }, {"doorlocktoggle", command_target::vehicle, command_mode::oneoff},
{ "pantographcompressorvalvetoggle", command_target::vehicle, command_mode::oneoff }, {"pantographcompressorvalvetoggle", command_target::vehicle, command_mode::oneoff},
{ "pantographcompressorvalveenable", command_target::vehicle, command_mode::oneoff }, {"pantographcompressorvalveenable", command_target::vehicle, command_mode::oneoff},
{ "pantographcompressorvalvedisable", command_target::vehicle, command_mode::oneoff }, {"pantographcompressorvalvedisable", command_target::vehicle, command_mode::oneoff},
{ "pantographcompressoractivate", command_target::vehicle, command_mode::oneoff }, {"pantographcompressoractivate", command_target::vehicle, command_mode::oneoff},
{ "pantographtogglefront", command_target::vehicle, command_mode::oneoff }, {"pantographtogglefront", command_target::vehicle, command_mode::oneoff},
{ "pantographtogglerear", command_target::vehicle, command_mode::oneoff }, {"pantographtogglerear", command_target::vehicle, command_mode::oneoff},
{ "pantographraisefront", command_target::vehicle, command_mode::oneoff }, {"pantographraisefront", command_target::vehicle, command_mode::oneoff},
{ "pantographraiserear", command_target::vehicle, command_mode::oneoff }, {"pantographraiserear", command_target::vehicle, command_mode::oneoff},
{ "pantographlowerfront", command_target::vehicle, command_mode::oneoff }, {"pantographlowerfront", command_target::vehicle, command_mode::oneoff},
{ "pantographlowerrear", command_target::vehicle, command_mode::oneoff }, {"pantographlowerrear", command_target::vehicle, command_mode::oneoff},
{ "pantographlowerall", command_target::vehicle, command_mode::oneoff }, {"pantographlowerall", command_target::vehicle, command_mode::oneoff},
{ "pantographselectnext", command_target::vehicle, command_mode::oneoff }, {"pantographselectnext", command_target::vehicle, command_mode::oneoff},
{ "pantographselectprevious", command_target::vehicle, command_mode::oneoff }, {"pantographselectprevious", command_target::vehicle, command_mode::oneoff},
{ "pantographtoggleselected", command_target::vehicle, command_mode::oneoff }, {"pantographtoggleselected", command_target::vehicle, command_mode::oneoff},
{ "pantographraiseselected", command_target::vehicle, command_mode::oneoff }, {"pantographraiseselected", command_target::vehicle, command_mode::oneoff},
{ "pantographlowerselected", command_target::vehicle, command_mode::oneoff }, {"pantographlowerselected", command_target::vehicle, command_mode::oneoff},
{ "pantographvalvesupdate", command_target::vehicle, command_mode::oneoff }, {"pantographvalvesupdate", command_target::vehicle, command_mode::oneoff},
{ "pantographvalvesoff", command_target::vehicle, command_mode::oneoff }, {"pantographvalvesoff", command_target::vehicle, command_mode::oneoff},
{ "heatingtoggle", command_target::vehicle, command_mode::oneoff }, {"heatingtoggle", command_target::vehicle, command_mode::oneoff},
{ "heatingenable", command_target::vehicle, command_mode::oneoff }, {"heatingenable", command_target::vehicle, command_mode::oneoff},
{ "heatingdisable", command_target::vehicle, command_mode::oneoff }, {"heatingdisable", command_target::vehicle, command_mode::oneoff},
{ "lightspresetactivatenext", command_target::vehicle, command_mode::oneoff }, {"lightspresetactivatenext", command_target::vehicle, command_mode::oneoff},
{ "lightspresetactivateprevious", command_target::vehicle, command_mode::oneoff }, {"lightspresetactivateprevious", command_target::vehicle, command_mode::oneoff},
{ "headlighttoggleleft", command_target::vehicle, command_mode::oneoff }, {"headlighttoggleleft", command_target::vehicle, command_mode::oneoff},
{ "headlightenableleft", command_target::vehicle, command_mode::oneoff }, {"headlightenableleft", command_target::vehicle, command_mode::oneoff},
{ "headlightdisableleft", command_target::vehicle, command_mode::oneoff }, {"headlightdisableleft", command_target::vehicle, command_mode::oneoff},
{ "headlighttoggleright", command_target::vehicle, command_mode::oneoff }, {"headlighttoggleright", command_target::vehicle, command_mode::oneoff},
{ "headlightenableright", command_target::vehicle, command_mode::oneoff }, {"headlightenableright", command_target::vehicle, command_mode::oneoff},
{ "headlightdisableright", command_target::vehicle, command_mode::oneoff }, {"headlightdisableright", command_target::vehicle, command_mode::oneoff},
{ "headlighttoggleupper", command_target::vehicle, command_mode::oneoff }, {"headlighttoggleupper", command_target::vehicle, command_mode::oneoff},
{ "headlightenableupper", command_target::vehicle, command_mode::oneoff }, {"headlightenableupper", command_target::vehicle, command_mode::oneoff},
{ "headlightdisableupper", command_target::vehicle, command_mode::oneoff }, {"headlightdisableupper", command_target::vehicle, command_mode::oneoff},
{ "redmarkertoggleleft", command_target::vehicle, command_mode::oneoff }, {"redmarkertoggleleft", command_target::vehicle, command_mode::oneoff},
{ "redmarkerenableleft", command_target::vehicle, command_mode::oneoff }, {"redmarkerenableleft", command_target::vehicle, command_mode::oneoff},
{ "redmarkerdisableleft", command_target::vehicle, command_mode::oneoff }, {"redmarkerdisableleft", command_target::vehicle, command_mode::oneoff},
{ "redmarkertoggleright", command_target::vehicle, command_mode::oneoff }, {"redmarkertoggleright", command_target::vehicle, command_mode::oneoff},
{ "redmarkerenableright", command_target::vehicle, command_mode::oneoff }, {"redmarkerenableright", command_target::vehicle, command_mode::oneoff},
{ "redmarkerdisableright", command_target::vehicle, command_mode::oneoff }, {"redmarkerdisableright", command_target::vehicle, command_mode::oneoff},
{ "headlighttogglerearleft", command_target::vehicle, command_mode::oneoff }, {"headlighttogglerearleft", command_target::vehicle, command_mode::oneoff},
{ "headlightenablerearleft", command_target::vehicle, command_mode::oneoff }, {"headlightenablerearleft", command_target::vehicle, command_mode::oneoff},
{ "headlightdisablerearleft", command_target::vehicle, command_mode::oneoff }, {"headlightdisablerearleft", command_target::vehicle, command_mode::oneoff},
{ "headlighttogglerearright", command_target::vehicle, command_mode::oneoff }, {"headlighttogglerearright", command_target::vehicle, command_mode::oneoff},
{ "headlightenablerearright", command_target::vehicle, command_mode::oneoff }, {"headlightenablerearright", command_target::vehicle, command_mode::oneoff},
{ "headlightdisablerearright", command_target::vehicle, command_mode::oneoff }, {"headlightdisablerearright", command_target::vehicle, command_mode::oneoff},
{ "headlighttogglerearupper", command_target::vehicle, command_mode::oneoff }, {"headlighttogglerearupper", command_target::vehicle, command_mode::oneoff},
{ "headlightenablerearupper", command_target::vehicle, command_mode::oneoff }, {"headlightenablerearupper", command_target::vehicle, command_mode::oneoff},
{ "headlightdisablerearupper", command_target::vehicle, command_mode::oneoff }, {"headlightdisablerearupper", command_target::vehicle, command_mode::oneoff},
{ "redmarkertogglerearleft", command_target::vehicle, command_mode::oneoff }, {"redmarkertogglerearleft", command_target::vehicle, command_mode::oneoff},
{ "redmarkerenablerearleft", command_target::vehicle, command_mode::oneoff }, {"redmarkerenablerearleft", command_target::vehicle, command_mode::oneoff},
{ "redmarkerdisablerearleft", command_target::vehicle, command_mode::oneoff }, {"redmarkerdisablerearleft", command_target::vehicle, command_mode::oneoff},
{ "redmarkertogglerearright", command_target::vehicle, command_mode::oneoff }, {"redmarkertogglerearright", command_target::vehicle, command_mode::oneoff},
{ "redmarkerenablerearright", command_target::vehicle, command_mode::oneoff }, {"redmarkerenablerearright", command_target::vehicle, command_mode::oneoff},
{ "redmarkerdisablerearright", command_target::vehicle, command_mode::oneoff }, {"redmarkerdisablerearright", command_target::vehicle, command_mode::oneoff},
{ "redmarkerstoggle", command_target::vehicle, command_mode::oneoff }, {"redmarkerstoggle", command_target::vehicle, command_mode::oneoff},
{ "endsignalstoggle", command_target::vehicle, command_mode::oneoff }, {"endsignalstoggle", command_target::vehicle, command_mode::oneoff},
{ "headlightsdimtoggle", command_target::vehicle, command_mode::oneoff }, {"headlightsdimtoggle", command_target::vehicle, command_mode::oneoff},
{ "headlightsdimenable", command_target::vehicle, command_mode::oneoff }, {"headlightsdimenable", command_target::vehicle, command_mode::oneoff},
{ "headlightsdimdisable", command_target::vehicle, command_mode::oneoff }, {"headlightsdimdisable", command_target::vehicle, command_mode::oneoff},
{ "motorconnectorsopen", command_target::vehicle, command_mode::oneoff }, {"motorconnectorsopen", command_target::vehicle, command_mode::oneoff},
{ "motorconnectorsclose", command_target::vehicle, command_mode::oneoff }, {"motorconnectorsclose", command_target::vehicle, command_mode::oneoff},
{ "motordisconnect", command_target::vehicle, command_mode::oneoff }, {"motordisconnect", command_target::vehicle, command_mode::oneoff},
{ "interiorlighttoggle", command_target::vehicle, command_mode::oneoff }, {"interiorlighttoggle", command_target::vehicle, command_mode::oneoff},
{ "interiorlightenable", command_target::vehicle, command_mode::oneoff }, {"interiorlightenable", command_target::vehicle, command_mode::oneoff},
{ "interiorlightdisable", command_target::vehicle, command_mode::oneoff }, {"interiorlightdisable", command_target::vehicle, command_mode::oneoff},
{ "interiorlightdimtoggle", command_target::vehicle, command_mode::oneoff }, {"interiorlightdimtoggle", command_target::vehicle, command_mode::oneoff},
{ "interiorlightdimenable", command_target::vehicle, command_mode::oneoff }, {"interiorlightdimenable", command_target::vehicle, command_mode::oneoff},
{ "interiorlightdimdisable", command_target::vehicle, command_mode::oneoff }, {"interiorlightdimdisable", command_target::vehicle, command_mode::oneoff},
{ "compartmentlightstoggle", command_target::vehicle, command_mode::oneoff }, {"compartmentlightstoggle", command_target::vehicle, command_mode::oneoff},
{ "compartmentlightsenable", command_target::vehicle, command_mode::oneoff }, {"compartmentlightsenable", command_target::vehicle, command_mode::oneoff},
{ "compartmentlightsdisable", command_target::vehicle, command_mode::oneoff }, {"compartmentlightsdisable", command_target::vehicle, command_mode::oneoff},
{ "instrumentlighttoggle", command_target::vehicle, command_mode::oneoff }, {"instrumentlighttoggle", command_target::vehicle, command_mode::oneoff},
{ "instrumentlightenable", command_target::vehicle, command_mode::oneoff }, {"instrumentlightenable", command_target::vehicle, command_mode::oneoff},
{ "instrumentlightdisable", command_target::vehicle, command_mode::oneoff }, {"instrumentlightdisable", command_target::vehicle, command_mode::oneoff},
{ "dashboardlighttoggle", command_target::vehicle, command_mode::oneoff }, {"dashboardlighttoggle", command_target::vehicle, command_mode::oneoff},
{ "dashboardlightenable", command_target::vehicle, command_mode::oneoff }, {"dashboardlightenable", command_target::vehicle, command_mode::oneoff},
{ "dashboardlightdisable", command_target::vehicle, command_mode::oneoff }, {"dashboardlightdisable", command_target::vehicle, command_mode::oneoff},
{ "timetablelighttoggle", command_target::vehicle, command_mode::oneoff }, {"timetablelighttoggle", command_target::vehicle, command_mode::oneoff},
{ "timetablelightenable", command_target::vehicle, command_mode::oneoff }, {"timetablelightenable", command_target::vehicle, command_mode::oneoff},
{ "timetablelightdisable", command_target::vehicle, command_mode::oneoff }, {"timetablelightdisable", command_target::vehicle, command_mode::oneoff},
{ "generictoggle0", command_target::vehicle, command_mode::oneoff }, {"generictoggle0", command_target::vehicle, command_mode::oneoff},
{ "generictoggle1", command_target::vehicle, command_mode::oneoff }, {"generictoggle1", command_target::vehicle, command_mode::oneoff},
{ "generictoggle2", command_target::vehicle, command_mode::oneoff }, {"generictoggle2", command_target::vehicle, command_mode::oneoff},
{ "generictoggle3", command_target::vehicle, command_mode::oneoff }, {"generictoggle3", command_target::vehicle, command_mode::oneoff},
{ "generictoggle4", command_target::vehicle, command_mode::oneoff }, {"generictoggle4", command_target::vehicle, command_mode::oneoff},
{ "generictoggle5", command_target::vehicle, command_mode::oneoff }, {"generictoggle5", command_target::vehicle, command_mode::oneoff},
{ "generictoggle6", command_target::vehicle, command_mode::oneoff }, {"generictoggle6", command_target::vehicle, command_mode::oneoff},
{ "generictoggle7", command_target::vehicle, command_mode::oneoff }, {"generictoggle7", command_target::vehicle, command_mode::oneoff},
{ "generictoggle8", command_target::vehicle, command_mode::oneoff }, {"generictoggle8", command_target::vehicle, command_mode::oneoff},
{ "generictoggle9", command_target::vehicle, command_mode::oneoff }, {"generictoggle9", command_target::vehicle, command_mode::oneoff},
{ "batterytoggle", command_target::vehicle, command_mode::oneoff }, {"batterytoggle", command_target::vehicle, command_mode::oneoff},
{ "batteryenable", command_target::vehicle, command_mode::oneoff }, {"batteryenable", command_target::vehicle, command_mode::oneoff},
{ "batterydisable", command_target::vehicle, command_mode::oneoff }, {"batterydisable", command_target::vehicle, command_mode::oneoff},
{ "cabactivationtoggle", command_target::vehicle, command_mode::oneoff }, {"cabactivationtoggle", command_target::vehicle, command_mode::oneoff},
{ "cabactivationenable", command_target::vehicle, command_mode::oneoff }, {"cabactivationenable", command_target::vehicle, command_mode::oneoff},
{ "cabactivationdisable", command_target::vehicle, command_mode::oneoff }, {"cabactivationdisable", command_target::vehicle, command_mode::oneoff},
{ "motorblowerstogglefront", command_target::vehicle, command_mode::oneoff }, {"motorblowerstogglefront", command_target::vehicle, command_mode::oneoff},
{ "motorblowerstogglerear", command_target::vehicle, command_mode::oneoff }, {"motorblowerstogglerear", command_target::vehicle, command_mode::oneoff},
{ "motorblowersdisableall", command_target::vehicle, command_mode::oneoff }, {"motorblowersdisableall", command_target::vehicle, command_mode::oneoff},
{ "coolingfanstoggle", command_target::vehicle, command_mode::oneoff }, {"coolingfanstoggle", command_target::vehicle, command_mode::oneoff},
{ "tempomattoggle", command_target::vehicle, command_mode::oneoff }, {"tempomattoggle", command_target::vehicle, command_mode::oneoff},
{ "springbraketoggle", command_target::vehicle, command_mode::oneoff }, {"springbraketoggle", command_target::vehicle, command_mode::oneoff},
{ "springbrakeenable", command_target::vehicle, command_mode::oneoff }, {"springbrakeenable", command_target::vehicle, command_mode::oneoff},
{ "springbrakedisable", command_target::vehicle, command_mode::oneoff }, {"springbrakedisable", command_target::vehicle, command_mode::oneoff},
{ "springbrakeshutofftoggle", command_target::vehicle, command_mode::oneoff }, {"springbrakeshutofftoggle", command_target::vehicle, command_mode::oneoff},
{ "springbrakeshutoffenable", command_target::vehicle, command_mode::oneoff }, {"springbrakeshutoffenable", command_target::vehicle, command_mode::oneoff},
{ "springbrakeshutoffdisable", command_target::vehicle, command_mode::oneoff }, {"springbrakeshutoffdisable", command_target::vehicle, command_mode::oneoff},
{ "springbrakerelease", command_target::vehicle }, {"springbrakerelease", command_target::vehicle},
{ "distancecounteractivate", command_target::vehicle, command_mode::oneoff }, {"distancecounteractivate", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolincrease", command_target::vehicle, command_mode::oneoff }, {"speedcontrolincrease", command_target::vehicle, command_mode::oneoff},
{ "speedcontroldecrease", command_target::vehicle, command_mode::oneoff }, {"speedcontroldecrease", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolpowerincrease", command_target::vehicle, command_mode::oneoff }, {"speedcontrolpowerincrease", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolpowerdecrease", command_target::vehicle, command_mode::oneoff }, {"speedcontrolpowerdecrease", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolbutton0", command_target::vehicle, command_mode::oneoff }, {"speedcontrolbutton0", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolbutton1", command_target::vehicle, command_mode::oneoff }, {"speedcontrolbutton1", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolbutton2", command_target::vehicle, command_mode::oneoff }, {"speedcontrolbutton2", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolbutton3", command_target::vehicle, command_mode::oneoff }, {"speedcontrolbutton3", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolbutton4", command_target::vehicle, command_mode::oneoff }, {"speedcontrolbutton4", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolbutton5", command_target::vehicle, command_mode::oneoff }, {"speedcontrolbutton5", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolbutton6", command_target::vehicle, command_mode::oneoff }, {"speedcontrolbutton6", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolbutton7", command_target::vehicle, command_mode::oneoff }, {"speedcontrolbutton7", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolbutton8", command_target::vehicle, command_mode::oneoff }, {"speedcontrolbutton8", command_target::vehicle, command_mode::oneoff},
{ "speedcontrolbutton9", command_target::vehicle, command_mode::oneoff }, {"speedcontrolbutton9", command_target::vehicle, command_mode::oneoff},
{ "inverterenable1", command_target::vehicle, command_mode::oneoff }, {"inverterenable1", command_target::vehicle, command_mode::oneoff},
{ "inverterenable2", command_target::vehicle, command_mode::oneoff }, {"inverterenable2", command_target::vehicle, command_mode::oneoff},
{ "inverterenable3", command_target::vehicle, command_mode::oneoff }, {"inverterenable3", command_target::vehicle, command_mode::oneoff},
{ "inverterenable4", command_target::vehicle, command_mode::oneoff }, {"inverterenable4", command_target::vehicle, command_mode::oneoff},
{ "inverterenable5", command_target::vehicle, command_mode::oneoff }, {"inverterenable5", command_target::vehicle, command_mode::oneoff},
{ "inverterenable6", command_target::vehicle, command_mode::oneoff }, {"inverterenable6", command_target::vehicle, command_mode::oneoff},
{ "inverterenable7", command_target::vehicle, command_mode::oneoff }, {"inverterenable7", command_target::vehicle, command_mode::oneoff},
{ "inverterenable8", command_target::vehicle, command_mode::oneoff }, {"inverterenable8", command_target::vehicle, command_mode::oneoff},
{ "inverterenable9", command_target::vehicle, command_mode::oneoff }, {"inverterenable9", command_target::vehicle, command_mode::oneoff},
{ "inverterenable10", command_target::vehicle, command_mode::oneoff }, {"inverterenable10", command_target::vehicle, command_mode::oneoff},
{ "inverterenable11", command_target::vehicle, command_mode::oneoff }, {"inverterenable11", command_target::vehicle, command_mode::oneoff},
{ "inverterenable12", command_target::vehicle, command_mode::oneoff }, {"inverterenable12", command_target::vehicle, command_mode::oneoff},
{ "inverterdisable1", command_target::vehicle, command_mode::oneoff }, {"inverterdisable1", command_target::vehicle, command_mode::oneoff},
{ "inverterdisable2", command_target::vehicle, command_mode::oneoff }, {"inverterdisable2", command_target::vehicle, command_mode::oneoff},
{ "inverterdisable3", command_target::vehicle, command_mode::oneoff }, {"inverterdisable3", command_target::vehicle, command_mode::oneoff},
{ "inverterdisable4", command_target::vehicle, command_mode::oneoff }, {"inverterdisable4", command_target::vehicle, command_mode::oneoff},
{ "inverterdisable5", command_target::vehicle, command_mode::oneoff }, {"inverterdisable5", command_target::vehicle, command_mode::oneoff},
{ "inverterdisable6", command_target::vehicle, command_mode::oneoff }, {"inverterdisable6", command_target::vehicle, command_mode::oneoff},
{ "inverterdisable7", command_target::vehicle, command_mode::oneoff }, {"inverterdisable7", command_target::vehicle, command_mode::oneoff},
{ "inverterdisable8", command_target::vehicle, command_mode::oneoff }, {"inverterdisable8", command_target::vehicle, command_mode::oneoff},
{ "inverterdisable9", command_target::vehicle, command_mode::oneoff }, {"inverterdisable9", command_target::vehicle, command_mode::oneoff},
{ "inverterdisable10", command_target::vehicle, command_mode::oneoff }, {"inverterdisable10", command_target::vehicle, command_mode::oneoff},
{ "inverterdisable11", command_target::vehicle, command_mode::oneoff }, {"inverterdisable11", command_target::vehicle, command_mode::oneoff},
{ "inverterdisable12", command_target::vehicle, command_mode::oneoff }, {"inverterdisable12", command_target::vehicle, command_mode::oneoff},
{ "invertertoggle1", command_target::vehicle, command_mode::oneoff }, {"invertertoggle1", command_target::vehicle, command_mode::oneoff},
{ "invertertoggle2", command_target::vehicle, command_mode::oneoff }, {"invertertoggle2", command_target::vehicle, command_mode::oneoff},
{ "invertertoggle3", command_target::vehicle, command_mode::oneoff }, {"invertertoggle3", command_target::vehicle, command_mode::oneoff},
{ "invertertoggle4", command_target::vehicle, command_mode::oneoff }, {"invertertoggle4", command_target::vehicle, command_mode::oneoff},
{ "invertertoggle5", command_target::vehicle, command_mode::oneoff }, {"invertertoggle5", command_target::vehicle, command_mode::oneoff},
{ "invertertoggle6", command_target::vehicle, command_mode::oneoff }, {"invertertoggle6", command_target::vehicle, command_mode::oneoff},
{ "invertertoggle7", command_target::vehicle, command_mode::oneoff }, {"invertertoggle7", command_target::vehicle, command_mode::oneoff},
{ "invertertoggle8", command_target::vehicle, command_mode::oneoff }, {"invertertoggle8", command_target::vehicle, command_mode::oneoff},
{ "invertertoggle9", command_target::vehicle, command_mode::oneoff }, {"invertertoggle9", command_target::vehicle, command_mode::oneoff},
{ "invertertoggle10", command_target::vehicle, command_mode::oneoff }, {"invertertoggle10", command_target::vehicle, command_mode::oneoff},
{ "invertertoggle11", command_target::vehicle, command_mode::oneoff }, {"invertertoggle11", command_target::vehicle, command_mode::oneoff},
{ "invertertoggle12", command_target::vehicle, command_mode::oneoff }, {"invertertoggle12", command_target::vehicle, command_mode::oneoff},
{ "globalradiostop", command_target::simulation, command_mode::oneoff }, {"globalradiostop", command_target::simulation, command_mode::oneoff},
{ "timejump", command_target::simulation, command_mode::oneoff }, {"timejump", command_target::simulation, command_mode::oneoff},
{ "timejumplarge", command_target::simulation, command_mode::oneoff }, {"timejumplarge", command_target::simulation, command_mode::oneoff},
{ "timejumpsmall", command_target::simulation, command_mode::oneoff }, {"timejumpsmall", command_target::simulation, command_mode::oneoff},
{ "setdatetime", command_target::simulation, command_mode::oneoff }, {"setdatetime", command_target::simulation, command_mode::oneoff},
{ "setweather", command_target::simulation, command_mode::oneoff }, {"setweather", command_target::simulation, command_mode::oneoff},
{ "settemperature", command_target::simulation, command_mode::oneoff }, {"settemperature", command_target::simulation, command_mode::oneoff},
{ "vehiclemoveforwards", command_target::vehicle, command_mode::oneoff }, {"vehiclemoveforwards", command_target::vehicle, command_mode::oneoff},
{ "vehiclemovebackwards", command_target::vehicle, command_mode::oneoff }, {"vehiclemovebackwards", command_target::vehicle, command_mode::oneoff},
{ "vehicleboost", command_target::vehicle, command_mode::oneoff }, {"vehicleboost", command_target::vehicle, command_mode::oneoff},
{ "debugtoggle", command_target::simulation, command_mode::oneoff }, {"debugtoggle", command_target::simulation, command_mode::oneoff},
{ "focuspauseset", command_target::simulation, command_mode::oneoff }, {"focuspauseset", command_target::simulation, command_mode::oneoff},
{ "pausetoggle", command_target::simulation, command_mode::oneoff }, {"pausetoggle", command_target::simulation, command_mode::oneoff},
{ "entervehicle", command_target::simulation, command_mode::oneoff }, {"entervehicle", command_target::simulation, command_mode::oneoff},
{ "resetconsist", command_target::simulation, command_mode::oneoff }, {"resetconsist", command_target::simulation, command_mode::oneoff},
{ "fillcompressor", command_target::simulation, command_mode::oneoff }, {"fillcompressor", command_target::simulation, command_mode::oneoff},
{ "consistreleaser", command_target::simulation, command_mode::oneoff }, {"consistreleaser", command_target::simulation, command_mode::oneoff},
{ "queueevent", command_target::simulation, command_mode::oneoff }, {"queueevent", command_target::simulation, command_mode::oneoff},
{ "setlight", command_target::simulation, command_mode::oneoff }, {"setlight", command_target::simulation, command_mode::oneoff},
{ "insertmodel", command_target::simulation, command_mode::oneoff }, {"insertmodel", command_target::simulation, command_mode::oneoff},
{ "deletemodel", command_target::simulation, command_mode::oneoff }, {"deletemodel", command_target::simulation, command_mode::oneoff},
{ "trainsetmove", command_target::simulation, command_mode::oneoff }, {"trainsetmove", command_target::simulation, command_mode::oneoff},
{ "consistteleport", command_target::simulation, command_mode::oneoff }, {"consistteleport", command_target::simulation, command_mode::oneoff},
{ "pullalarmchain", command_target::simulation, command_mode::oneoff }, {"pullalarmchain", command_target::simulation, command_mode::oneoff},
{ "sendaicommand", command_target::simulation, command_mode::oneoff }, {"sendaicommand", command_target::simulation, command_mode::oneoff},
{ "spawntrainset", command_target::simulation, command_mode::oneoff }, {"spawntrainset", command_target::simulation, command_mode::oneoff},
{ "destroytrainset", command_target::simulation, command_mode::oneoff }, {"destroytrainset", command_target::simulation, command_mode::oneoff},
{ "quitsimulation", command_target::simulation, command_mode::oneoff }, {"quitsimulation", command_target::simulation, command_mode::oneoff},
{"wiperswitchincrease", command_target::vehicle, command_mode::oneoff}, {"wiperswitchincrease", command_target::vehicle, command_mode::oneoff},
{"wiperswitchdecrease", command_target::vehicle, command_mode::oneoff}, {"wiperswitchdecrease", command_target::vehicle, command_mode::oneoff},
}; };
// Maps of command and coresponding strings // Maps of command and coresponding strings
std::unordered_map<std::string, user_command> commandMap = { std::unordered_map<std::string, user_command> commandMap = {{"aidriverdisable", user_command::aidriverdisable},
{"aidriverdisable", user_command::aidriverdisable},
{"jointcontrollerset", user_command::jointcontrollerset}, {"jointcontrollerset", user_command::jointcontrollerset},
{"mastercontrollerincrease", user_command::mastercontrollerincrease}, {"mastercontrollerincrease", user_command::mastercontrollerincrease},
{"mastercontrollerincreasefast", user_command::mastercontrollerincreasefast}, {"mastercontrollerincreasefast", user_command::mastercontrollerincreasefast},
@@ -733,7 +734,7 @@ std::unordered_map<std::string, user_command> commandMap = {
{"wiperswitchdecrease", user_command::wiperswitchdecrease}, {"wiperswitchdecrease", user_command::wiperswitchdecrease},
{"none", user_command::none}}; {"none", user_command::none}};
} // simulation } // namespace simulation
void command_queue::update() void command_queue::update()
{ {

View File

@@ -13,7 +13,8 @@ http://mozilla.org/MPL/2.0/.
#include <queue> #include <queue>
#include <unordered_set> #include <unordered_set>
enum class user_command { enum class user_command
{
aidriverenable = 0, aidriverenable = 0,
aidriverdisable, aidriverdisable,