In the check for sensors inside/outside there is also a check if both sensors are outside.
If so, the mower shall go backward as below.
if (Mower.allSensorsAreOutside()) {
Mower.runBackward(FULLSPEED);
delay(1000);
Mower.stop();
if (Mower.allSensorsAreOutside())
Error.flag(4);
}
But next line of code is this..
Mower.runForward(FULLSPEED);
so it is possible that the mower will be standing mowing back and forward for a while.
We might need another solution.
This might be a new issue that arrived together with the for sensors loop in Liam.ino
In the check for sensors inside/outside there is also a check if both sensors are outside. If so, the mower shall go backward as below.
if (Mower.allSensorsAreOutside()) { Mower.runBackward(FULLSPEED); delay(1000); Mower.stop(); if (Mower.allSensorsAreOutside()) Error.flag(4); }
But next line of code is this.. Mower.runForward(FULLSPEED); so it is possible that the mower will be standing mowing back and forward for a while. We might need another solution.
This might be a new issue that arrived together with the for sensors loop in Liam.ino