sm6yvr / liam

DIY Robot lawn mover
GNU General Public License v3.0
52 stars 22 forks source link

Sensor issues #17

Closed Ola-Palm closed 6 years ago

Ola-Palm commented 7 years ago

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