sm6yvr / liam

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

Develop #2

Closed Ola-Palm closed 7 years ago

Ola-Palm commented 7 years ago

Added MMA_7455 Accelerometer-sensor. Changed behavior of BACKWARD_UNTIL_INSIDE so that mower first checks tiltangel (No sensor will give value 0) if tiltangle is less then (new DEF) SLOPEANGLE, mower will exit directly and continue, ie will turn and move on.. Should be exactly same behavior as when BACKWARD_UNTIL_INSIDE is set to false.

If Tiltangle is greater then SLOPEANGLE mower will go backward for (def) MAX_GO_BACKWARD_TIME, If MAX time is reached function will return 1, otherwise it will return 0. Value 0 or 1 as return value is not taken care of at this moment, mower continue as before.

sm6yvr commented 7 years ago

We will iteratate the new changes from Ola.