update with colors etc, we now need to test it on physical robots
[des2015.git] / dsl / runtime / src / nl / ru / des / ShutdownBehaviour.java
index 9b34b95..430b5df 100644 (file)
@@ -3,17 +3,13 @@ package nl.ru.des;
 import lejos.hardware.motor.EV3LargeRegulatedMotor;
 
 public class ShutdownBehaviour extends BasicBehaviour{
-
-       private String missionName;
-       
        public ShutdownBehaviour(SensorCollector sensors, EV3LargeRegulatedMotor leftMotor,
-                       EV3LargeRegulatedMotor rightMotor, ColorMemory colors, String missionName) {
+                       EV3LargeRegulatedMotor rightMotor, ColorMemory colors) {
                super(sensors, leftMotor, rightMotor, colors);
-               this.missionName = missionName;
        }
        
        @Override public void action(){
-               //Here it should stop the current arbitrator, not sure how yet...
-               MarsRover.FinishMission(missionName);
+               LCDPrinter.print("Terminate mission");
+               MarsRover.arb.stop();
        }
 }