Curt84328 Geschrieben 3. Juli 2019 Geschrieben 3. Juli 2019 I'm trying to stop a train at a certain point when it is running backwards (Speed is less than 0), but not when the train is running forwards. I am using train enters a track, with variable (the locomotive speed) being the and condition (< 0). The current speed is read by another routine, and shows a positive value when going forwards, and a negative value when moving backwards. currently the train stops both forwards and backwards. What is wrong?
Andy Geschrieben 3. Juli 2019 Geschrieben 3. Juli 2019 On a first guess I'd say that there is a 2nd event stopping the train! But as always - a description of a problem is often the plan how it should work, but isn't the code that finally acts. Will say - a description alone is almost useless.
Goetz Geschrieben 3. Juli 2019 Geschrieben 3. Juli 2019 vor 5 Minuten schrieb Andy: a description of a problem is often the plan how it should work, but isn't the code that finally acts. Will say - a description alone is almost useless. That's spot on, Andy
Curt84328 Geschrieben 3. Juli 2019 Autor Geschrieben 3. Juli 2019 Never Mind, Andy was correct, there was a bogus extra event that was stopping the blasted train. (Covered with shame and embarassed) Curtis
Andy Geschrieben 3. Juli 2019 Geschrieben 3. Juli 2019 vor 28 Minuten schrieb Curt84328: (Covered with shame and embarassed) No reason for that. Each of such things gives experience points Always a pleasure and a challenge to me.
Curt84328 Geschrieben 3. Juli 2019 Autor Geschrieben 3. Juli 2019 Now I just need to add the two long blasts when the train starts. I already have the crossing signal, and the backing signal. This problem developed because I was trying to get the crossing signal in a certain place on my layout. Also got the running noise to start going backwards and forwards, and to stop when the locomotive stops.
Empfohlene Beiträge
Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren
Du musst ein Benutzerkonto besitzen, um einen Kommentar verfassen zu können
Benutzerkonto erstellen
Neues Benutzerkonto für unsere Community erstellen.
Neues Benutzerkonto erstellenAnmelden
Du hast bereits ein Benutzerkonto? Melde dich hier an.
Jetzt anmelden