working on new autopilot code

This commit is contained in:
Stephan Richter
2021-03-11 11:20:48 +01:00
parent 830c1863ad
commit c6aa5e45da
8 changed files with 144 additions and 19 deletions

View File

@@ -10,8 +10,8 @@ public class BrakeStart extends Action {
@Override
public boolean fire(Context context,Object cause) {
if (isNull(context.route())) return false;
context.route().brakeStart();
if (isNull(context.train())) return false;
context.train().startBrake();
LOG.debug("Started brake process...");
return true;
}