Giter Site home page Giter Site logo

Comments (2)

mstevetodd avatar mstevetodd commented on May 30, 2024

My initial thoughts on your list:

intercept the Turnout aspects of Withrottle to call into the TPL layout handling.

As long as the server sends a list of turnouts and state updates, it can define and use them however it wants.

Intercept loco acquisition so that it cant steal a loco TPL is animating.

Client waits for Mx+ response to its Mx+ request. So server can simply choose not to respond, or (better) send only a message explaining the issue.
-OR- (better?) Server can reply with Mx+, but then ignore any speed/direction requests while server is in control.

Use Routes to allow ED to send a loco onto a TPL route.

Same as turnouts, client does not care what is behind the list. The route list could be dynamic based on the current loco acquisition state or whatever. Sort of a "menu".

Pre populate a throttle when handling a loco over from TPL

Client should accept unsolicited Mx+ messages and add that addr to throttle "x". ED and WiThrottle should always have throttle "0" visible (?).

BUT not sure how to handle multiple ED clients here.

This seems simpler if the flow looks something like this:

  1. Client requests loco address AAAA for a specific throttle "x"
  2. Server responds with Mx+AAAA
  3. Client selects a "Route" which indicates server should control AAAA
  4. Client still shows AAAA, but any client speed/direction requests are ignored with message "Loco AAAA running under TPL"
  5. Server completes task and stops ignoring speed/direction for AAAA.

This removes the need for the server to "guess" at which client and throttle.

from commandstation-ex.

Asbelos avatar Asbelos commented on May 30, 2024

from commandstation-ex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.