Giter Site home page Giter Site logo

Comments (5)

magicant avatar magicant commented on July 18, 2024 1

This behavior is interesting. I think I can implement this in a future version.

from bve-autopilot.

zbx1425 avatar zbx1425 commented on July 18, 2024 1

Thank you so much!
Actually I feel this behavior is a bit like that on the airplane, which also disconnects when intervened and stays off until manually connected again.

As of more detail, the ATO start butons on trains equipped with TGMT features a green backlight, which indicates the status of the system:

  • Illuminated: ATO is controlling the train.
  • Flashing: ATO can be connected right now (Doors closed, reverser forward, mascon at neutral, AM mode is preselected, etc.)
  • Dark: ATO is now disabled (the conditions are not satisfied)

By the way, I am actually able to implement these features by myself.
That is, I created a standalone plugin which simulates the behavior of TGMT. When this plugin is in ATO mode, it uses P/Invoke to call bve-autopilot, which is set to "depart" automatically once the doors are closed.
I just keep bve-autopilot running and doing all the calculations in background, and I use my plugin as a medium to apply the results only when the plugin is in ATO mode. And it works fine so far!

from bve-autopilot.

magicant avatar magicant commented on July 18, 2024 1

That is, I created a standalone plugin which simulates the behavior of TGMT. When this plugin is in ATO mode, it uses P/Invoke to call bve-autopilot, which is set to "depart" automatically once the doors are closed.
I just keep bve-autopilot running and doing all the calculations in background, and I use my plugin as a medium to apply the results only when the plugin is in ATO mode. And it works fine so far!

Wow! That's an amazing technique!!!

from bve-autopilot.

magicant avatar magicant commented on July 18, 2024

The implementation has been pushed to the master branch and will be included in the next release.

I don't intend to perfectly imitate the behavior of TGMT (I don't know its behavior very well after all) but I think the new behavior will be helpful to simulate something similar to it.

(Do you need instructions in English to configure the new behavior? Note that the default behavior has not been changed in any way, so you need to modify the config file for the new behavior.)

from bve-autopilot.

zbx1425 avatar zbx1425 commented on July 18, 2024

Thank you so much for your courtesy!
My development on TGMT is also abandoned, because I also don't know its behavior very well...
The driver's cab does not have any window here, so the only way I can know how it behaves is to seek help from an actual driver. There are documents leaked online, but these are not of great detail.
Some P/Invoke would be still required, as TGMT has all the complex things like mode switching etc. In that way I am afraid I won't be able to make use of the new features.
Thank you so much!
Your Japanese instructions on wiki is readable with the help of machine translation, so I think there is no need for English instruction.

from bve-autopilot.

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.