jcchurch13 / Mechaduino-Firmware

Hardware available here:
http://tropical-labs.com
Other
391 stars 233 forks source link

Check magnetic field prior to calibration routine #5

Open SloMusti opened 8 years ago

SloMusti commented 8 years ago

Prior to calibrating it would be good to implement a sanity check if magnetic field is sufficient and encoder generates valid results. Note the encoder may return magnetic field too high flag even if ti is too low.

jcchurch13 commented 8 years ago

Good thinking. I'll add something to automatically check the encoder diagnostics when I get a chance.

SloMusti commented 8 years ago

Based on #4 calibration routine should do a sanity check on the magnetic encoder values over one rotation, such that they change over the rotation for the full 16384 (2^14) range, else return a warning or error.