deeper-blue / sdp-robot

The robot code for Deeper Blue, an assistive chess-playing robot. Developed for the System Design Project, a 3rd year course offered at the School of Informatics, University of Edinburgh.
2 stars 0 forks source link

Use motor tacho count property instead of assuming 360 per rotation #18

Open pilif0 opened 5 years ago

pilif0 commented 5 years ago

Currently we assume there are 360 tacho counts per rotation. This should be true for LEGO motors.

I propose using instead the motor's count_per_rot field. I also think that the conversion from cm to tacho counts should be done by the motor abstraction, not by the movement scheme as it is being done now. This would however require the motor to also know the circumference of the wheel that it is turning.