working on new autopilot code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user