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

Pickup sensor #64

Open pilif0 opened 5 years ago

pilif0 commented 5 years ago

This is the implementation of an adjusted Option 1 for sensing whether a piece was picked up or put down correctly. It uses an ultrasonic sensor under the platform and attempts the action repeatedly until success. It gives up and asks for help if too many attempts fail.

Fixes #58

pilif0 commented 5 years ago

The loop for checking is wrong. When the counter is at the limit, the last check doesn't happen and it directly asks for help and then repeats.