re-implemented basic autopilot

This commit is contained in:
Stephan Richter
2021-03-12 16:55:52 +01:00
parent 6bf7882f3b
commit 9effb8d337
6 changed files with 57 additions and 55 deletions

View File

@@ -24,7 +24,7 @@ public class StartStopAuto extends Action {
public boolean fire(Context context,Object cause) {
if (isNull(context.train())) return false;
if (inverted) {
context.train().automatic();
context.train().start(true);
} else context.train().quitAutopilot();
return true;
}