rightLightSensorVector);
}
// Changed Left Sensor Intensity
if (leftSensorIntensity != roboter.getLeftLightSensor().getSensorIntensity()) {
notifyObservers(new LightSensorModelObserverCommand(roboter, LightSensorCommandState.SENSOR_INTENSITY_CHANGED,
roboter.getLeftLightSensor()));
logger.debug("Changed Left Light Sensor Intensity to {}: " + leftSensorIntensity);
roboter.getLeftLightSensor().setSensorIntensity(leftSensorIntensity);
}
if (leftSensorIntensity == 0) {
notifyObservers(new LightSensorModelObserverCommand(roboter, LightSensorCommandState.SENSOR_INTENSITY_REMAINS,
roboter.getLeftLightSensor()));
}
// Changed Right Sensor Intensity
if (rightSensorIntensity != roboter.getRightLightSensor().getSensorIntensity()) {
notifyObservers(new LightSensorModelObserverCommand(roboter, LightSensorCommandState.SENSOR_INTENSITY_CHANGED,
roboter.getRightLightSensor()));
logger.debug("Changed Right Light Sensor Intensity to {}: " + rightSensorIntensity);
roboter.getRightLightSensor().setSensorIntensity(rightSensorIntensity);
}
if (rightSensorIntensity == 0) {
notifyObservers(new LightSensorModelObserverCommand(roboter, LightSensorCommandState.SENSOR_INTENSITY_REMAINS,
roboter.getRightLightSensor()));
}
RoboterMove rm = roboterController.calculateNewRoboterPosition(leftSensorIntensity, rightSensorIntensity);
calculateOutOfWindowAreaPosition(roboterController, rm);