Bulebots / mmlib

A library for shared code among different micromice
4 stars 3 forks source link

Abort `target_straight` if the robot turns too much #51

Open Peque opened 5 years ago

Peque commented 5 years ago

In example: if it turns more than 180º, we should report collision detected.

This is probably the reason why the robot sometimes spins like crazy... In turns, actually, we have a time limit.

Could a watchdog help here?

We could also simply set straight movements to finish at the ideal time, just like we do with turns, instead of waiting for the average micrometers to reach a given value. Will this be more or less precise when there is a lateral correction applied during the straight movement?