Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust forget commands to respect the direction of engines #242

Open
wants to merge 1 commit into
base: TrackManager
Choose a base branch
from

Conversation

nic547
Copy link

@nic547 nic547 commented May 18, 2022

Replaces #23, targeting the TrackManager branch instead of master, to get into the next major update, not a minor one.

Currently forgetting an engine that is still on the track (for example on a siding) will cause it to get a "backwards e-stop", potentially changing it's direction.
With this PR, the CS should send the e-stop packets with the correct direction.

  • DCC::forgetLoco calls the setThrottle function twice - I'm not sure why, but assumed it's to ensure that the loco actually gets the packet, since it's not gonna get any reminders. DCC::forgetAllLocos doesn't send it twice. Should I adjust one of them?

Instead of sending the "backwards e-stop" packet to locos the CS will send the e-stop packet with the direction the locos should already have.
daniviga pushed a commit to daniviga/CommandStation-EX that referenced this pull request Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant