ORTS_BATTERY and ORTS_POWERKEY
#1
Posted 07 June 2020 - 04:31 AM
I created two new commands to simulate the start of the batteries and the cab desk activation key. Both controls are equipped with sound triggers. The commands are called ORTS_BATTERY activated by the combination "ctrl + b" and ORTS_POWERKEY activated by the combination "ctrl + k". The first command simulates the switch usually located in the rear of the cabs, which powers all the train services at 24v.
The ORTS_POWERKEY command simulates the insertion of the key that unlocks the cabin desk. Usually, the switching on of the diagnostic monitors is also connected to this function.
I thank Carlo for the support in the development. I have provided him the code changes so that they can be included in the realase of OR and in future versions of the Monogame.
Paolo
#2
Posted 07 June 2020 - 05:27 AM
Another great feature! Do you already know the discrete_triggers used?
Another question, does this function work "separately" or is there a link with other functions, for example the circuit breaker or cabin switches.
Cheers, Roger
#3
Posted 07 June 2020 - 05:55 AM
Good idea! Is voltage of battery handled ? It varies dépendant on country/engine (72v for french locos, 72v, 24v on dmu /emu)
Flo
#4
Posted 07 June 2020 - 10:12 AM
Up to now the command aren't linked to other function.
At the moment there is a visualization of two states which I think allows to cover the different voltage values of each country.
Paolo
#5
Posted 07 June 2020 - 11:58 AM
Paolo, on 07 June 2020 - 10:12 AM, said:
Up to now the command aren't linked to other function.
At the moment there is a visualization of two states which I think allows to cover the different voltage values of each country.
Paolo
Thanks for the information. That the command is not linked further is no problem, perhaps more of an advantage.
I'm curious! :)
#6
Posted 10 June 2020 - 12:41 PM
#7
Posted 11 June 2020 - 07:27 AM
#8
Posted 11 June 2020 - 07:41 AM
Paolo, on 07 June 2020 - 04:31 AM, said:
I created two new commands to simulate the start of the batteries and the cab desk activation key. Both controls are equipped with sound triggers. The commands are called ORTS_BATTERY activated by the combination "ctrl + b" and ORTS_POWERKEY activated by the combination "ctrl + k". The first command simulates the switch usually located in the rear of the cabs, which powers all the train services at 24v.
The ORTS_POWERKEY command simulates the insertion of the key that unlocks the cabin desk. Usually, the switching on of the diagnostic monitors is also connected to this function.
I thank Carlo for the support in the development. I have provided him the code changes so that they can be included in the realase of OR and in future versions of the Monogame.
Paolo
Hi, Thanks for introducing these two new cabcontrol. These controls are animating fine independently but not provide an effect on panto and circuit breaker (DJ) switch.
As in a real loco, if the battery not in "ON" state, the panto or circuit breaker (DJ) can`t be operate. So, is there any chance to linked these cabcontrol with panto and circuit breaker (DJ) as real locomotive by providing any parameter in .Eng file or something else?
#9
Posted 11 June 2020 - 12:09 PM
Up to now they aren't link to Pantographs and Circuit braker, because I want to understand if developing new controls to improve the realism in enabling a locomotive can generate follow-up and interest. I would like to add other controls for example to enable the engines and many other functions, therefore I think that in the future I will take care of connecting all the controls.
#10
Posted 11 June 2020 - 11:38 PM
Paolo, on 11 June 2020 - 12:09 PM, said:
If ORTS_Battery and ORTS_Powerkey are connected to other functions, this would be very nice. I hope this is done via setting in the .ENG file! Do not forget that these new functions can also be used with diesels and even with steam locomotives. (think of the current train influence systems).
#11
Posted 12 June 2020 - 03:58 AM
Paolo, on 07 June 2020 - 04:31 AM, said:
I created two new commands to simulate the start of the batteries and the cab desk activation key. Both controls are equipped with sound triggers. The commands are called ORTS_BATTERY activated by the combination "ctrl + b" and ORTS_POWERKEY activated by the combination "ctrl + k". The first command simulates the switch usually located in the rear of the cabs, which powers all the train services at 24v.
The ORTS_POWERKEY command simulates the insertion of the key that unlocks the cabin desk. Usually, the switching on of the diagnostic monitors is also connected to this function.
I thank Carlo for the support in the development. I have provided him the code changes so that they can be included in the realase of OR and in future versions of the Monogame.
Paolo
In my personal code + NewYearNowd this i have this too, in my version it calls CabinePowerSwitch, becauze POWERKEY is nog right context.
// SDC Experimental (BEGIN) ORTS_TOGGLE_COMPRESSOR, ORTS_TOGGLE_SOSCOMPRESSOR, ORTS_TOGGLE_AUXCOMPRESSOR, ORTS_TOGGLE_MANUAL_VENTILATION, ORTS_TOGGLE_TEST_VENTILATION, ORTS_TOGGLE_TRAIN_HEATING, ORTS_TOGGLE_CABINE_CLIMATISATION, ORTS_TOGGLE_TRAIN_CLIMATISATION, ORTS_MANUAL_VENTILATION, ORTS_TEST_VENTILATION, ORTS_TRAIN_HEATING, ORTS_CABINE_CLIMATISATION, ORTS_TRAIN_CLIMATISATION, HORN2, HORN3, [color="#FF0000"]ORTS_CABINE_POWER_SWITCH[/color], ORTS_CABINE_IN_SERVICE_BUTTON, ORTS_CABINECLIMATECONTROL, ORTS_TRAINCLIMATECONTROL, ORTS_MANUALVENTILATION, ORTS_TESTVENTILATION, ORTS_CABSIGNAL1, ORTS_CABSIGNAL2, ORTS_CABSIGNAL3, ORTS_CABSIGNAL4, ORTS_CABSIGNAL5, ORTS_CABSIGNAL6, ORTS_CABSIGNAL7, ORTS_CABSIGNAL8, ORTS_MANUALSIGNALLIGHT1, ORTS_MANUALSIGNALLIGHT2, ORTS_MANUALSIGNALLIGHT3, ORTS_MANUALSIGNALLIGHT4, ORTS_CABSCREEN, ORTS_TRAINHEATING, ORTS_NEUTRAL_BRAKE_SWITCH, ORTS_WHEELSLIP, ORTS_EMERGENCY_LIGHTS, ORTS_EPP_SWITCH, ORTS_IMMOBILIZATION_BRAKE, ORTS_QUICK_TRAIN_BRAKE_RELEASE, ORTS_TOGGLE_OVERCHARGE_BRAKE_PIPE, ORTS_CABRADIOBUTTON, ORTS_HANDBRAKE, ORTS_TOGGLE_ALERTERTEST,
A locomotive is only power on, after close circuitbreaker.
For moment my Cabinepowerkey have this code:
MSTSLocomotive.cs :
public void ToggleCabinePowerSwitch(bool newState)
{
if (this is MSTSSteamLocomotive)
return;
SignalEvent(newState ? Event.CabinePowerSwitchOn : Event.CabinePowerSwitchOff);
CabinePowerSwitch = newState;
if (CabinePowerSwitchOn == CabinePowerSwitchOn)
{
if (CabinePowerSwitchOn)
SetTrainBrakeValue(100.0f);
SetEmergency(false);
}
Simulator.Confirmer.Confirm(CabControl.CabinePowerSwitch, CabinePowerSwitchOn ? CabSetting.On : CabSetting.Off);
if (CabinePowerSwitchOff == CabinePowerSwitchOff)
{
if (CabinePowerSwitchOff)
SetEmergency(true);
}
CabinePowerSwitchOff = newState;
Simulator.Confirmer.Confirm(CabControl.CabinePowerSwitch, CabinePowerSwitchOff ? CabSetting.On : CabSetting.Off);
}
What it do now is just sound & cabviewanimation when power on, but when it power off, there comes TCS braking in combination with: MonitoringDeviceAppliesEmergencyBrake ( 1 ) (.eng file)
I know this can be better, and it needs more expansion, becauze not every cabinepowerkey is same.
Cabinepowerkey off position type 1: Circuit open, pantographs down, emergencybrake
Cabinepowerkey off position type 2: Circuit open, pantograps stay in position of pantoselector, emergencybrake
Cabinepowerkey off position type 3: Circuit closed, pantograps stay in position of pantoselector, emergencybrake
...
For CabinePowerSwitch i think it is better too have a script system (.ini file) or .eng file tokens.
The ORTS_BATTERY code in my personal program is code of Jindrich (developper):
MSTSLocomotive.cs:
public void SetBattery(bool ToState) { Simulator.Confirmer.Information("Battery is " + (Battery ? "off." : "on.")); Battery = ToState; SignalEvent(ToState ? Event.BatteryOn : Event.BatteryOff); }
Batterysound can used too for typical underground sounds too, like Siemens ES64U2/ES64U4 platforms. And much other electric locomotives...
Greetz,
Stijn
#12
Posted 14 June 2020 - 04:00 AM
QJ-6811, on 11 June 2020 - 11:38 PM, said:
Diesel locomotives have need also a circuitbreaker, like electric locomotives but specific modifed for Dieselsystem.
Circuitbreaker by Diesel is most for cut traction for bring engines to idle rpm and in neutral position
Also for isolate some controls like train heating... Most of time for electric-diesel engines.
How this is with Diesel Hydraulic, i dont know.
Greetz,
Stijn
#13
Posted 18 June 2020 - 12:19 PM
On french diesel locomotive or dmu, there is a « relais traction », that could be seen as a circuit breaker. It doesn’t matters that it’s an electric, hydraulic or mechanic transmission. This relay opens when a protection system or other security system is activated, cutting power. And opening line contactors on electric locomotives.
Flo
#14
Posted 19 December 2020 - 08:08 AM
it would be simply visual, in order to make the cabin more complete and realistic
#15
Posted 14 March 2021 - 09:06 AM
Last night i came across that feature and soon after discovered this topic. I have managed so far to do the trigger which activates the sound of connected battery. Is there anything else that i can use this feature at the moment? I could not find anything in manual and my trial and error ends right now after trying commends such as ORTS_BATTERY (Manual) and setting the delay or whatever came up to my mind.