Commit Graph

532 Commits

Author SHA1 Message Date
Stephan Richter
5e50259d24 Implementierung des neuen Routen-Algorithmus weitgehend abgeschlossen.
Was noch fehlt ist der Brems-Prozessor; außerdem muss der neue Code getestet werden.
2021-03-17 23:58:38 +01:00
Stephan Richter
c62f75fa02 Code zum Reservieren der nächsten Route überarbeitet.
*Könnte* jetzt funktionieren, hatte jedoch keine Zeit zum Testen.
2021-03-16 22:28:29 +01:00
Stephan Richter
030b29499f dunno what to write, this is a non-clean state... 2021-03-16 21:39:34 +01:00
Stephan Richter
fd254db358 minor bugfix. next step: implementing the preserveNextRoute action.
Must work in the following conditions:
- called from route.setupActions
- called from route.startActions
- called from route.contactActions
- called from autopilot after reaching route.endBlock
2021-03-14 20:07:36 +01:00
Stephan Richter
3c53bd192f bugfixes 2021-03-14 19:45:17 +01:00
Stephan Richter
9c86955d8d - implemented load callback
- added waitTime field to context, wait time now determined in route.start
2021-03-14 19:12:17 +01:00
Stephan Richter
d86b6dcbcc implemented handling of stuck trains during route search 2021-03-14 16:15:14 +01:00
Stephan Richter
c4e57d2b8a re-implemented trace update code 2021-03-14 15:07:30 +01:00
Stephan Richter
2647b4c43d Started clean re-implementation of
- reserving route
- preparing route
- locking route

New implementation now properly handles stop event from user.

Next things to implement:

- tracing train upon contact activation, taking care of:
    - causing contact
    - train's last position
    - route
    - plan.freeBehindTrain
- finish event, keeping brake processor in mind
2021-03-13 20:15:51 +01:00
Stephan Richter
9939d8d630 resetting route planner 2021-03-13 13:19:49 +01:00
Stephan Richter
5b2bf1ddc0 improved javascript 2021-03-13 13:12:37 +01:00
Stephan Richter
181933674d fixed import 2021-03-12 19:48:46 +01:00
Stephan Richter
8a9aada83e tunin BrakeProcessor 2021-03-12 17:19:42 +01:00
Stephan Richter
629b30c078 fixed bug in BrakeProcessor 2021-03-12 17:10:15 +01:00
Stephan Richter
9effb8d337 re-implemented basic autopilot 2021-03-12 16:55:52 +01:00
Stephan Richter
6bf7882f3b improved error messages 2021-03-12 16:04:08 +01:00
Stephan Richter
2556ea7cd9 implemented correct behaviour of Train.stopNow 2021-03-12 14:07:05 +01:00
Stephan Richter
a60e766dac working on new autopilot 2021-03-12 12:49:19 +01:00
Stephan Richter
c6aa5e45da working on new autopilot code 2021-03-12 12:49:19 +01:00
Stephan Richter
830c1863ad started re-implementing route reservation 2021-03-12 12:49:19 +01:00
Stephan Richter
966c5340ba started reimplementation of route manager 2021-03-12 12:49:19 +01:00
Stephan Richter
4cade0a12e removed route managing code: preparing to re-implement 2021-03-12 12:49:19 +01:00
Stephan Richter
c549f7364d moved Thrads to separate package 2021-03-12 12:49:19 +01:00
Stephan Richter
dc378b107b backported bugfixes from state-machine branch 2021-03-12 12:48:58 +01:00
Stephan Richter
103dd89168 improved gui 2021-02-28 13:59:54 +01:00
Stephan Richter
b951b948e5 updated thread handling:
- threads are no longer pooled (this makes naming threads difficult)
- threads are now named by their causing event, which improves logging

updated calls to thread.sleep: those are now provided by new class Delayed Execution
2021-02-28 13:03:21 +01:00
Stephan Richter
cabab80b5c added opßtion to simplify all route names in one step 2021-02-23 00:57:04 +01:00
Stephan Richter
a43c11d3bc now remembering last clicked tabs 2021-02-19 22:26:35 +01:00
Stephan Richter
54961c1f14 various minor improvements 2021-02-19 19:54:44 +01:00
Stephan Richter
80553efb29 fixed tracing bug and brake-time bug 2021-02-16 09:16:54 +01:00
Stephan Richter
8ab3b6d1a0 fixed bug: orientation of cars has not been saved 2021-02-16 09:12:30 +01:00
Stephan Richter
c3242cddcb vroious improvements 2021-02-12 18:04:28 +01:00
Stephan Richter
2973bd1432 optimised brake code 2021-02-11 19:40:35 +01:00
Stephan Richter
c515e922dc optimiced trace calculation 2021-02-11 17:52:43 +01:00
Stephan Richter
853ae2a0c1 code optimization 2021-02-11 16:30:34 +01:00
Stephan Richter
5ec07efb63 extended doc 2021-02-11 13:37:13 +01:00
Stephan Richter
f42c3e72d2 renamed Route.reset to Route.free, Route.fireSetupActions to Route.prepare 2021-02-11 13:36:39 +01:00
Stephan Richter
b41ae2b314 new feature on clicking tiles: actions of tile now skipped, when shift is pressed during click 2021-02-10 18:59:31 +01:00
Stephan Richter
8ffbbf1109 added switch tile and corresponding condition 2021-02-10 13:22:56 +01:00
Stephan Richter
3cd6df931d bugfixes 2021-02-06 20:30:33 +01:00
Stephan Richter
4969b32dd8 minor improvements 2021-01-28 17:49:59 +01:00
Stephan Richter
a55265c6db implemented loco programming 2021-01-26 00:53:13 +01:00
Stephan Richter
3afb452d57 added title to links 2021-01-20 11:13:46 +01:00
Stephan Richter
a80dcc728a added log output 2021-01-18 13:11:24 +01:00
Stephan Richter
d3be99fb08 added log output 2021-01-18 13:08:56 +01:00
Stephan Richter
93066a74ad added log output 2021-01-18 13:06:11 +01:00
Stephan Richter
5375a7a007 improved cockpit: active functions now have colored buttons 2021-01-18 00:31:59 +01:00
Stephan Richter
8f52c79798 implemented manual coupling/decoupling of trains 2021-01-17 18:28:11 +01:00
Stephan Richter
d454f18ecc minor improvements 2021-01-16 20:11:41 +01:00
Stephan Richter
e00e6f8124 added CoupleTrain action,
improved Destination functions,
fixed bug in AddRemoveTag,
improved CarOrientation functions
2021-01-16 19:33:59 +01:00