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();
}
}