MaSzyna International > EU07 Simulator English forum

 Changing the motor connections of ET42

<< < (2/2)

Stratula:
For the moment I thought I could hear the sound, but no, it was my squeaking keyboard.

Stele:
Got it. It's vehicle specific usage of command  motoroverloadrelaythresholdtoggle that lacks call to method setting gauge animation.

--- Kod: ("mover.cpp 3664) ---void TTrain::OnCommand_motoroverloadrelaythresholdtoggle( TTrain *Train, command_data const &Command ) {

    if( Command.action == GLFW_PRESS ) {
        // only reacting to press, so the switch doesn't flip back and forth if key is held down
        if( ( true == Train->mvControlled->ShuntModeAllow ?
                ( false == Train->mvControlled->ShuntMode ) :
                ( Train->mvControlled->Imax < Train->mvControlled->ImaxHi ) ) ) {
            // turn on
            OnCommand_motoroverloadrelaythresholdsethigh( Train, Command );
++Train->ggMaxCurrentCtrl.UpdateValue( 1.0, Train->dsbSwitch );
        }
        else {
            //turn off
            OnCommand_motoroverloadrelaythresholdsetlow( Train, Command );
--Train->ggMaxCurrentCtrl.UpdateValue( 0.0, Train->dsbSwitch );
        }
    }
}
--- Koniec kodu ---
should do if I'm reading it correctly. Will be fixed in future release.

Nawigacja

[0] Indeks wiadomości

[*] Poprzednia strona

Idź do wersji pełnej
Powered by Advanced Topic Prefix Pro
Powered by SMFPacks Likes Pro Mod