/* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* MaSzyna EU07 locomotive simulator Copyright (C) 2001-2004 Marcin Wozniak, Maciej Czapkiewicz and others */ // the handlers of the commands of the cab #include "stdafx.h" #include "vehicle/Train.h" #include "vehicle/horn.h" #include "vehicle/linebreaker.h" #include "vehicle/holdcoillever.h" #include "vehicle/compartmentlightsswitch.h" #include "vehicle/odometer.h" #include "vehicle/mainctrlact.h" #include "utilities/Globals.h" #include "simulation/simulation.h" #include "simulation/blackboxrecorder.h" #include "world/Event.h" #include "simulation/simulationtime.h" #include "vehicle/Camera.h" #include "utilities/Logs.h" #include "model/MdlMngr.h" #include "model/Model3d.h" #include "utilities/Timer.h" #include "vehicle/Driver.h" #include "vehicle/DynObj.h" #include "world/mtable.h" #include "Console.h" #include "application/application.h" #include "rendering/renderer.h" #include "physics/vehicle.h" #include #include #include #include #include #include "vehicle/cab/internal.h" // NOTE: we're currently using universal handlers and static handler map but it may be beneficial to have these implemented on individual class instance basis // TBD, TODO: consider this approach if we ever want to have customized consist behaviour to received commands, based on the consist/vehicle type or whatever TTrain::commandhandler_map const TTrain::m_commandhandlers = { {user_command::aidriverenable, &TTrain::OnCommand_aidriverenable}, {user_command::aidriverdisable, &TTrain::OnCommand_aidriverdisable}, {user_command::jointcontrollerset, &TTrain::OnCommand_jointcontrollerset}, {user_command::mastercontrollerincrease, &TTrain::OnCommand_mastercontrollerincrease}, {user_command::mastercontrollerincreasefast, &TTrain::OnCommand_mastercontrollerincreasefast}, {user_command::mastercontrollerdecrease, &TTrain::OnCommand_mastercontrollerdecrease}, {user_command::mastercontrollerdecreasefast, &TTrain::OnCommand_mastercontrollerdecreasefast}, {user_command::mastercontrollerset, &TTrain::OnCommand_mastercontrollerset}, {user_command::secondcontrollerincrease, &TTrain::OnCommand_secondcontrollerincrease}, {user_command::secondcontrollerincreasefast, &TTrain::OnCommand_secondcontrollerincreasefast}, {user_command::secondcontrollerdecrease, &TTrain::OnCommand_secondcontrollerdecrease}, {user_command::secondcontrollerdecreasefast, &TTrain::OnCommand_secondcontrollerdecreasefast}, {user_command::secondcontrollerset, &TTrain::OnCommand_secondcontrollerset}, {user_command::dynamicbrakecontrollerincrease, &TTrain::OnCommand_DynamicBrakeControllerIncrease}, {user_command::dynamicbrakecontrollerincreasefast, &TTrain::OnCommand_DynamicBrakeControllerIncreaseFast}, {user_command::dynamicbrakecontrollerdecrease, &TTrain::OnCommand_DynamicBrakeControllerDecrease}, {user_command::dynamicbrakecontrollerdecreasefast, &TTrain::OnCommand_DynamicBrakeControllerDecreaseFast}, {user_command::dynamicbrakecontrollerset, &TTrain::OnCommand_DynamicBrakeControllerSet}, {user_command::notchingrelaytoggle, &TTrain::OnCommand_notchingrelaytoggle}, {user_command::tempomattoggle, &TTrain::OnCommand_tempomattoggle}, {user_command::mucurrentindicatorothersourceactivate, &TTrain::OnCommand_mucurrentindicatorothersourceactivate}, {user_command::independentbrakeincrease, &TTrain::OnCommand_independentbrakeincrease}, {user_command::independentbrakeincreasefast, &TTrain::OnCommand_independentbrakeincreasefast}, {user_command::independentbrakedecrease, &TTrain::OnCommand_independentbrakedecrease}, {user_command::independentbrakedecreasefast, &TTrain::OnCommand_independentbrakedecreasefast}, {user_command::independentbrakeset, &TTrain::OnCommand_independentbrakeset}, {user_command::independentbrakebailoff, &TTrain::OnCommand_independentbrakebailoff}, {user_command::universalbrakebutton1, &TTrain::OnCommand_universalbrakebutton1}, {user_command::universalbrakebutton2, &TTrain::OnCommand_universalbrakebutton2}, {user_command::universalbrakebutton3, &TTrain::OnCommand_universalbrakebutton3}, {user_command::trainbrakeincrease, &TTrain::OnCommand_trainbrakeincrease}, {user_command::trainbrakedecrease, &TTrain::OnCommand_trainbrakedecrease}, {user_command::trainbrakeset, &TTrain::OnCommand_trainbrakeset}, {user_command::trainbrakecharging, &TTrain::OnCommand_trainbrakecharging}, {user_command::trainbrakerelease, &TTrain::OnCommand_trainbrakerelease}, {user_command::trainbrakefirstservice, &TTrain::OnCommand_trainbrakefirstservice}, {user_command::trainbrakeservice, &TTrain::OnCommand_trainbrakeservice}, {user_command::trainbrakefullservice, &TTrain::OnCommand_trainbrakefullservice}, {user_command::trainbrakehandleoff, &TTrain::OnCommand_trainbrakehandleoff}, {user_command::trainbrakeemergency, &TTrain::OnCommand_trainbrakeemergency}, {user_command::trainbrakebasepressureincrease, &TTrain::OnCommand_trainbrakebasepressureincrease}, {user_command::trainbrakebasepressuredecrease, &TTrain::OnCommand_trainbrakebasepressuredecrease}, {user_command::trainbrakebasepressurereset, &TTrain::OnCommand_trainbrakebasepressurereset}, {user_command::trainbrakeoperationtoggle, &TTrain::OnCommand_trainbrakeoperationtoggle}, {user_command::manualbrakeincrease, &TTrain::OnCommand_manualbrakeincrease}, {user_command::manualbrakedecrease, &TTrain::OnCommand_manualbrakedecrease}, {user_command::alarmchaintoggle, &TTrain::OnCommand_alarmchaintoggle}, {user_command::alarmchainenable, &TTrain::OnCommand_alarmchainenable}, {user_command::alarmchaindisable, &TTrain::OnCommand_alarmchaindisable}, {user_command::wheelspinbrakeactivate, &TTrain::OnCommand_wheelspinbrakeactivate}, {user_command::sandboxactivate, &TTrain::OnCommand_sandboxactivate}, {user_command::autosandboxtoggle, &TTrain::OnCommand_autosandboxtoggle}, {user_command::autosandboxactivate, &TTrain::OnCommand_autosandboxactivate}, {user_command::autosandboxdeactivate, &TTrain::OnCommand_autosandboxdeactivate}, {user_command::epbrakecontroltoggle, &TTrain::OnCommand_epbrakecontroltoggle}, {user_command::epbrakecontrolenable, &TTrain::OnCommand_epbrakecontrolenable}, {user_command::epbrakecontroldisable, &TTrain::OnCommand_epbrakecontroldisable}, {user_command::trainbrakeoperationmodeincrease, &TTrain::OnCommand_trainbrakeoperationmodeincrease}, {user_command::trainbrakeoperationmodedecrease, &TTrain::OnCommand_trainbrakeoperationmodedecrease}, {user_command::brakeactingspeedincrease, &TTrain::OnCommand_brakeactingspeedincrease}, {user_command::brakeactingspeeddecrease, &TTrain::OnCommand_brakeactingspeeddecrease}, {user_command::brakeactingspeedsetcargo, &TTrain::OnCommand_brakeactingspeedsetcargo}, {user_command::brakeactingspeedsetpassenger, &TTrain::OnCommand_brakeactingspeedsetpassenger}, {user_command::brakeactingspeedsetrapid, &TTrain::OnCommand_brakeactingspeedsetrapid}, {user_command::brakeloadcompensationincrease, &TTrain::OnCommand_brakeloadcompensationincrease}, {user_command::brakeloadcompensationdecrease, &TTrain::OnCommand_brakeloadcompensationdecrease}, {user_command::mubrakingindicatortoggle, &TTrain::OnCommand_mubrakingindicatortoggle}, {user_command::reverserincrease, &TTrain::OnCommand_reverserincrease}, {user_command::reverserdecrease, &TTrain::OnCommand_reverserdecrease}, {user_command::reverserforwardhigh, &TTrain::OnCommand_reverserforwardhigh}, {user_command::reverserforward, &TTrain::OnCommand_reverserforward}, {user_command::reverserneutral, &TTrain::OnCommand_reverserneutral}, {user_command::reverserbackward, &TTrain::OnCommand_reverserbackward}, {user_command::alerteracknowledge, &TTrain::OnCommand_alerteracknowledge}, {user_command::cabsignalacknowledge, &TTrain::OnCommand_cabsignalacknowledge}, {user_command::batterytoggle, &TTrain::OnCommand_batterytoggle}, {user_command::batteryenable, &TTrain::OnCommand_batteryenable}, {user_command::batterydisable, &TTrain::OnCommand_batterydisable}, {user_command::cabactivationtoggle, &TTrain::OnCommand_cabactivationtoggle}, {user_command::cabactivationenable, &TTrain::OnCommand_cabactivationenable}, {user_command::cabactivationdisable, &TTrain::OnCommand_cabactivationdisable}, {user_command::pantographcompressorvalvetoggle, &TTrain::OnCommand_pantographcompressorvalvetoggle}, {user_command::pantographcompressorvalveenable, &TTrain::OnCommand_pantographcompressorvalveenable}, {user_command::pantographcompressorvalvedisable, &TTrain::OnCommand_pantographcompressorvalvedisable}, {user_command::pantographcompressoractivate, &TTrain::OnCommand_pantographcompressoractivate}, {user_command::pantographtogglefront, &TTrain::OnCommand_pantographtogglefront}, {user_command::pantographtogglerear, &TTrain::OnCommand_pantographtogglerear}, {user_command::pantographraisefront, &TTrain::OnCommand_pantographraisefront}, {user_command::pantographraiserear, &TTrain::OnCommand_pantographraiserear}, {user_command::pantographlowerfront, &TTrain::OnCommand_pantographlowerfront}, {user_command::pantographlowerrear, &TTrain::OnCommand_pantographlowerrear}, {user_command::wiperswitchincrease, &TTrain::OnCommand_wiperswitchincrease}, {user_command::wiperswitchdecrease, &TTrain::OnCommand_wiperswitchdecrease}, {user_command::lightsset, &TTrain::OnCommand_lightsset}, {user_command::pantographlowerall, &TTrain::OnCommand_pantographlowerall}, {user_command::pantographselectnext, &TTrain::OnCommand_pantographselectnext}, {user_command::pantographselectprevious, &TTrain::OnCommand_pantographselectprevious}, {user_command::pantographtoggleselected, &TTrain::OnCommand_pantographtoggleselected}, {user_command::pantographraiseselected, &TTrain::OnCommand_pantographraiseselected}, {user_command::pantographlowerselected, &TTrain::OnCommand_pantographlowerselected}, {user_command::pantographvalvesupdate, &TTrain::OnCommand_pantographvalvesupdate}, {user_command::pantographvalvesoff, &TTrain::OnCommand_pantographvalvesoff}, {user_command::linebreakertoggle, &TTrain::OnCommand_linebreakertoggle}, {user_command::linebreakeropen, &TTrain::OnCommand_linebreakeropen}, {user_command::linebreakerclose, &TTrain::OnCommand_linebreakerclose}, {user_command::linebreakertoggleb, &TTrain::OnCommand_linebreakertoggleremote}, {user_command::linebreakeropenb, &TTrain::OnCommand_linebreakeropenremote}, {user_command::linebreakercloseb, &TTrain::OnCommand_linebreakercloseremote}, {user_command::linebreakertogglec, &TTrain::OnCommand_linebreakertoggleremote}, {user_command::linebreakeropenc, &TTrain::OnCommand_linebreakeropenremote}, {user_command::linebreakerclosec, &TTrain::OnCommand_linebreakercloseremote}, {user_command::fuelpumptoggle, &TTrain::OnCommand_fuelpumptoggle}, {user_command::fuelpumpenable, &TTrain::OnCommand_fuelpumpenable}, {user_command::fuelpumpdisable, &TTrain::OnCommand_fuelpumpdisable}, {user_command::oilpumptoggle, &TTrain::OnCommand_oilpumptoggle}, {user_command::oilfuelpumptoggle, &TTrain::OnCommand_oilfuelpumptoggle}, {user_command::oilpumpenable, &TTrain::OnCommand_oilpumpenable}, {user_command::oilpumpdisable, &TTrain::OnCommand_oilpumpdisable}, {user_command::tractionmodetoggle, &TTrain::OnCommand_tractionmodetoggle}, {user_command::tractionmodecatenary, &TTrain::OnCommand_tractionmodecatenary}, {user_command::tractionmodegenset, &TTrain::OnCommand_tractionmodegenset}, {user_command::gensettoggle, &TTrain::OnCommand_gensettoggle}, {user_command::gensetenable, &TTrain::OnCommand_gensetenable}, {user_command::gensetdisable, &TTrain::OnCommand_gensetdisable}, {user_command::waterheaterbreakertoggle, &TTrain::OnCommand_waterheaterbreakertoggle}, {user_command::waterheaterbreakerclose, &TTrain::OnCommand_waterheaterbreakerclose}, {user_command::waterheaterbreakeropen, &TTrain::OnCommand_waterheaterbreakeropen}, {user_command::waterheatertoggle, &TTrain::OnCommand_waterheatertoggle}, {user_command::waterheaterenable, &TTrain::OnCommand_waterheaterenable}, {user_command::waterheaterdisable, &TTrain::OnCommand_waterheaterdisable}, {user_command::waterpumpbreakertoggle, &TTrain::OnCommand_waterpumpbreakertoggle}, {user_command::waterpumpbreakerclose, &TTrain::OnCommand_waterpumpbreakerclose}, {user_command::waterpumpbreakeropen, &TTrain::OnCommand_waterpumpbreakeropen}, {user_command::waterpumptoggle, &TTrain::OnCommand_waterpumptoggle}, {user_command::waterpumpenable, &TTrain::OnCommand_waterpumpenable}, {user_command::waterpumpdisable, &TTrain::OnCommand_waterpumpdisable}, {user_command::watercircuitslinktoggle, &TTrain::OnCommand_watercircuitslinktoggle}, {user_command::watercircuitslinkenable, &TTrain::OnCommand_watercircuitslinkenable}, {user_command::watercircuitslinkdisable, &TTrain::OnCommand_watercircuitslinkdisable}, {user_command::convertertoggle, &TTrain::OnCommand_convertertoggle}, {user_command::converterenable, &TTrain::OnCommand_converterenable}, {user_command::converterdisable, &TTrain::OnCommand_converterdisable}, {user_command::convertertogglelocal, &TTrain::OnCommand_convertertogglelocal}, {user_command::converteroverloadrelayreset, &TTrain::OnCommand_converteroverloadrelayreset}, {user_command::compressortoggle, &TTrain::OnCommand_compressortoggle}, {user_command::compressorenable, &TTrain::OnCommand_compressorenable}, {user_command::compressordisable, &TTrain::OnCommand_compressordisable}, {user_command::compressortogglelocal, &TTrain::OnCommand_compressortogglelocal}, {user_command::compressorpresetactivatenext, &TTrain::OnCommand_compressorpresetactivatenext}, {user_command::compressorpresetactivateprevious, &TTrain::OnCommand_compressorpresetactivateprevious}, {user_command::compressorpresetactivatedefault, &TTrain::OnCommand_compressorpresetactivatedefault}, {user_command::motorblowerstogglefront, &TTrain::OnCommand_motorblowerstogglefront}, {user_command::motorblowerstogglerear, &TTrain::OnCommand_motorblowerstogglerear}, {user_command::motorblowersdisableall, &TTrain::OnCommand_motorblowersdisableall}, {user_command::coolingfanstoggle, &TTrain::OnCommand_coolingfanstoggle}, {user_command::motorconnectorsopen, &TTrain::OnCommand_motorconnectorsopen}, {user_command::motorconnectorsclose, &TTrain::OnCommand_motorconnectorsclose}, {user_command::motordisconnect, &TTrain::OnCommand_motordisconnect}, {user_command::motoroverloadrelaythresholdtoggle, &TTrain::OnCommand_motoroverloadrelaythresholdtoggle}, {user_command::motoroverloadrelaythresholdsetlow, &TTrain::OnCommand_motoroverloadrelaythresholdsetlow}, {user_command::motoroverloadrelaythresholdsethigh, &TTrain::OnCommand_motoroverloadrelaythresholdsethigh}, {user_command::motoroverloadrelayreset, &TTrain::OnCommand_motoroverloadrelayreset}, {user_command::universalrelayreset1, &TTrain::OnCommand_universalrelayreset}, {user_command::universalrelayreset2, &TTrain::OnCommand_universalrelayreset}, {user_command::universalrelayreset3, &TTrain::OnCommand_universalrelayreset}, {user_command::heatingtoggle, &TTrain::OnCommand_heatingtoggle}, {user_command::heatingenable, &TTrain::OnCommand_heatingenable}, {user_command::heatingdisable, &TTrain::OnCommand_heatingdisable}, {user_command::lightspresetactivatenext, &TTrain::OnCommand_lightspresetactivatenext}, {user_command::lightspresetactivateprevious, &TTrain::OnCommand_lightspresetactivateprevious}, {user_command::headlighttoggleleft, &TTrain::OnCommand_headlighttoggleleft}, {user_command::headlightenableleft, &TTrain::OnCommand_headlightenableleft}, {user_command::headlightdisableleft, &TTrain::OnCommand_headlightdisableleft}, {user_command::headlighttoggleright, &TTrain::OnCommand_headlighttoggleright}, {user_command::headlightenableright, &TTrain::OnCommand_headlightenableright}, {user_command::headlightdisableright, &TTrain::OnCommand_headlightdisableright}, {user_command::headlighttoggleupper, &TTrain::OnCommand_headlighttoggleupper}, {user_command::headlightenableupper, &TTrain::OnCommand_headlightenableupper}, {user_command::headlightdisableupper, &TTrain::OnCommand_headlightdisableupper}, {user_command::redmarkertoggleleft, &TTrain::OnCommand_redmarkertoggleleft}, {user_command::redmarkerenableleft, &TTrain::OnCommand_redmarkerenableleft}, {user_command::redmarkerdisableleft, &TTrain::OnCommand_redmarkerdisableleft}, {user_command::redmarkertoggleright, &TTrain::OnCommand_redmarkertoggleright}, {user_command::redmarkerenableright, &TTrain::OnCommand_redmarkerenableright}, {user_command::redmarkerdisableright, &TTrain::OnCommand_redmarkerdisableright}, {user_command::headlighttogglerearleft, &TTrain::OnCommand_headlighttogglerearleft}, {user_command::headlightenablerearleft, &TTrain::OnCommand_headlightenablerearleft}, {user_command::headlightdisablerearleft, &TTrain::OnCommand_headlightdisablerearleft}, {user_command::headlighttogglerearright, &TTrain::OnCommand_headlighttogglerearright}, {user_command::headlightenablerearright, &TTrain::OnCommand_headlightenablerearright}, {user_command::headlightdisablerearright, &TTrain::OnCommand_headlightdisablerearright}, {user_command::headlighttogglerearupper, &TTrain::OnCommand_headlighttogglerearupper}, {user_command::headlightenablerearupper, &TTrain::OnCommand_headlightenablerearupper}, {user_command::headlightdisablerearupper, &TTrain::OnCommand_headlightdisablerearupper}, {user_command::modernlightdimmerdecrease, &TTrain::OnCommand_modernlightdimmerdecrease}, {user_command::modernlightdimmerincrease, &TTrain::OnCommand_modernlightdimmerincrease}, {user_command::redmarkertogglerearleft, &TTrain::OnCommand_redmarkertogglerearleft}, {user_command::redmarkerenablerearleft, &TTrain::OnCommand_redmarkerenablerearleft}, {user_command::redmarkerdisablerearleft, &TTrain::OnCommand_redmarkerdisablerearleft}, {user_command::redmarkertogglerearright, &TTrain::OnCommand_redmarkertogglerearright}, {user_command::redmarkerenablerearright, &TTrain::OnCommand_redmarkerenablerearright}, {user_command::redmarkerdisablerearright, &TTrain::OnCommand_redmarkerdisablerearright}, {user_command::redmarkerstoggle, &TTrain::OnCommand_redmarkerstoggle}, {user_command::endsignalstoggle, &TTrain::OnCommand_endsignalstoggle}, {user_command::headlightsdimtoggle, &TTrain::OnCommand_headlightsdimtoggle}, {user_command::headlightsdimenable, &TTrain::OnCommand_headlightsdimenable}, {user_command::headlightsdimdisable, &TTrain::OnCommand_headlightsdimdisable}, {user_command::interiorlighttoggle, &TTrain::OnCommand_interiorlighttoggle}, {user_command::interiorlightenable, &TTrain::OnCommand_interiorlightenable}, {user_command::interiorlightdisable, &TTrain::OnCommand_interiorlightdisable}, {user_command::interiorlightdimtoggle, &TTrain::OnCommand_interiorlightdimtoggle}, {user_command::interiorlightdimenable, &TTrain::OnCommand_interiorlightdimenable}, {user_command::interiorlightdimdisable, &TTrain::OnCommand_interiorlightdimdisable}, {user_command::compartmentlightstoggle, &TTrain::OnCommand_compartmentlightstoggle}, {user_command::compartmentlightsenable, &TTrain::OnCommand_compartmentlightsenable}, {user_command::compartmentlightsdisable, &TTrain::OnCommand_compartmentlightsdisable}, {user_command::instrumentlighttoggle, &TTrain::OnCommand_instrumentlighttoggle}, {user_command::instrumentlightenable, &TTrain::OnCommand_instrumentlightenable}, {user_command::instrumentlightdisable, &TTrain::OnCommand_instrumentlightdisable}, {user_command::dashboardlighttoggle, &TTrain::OnCommand_dashboardlighttoggle}, {user_command::dashboardlightenable, &TTrain::OnCommand_dashboardlightenable}, {user_command::dashboardlightdisable, &TTrain::OnCommand_dashboardlightdisable}, {user_command::timetablelighttoggle, &TTrain::OnCommand_timetablelighttoggle}, {user_command::timetablelightenable, &TTrain::OnCommand_timetablelightenable}, {user_command::timetablelightdisable, &TTrain::OnCommand_timetablelightdisable}, {user_command::doorlocktoggle, &TTrain::OnCommand_doorlocktoggle}, {user_command::doortoggleleft, &TTrain::OnCommand_doortoggleleft}, {user_command::doortoggleright, &TTrain::OnCommand_doortoggleright}, {user_command::doorpermitleft, &TTrain::OnCommand_doorpermitleft}, {user_command::doorpermitright, &TTrain::OnCommand_doorpermitright}, {user_command::doorpermitpresetactivatenext, &TTrain::OnCommand_doorpermitpresetactivatenext}, {user_command::doorpermitpresetactivateprevious, &TTrain::OnCommand_doorpermitpresetactivateprevious}, {user_command::dooropenleft, &TTrain::OnCommand_dooropenleft}, {user_command::dooropenright, &TTrain::OnCommand_dooropenright}, {user_command::doorcloseleft, &TTrain::OnCommand_doorcloseleft}, {user_command::doorcloseright, &TTrain::OnCommand_doorcloseright}, {user_command::dooropenall, &TTrain::OnCommand_dooropenall}, {user_command::doorcloseall, &TTrain::OnCommand_doorcloseall}, {user_command::doorsteptoggle, &TTrain::OnCommand_doorsteptoggle}, {user_command::doormodetoggle, &TTrain::OnCommand_doormodetoggle}, {user_command::mirrorstoggle, &TTrain::OnCommand_mirrorstoggle}, {user_command::nearestcarcouplingincrease, &TTrain::OnCommand_nearestcarcouplingincrease}, {user_command::nearestcarcouplingdisconnect, &TTrain::OnCommand_nearestcarcouplingdisconnect}, {user_command::nearestcarcoupleradapterattach, &TTrain::OnCommand_nearestcarcoupleradapterattach}, {user_command::nearestcarcoupleradapterremove, &TTrain::OnCommand_nearestcarcoupleradapterremove}, {user_command::occupiedcarcouplingdisconnect, &TTrain::OnCommand_occupiedcarcouplingdisconnect}, {user_command::departureannounce, &TTrain::OnCommand_departureannounce}, {user_command::hornlowactivate, &TTrain::OnCommand_hornlowactivate}, {user_command::hornhighactivate, &TTrain::OnCommand_hornhighactivate}, {user_command::whistleactivate, &TTrain::OnCommand_whistleactivate}, {user_command::radiotoggle, &TTrain::OnCommand_radiotoggle}, {user_command::radioenable, &TTrain::OnCommand_radioenable}, {user_command::radiodisable, &TTrain::OnCommand_radiodisable}, {user_command::radiochannelincrease, &TTrain::OnCommand_radiochannelincrease}, {user_command::radiochanneldecrease, &TTrain::OnCommand_radiochanneldecrease}, {user_command::radiochannelset, &TTrain::OnCommand_radiochannelset}, {user_command::radiostopsend, &TTrain::OnCommand_radiostopsend}, {user_command::radiostopenable, &TTrain::OnCommand_radiostopenable}, {user_command::radiostopdisable, &TTrain::OnCommand_radiostopdisable}, {user_command::radiostoptest, &TTrain::OnCommand_radiostoptest}, {user_command::radiocall1send, &TTrain::OnCommand_radiocall1send}, {user_command::radiocall3send, &TTrain::OnCommand_radiocall3send}, {user_command::radiovolumeincrease, &TTrain::OnCommand_radiovolumeincrease}, {user_command::radiovolumedecrease, &TTrain::OnCommand_radiovolumedecrease}, {user_command::radiovolumeset, &TTrain::OnCommand_radiovolumeset}, {user_command::fmradiotoggle, &TTrain::OnCommand_fmradiotoggle}, {user_command::fmradiovolumeincrease, &TTrain::OnCommand_fmradiovolumeincrease}, {user_command::fmradiovolumedecrease, &TTrain::OnCommand_fmradiovolumedecrease}, {user_command::fmradiovolumeset, &TTrain::OnCommand_fmradiovolumeset}, {user_command::fmradiotuneincrease, &TTrain::OnCommand_fmradiotuneincrease}, {user_command::fmradiotunedecrease, &TTrain::OnCommand_fmradiotunedecrease}, {user_command::fmradiotuneset, &TTrain::OnCommand_fmradiotuneset}, {user_command::radiofusetoggle, &TTrain::OnCommand_radiofusetoggle}, {user_command::radiofuseenable, &TTrain::OnCommand_radiofuseenable}, {user_command::radiofusedisable, &TTrain::OnCommand_radiofusedisable}, {user_command::cabchangeforward, &TTrain::OnCommand_cabchangeforward}, {user_command::cabchangebackward, &TTrain::OnCommand_cabchangebackward}, {user_command::generictoggle0, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle1, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle2, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle3, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle4, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle5, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle6, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle7, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle8, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle9, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle10, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle11, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle12, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle13, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle14, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle15, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle16, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle17, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle18, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle19, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle20, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle21, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle22, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle23, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle24, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle25, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle26, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle27, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle28, &TTrain::OnCommand_generictoggle}, {user_command::generictoggle29, &TTrain::OnCommand_generictoggle}, {user_command::genericset0, &TTrain::OnCommand_genericset}, {user_command::genericset1, &TTrain::OnCommand_genericset}, {user_command::genericset2, &TTrain::OnCommand_genericset}, {user_command::genericset3, &TTrain::OnCommand_genericset}, {user_command::genericset4, &TTrain::OnCommand_genericset}, {user_command::genericset5, &TTrain::OnCommand_genericset}, {user_command::genericset6, &TTrain::OnCommand_genericset}, {user_command::genericset7, &TTrain::OnCommand_genericset}, {user_command::genericset8, &TTrain::OnCommand_genericset}, {user_command::genericset9, &TTrain::OnCommand_genericset}, {user_command::genericset10, &TTrain::OnCommand_genericset}, {user_command::genericset11, &TTrain::OnCommand_genericset}, {user_command::genericset12, &TTrain::OnCommand_genericset}, {user_command::genericset13, &TTrain::OnCommand_genericset}, {user_command::genericset14, &TTrain::OnCommand_genericset}, {user_command::genericset15, &TTrain::OnCommand_genericset}, {user_command::genericset16, &TTrain::OnCommand_genericset}, {user_command::genericset17, &TTrain::OnCommand_genericset}, {user_command::genericset18, &TTrain::OnCommand_genericset}, {user_command::genericset19, &TTrain::OnCommand_genericset}, {user_command::genericset20, &TTrain::OnCommand_genericset}, {user_command::genericset21, &TTrain::OnCommand_genericset}, {user_command::genericset22, &TTrain::OnCommand_genericset}, {user_command::genericset23, &TTrain::OnCommand_genericset}, {user_command::genericset24, &TTrain::OnCommand_genericset}, {user_command::genericset25, &TTrain::OnCommand_genericset}, {user_command::genericset26, &TTrain::OnCommand_genericset}, {user_command::genericset27, &TTrain::OnCommand_genericset}, {user_command::genericset28, &TTrain::OnCommand_genericset}, {user_command::genericset29, &TTrain::OnCommand_genericset}, {user_command::vehiclemoveforwards, &TTrain::OnCommand_vehiclemoveforwards}, {user_command::vehiclemovebackwards, &TTrain::OnCommand_vehiclemovebackwards}, {user_command::vehicleboost, &TTrain::OnCommand_vehicleboost}, {user_command::springbraketoggle, &TTrain::OnCommand_springbraketoggle}, {user_command::springbrakeenable, &TTrain::OnCommand_springbrakeenable}, {user_command::springbrakedisable, &TTrain::OnCommand_springbrakedisable}, {user_command::springbrakeshutofftoggle, &TTrain::OnCommand_springbrakeshutofftoggle}, {user_command::springbrakeshutoffenable, &TTrain::OnCommand_springbrakeshutoffenable}, {user_command::springbrakeshutoffdisable, &TTrain::OnCommand_springbrakeshutoffdisable}, {user_command::springbrakerelease, &TTrain::OnCommand_springbrakerelease}, {user_command::distancecounteractivate, &TTrain::OnCommand_distancecounteractivate}, {user_command::speedcontrolincrease, &TTrain::OnCommand_speedcontrolincrease}, {user_command::speedcontroldecrease, &TTrain::OnCommand_speedcontroldecrease}, {user_command::speedcontrolpowerincrease, &TTrain::OnCommand_speedcontrolpowerincrease}, {user_command::speedcontrolpowerdecrease, &TTrain::OnCommand_speedcontrolpowerdecrease}, {user_command::speedcontrolbutton0, &TTrain::OnCommand_speedcontrolbutton}, {user_command::speedcontrolbutton1, &TTrain::OnCommand_speedcontrolbutton}, {user_command::speedcontrolbutton2, &TTrain::OnCommand_speedcontrolbutton}, {user_command::speedcontrolbutton3, &TTrain::OnCommand_speedcontrolbutton}, {user_command::speedcontrolbutton4, &TTrain::OnCommand_speedcontrolbutton}, {user_command::speedcontrolbutton5, &TTrain::OnCommand_speedcontrolbutton}, {user_command::speedcontrolbutton6, &TTrain::OnCommand_speedcontrolbutton}, {user_command::speedcontrolbutton7, &TTrain::OnCommand_speedcontrolbutton}, {user_command::speedcontrolbutton8, &TTrain::OnCommand_speedcontrolbutton}, {user_command::speedcontrolbutton9, &TTrain::OnCommand_speedcontrolbutton}, {user_command::inverterenable1, &TTrain::OnCommand_inverterenable}, {user_command::inverterenable2, &TTrain::OnCommand_inverterenable}, {user_command::inverterenable3, &TTrain::OnCommand_inverterenable}, {user_command::inverterenable4, &TTrain::OnCommand_inverterenable}, {user_command::inverterenable5, &TTrain::OnCommand_inverterenable}, {user_command::inverterenable6, &TTrain::OnCommand_inverterenable}, {user_command::inverterenable7, &TTrain::OnCommand_inverterenable}, {user_command::inverterenable8, &TTrain::OnCommand_inverterenable}, {user_command::inverterenable9, &TTrain::OnCommand_inverterenable}, {user_command::inverterenable10, &TTrain::OnCommand_inverterenable}, {user_command::inverterenable11, &TTrain::OnCommand_inverterenable}, {user_command::inverterenable12, &TTrain::OnCommand_inverterenable}, {user_command::inverterdisable1, &TTrain::OnCommand_inverterdisable}, {user_command::inverterdisable2, &TTrain::OnCommand_inverterdisable}, {user_command::inverterdisable3, &TTrain::OnCommand_inverterdisable}, {user_command::inverterdisable4, &TTrain::OnCommand_inverterdisable}, {user_command::inverterdisable5, &TTrain::OnCommand_inverterdisable}, {user_command::inverterdisable6, &TTrain::OnCommand_inverterdisable}, {user_command::inverterdisable7, &TTrain::OnCommand_inverterdisable}, {user_command::inverterdisable8, &TTrain::OnCommand_inverterdisable}, {user_command::inverterdisable9, &TTrain::OnCommand_inverterdisable}, {user_command::inverterdisable10, &TTrain::OnCommand_inverterdisable}, {user_command::inverterdisable11, &TTrain::OnCommand_inverterdisable}, {user_command::inverterdisable12, &TTrain::OnCommand_inverterdisable}, {user_command::invertertoggle1, &TTrain::OnCommand_invertertoggle}, {user_command::invertertoggle2, &TTrain::OnCommand_invertertoggle}, {user_command::invertertoggle3, &TTrain::OnCommand_invertertoggle}, {user_command::invertertoggle4, &TTrain::OnCommand_invertertoggle}, {user_command::invertertoggle5, &TTrain::OnCommand_invertertoggle}, {user_command::invertertoggle6, &TTrain::OnCommand_invertertoggle}, {user_command::invertertoggle7, &TTrain::OnCommand_invertertoggle}, {user_command::invertertoggle8, &TTrain::OnCommand_invertertoggle}, {user_command::invertertoggle9, &TTrain::OnCommand_invertertoggle}, {user_command::invertertoggle10, &TTrain::OnCommand_invertertoggle}, {user_command::invertertoggle11, &TTrain::OnCommand_invertertoggle}, {user_command::invertertoggle12, &TTrain::OnCommand_invertertoggle}, };