X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=dsl%2Fruntime%2Fsrc%2Fnl%2Fru%2Fdes%2FShutdownBehaviour.java;h=ae75647979d4e7333c80f5ad871ec2f0c7684c49;hb=476c651adb42cd9be8758e4f6ef2fe9ee2519fd5;hp=85aa07bf65de1cc8c0039b9a7937def0f33c9445;hpb=d26ca60c0346639b0d93d671906eaf8a4763c10c;p=des2015.git diff --git a/dsl/runtime/src/nl/ru/des/ShutdownBehaviour.java b/dsl/runtime/src/nl/ru/des/ShutdownBehaviour.java index 85aa07b..ae75647 100644 --- a/dsl/runtime/src/nl/ru/des/ShutdownBehaviour.java +++ b/dsl/runtime/src/nl/ru/des/ShutdownBehaviour.java @@ -1,15 +1,16 @@ package nl.ru.des; import lejos.hardware.motor.EV3LargeRegulatedMotor; +import nl.ru.des.sensors.SensorCollector; public class ShutdownBehaviour extends BasicBehaviour{ - public ShutdownBehaviour(SensorCollector sensors, EV3LargeRegulatedMotor leftMotor, - EV3LargeRegulatedMotor rightMotor, ColorMemory colors) { - super(sensors, leftMotor, rightMotor, colors); + EV3LargeRegulatedMotor rightMotor, EV3LargeRegulatedMotor measMotor) { + super(sensors, leftMotor, rightMotor, measMotor); } @Override public void action(){ - //Here it should stop the current arbitrator, not sure how yet... + LCDPrinter.print("Terminate mission"); + Marster.arb.stop(); } }