sourcebots / competition-simulator

A simulator for Smallpeice Virtual Competitions
https://docs.sourcebots.co.uk/
MIT License
0 stars 0 forks source link

Fix behaviour of crane robot magnet #46

Closed WillB97 closed 3 years ago

WillB97 commented 3 years ago

Currently if the magnet is pressed down on the token before being energised then the crane cannot lift the token and must release the token to rise again. Additionally If the token is knocked off the magnet sometimes the magnet can spin beyond it's limits aand pull the hoist up and down randomly.

WillB97 commented 3 years ago

Having looked into this in depth, the issue with being unable to lift tokens when the hook rests on the token looks to be actually caused by the presence of a bounding box for the touch sensor. The issue is resolved by removing the touch sensor, since the nearby feature of the magnet is a more useful measure of reaching a token, we can just remove the touch sensor.

The preliminary rules also talk about an ultrasound sensor which we could mount on the side of the magnet to handle detecting the terrain.