first95 / FRC2018

The code base for our 2018 robot
MIT License
3 stars 0 forks source link

Add automatic cube acquisition #54

Closed jwalthour closed 6 years ago

jwalthour commented 6 years ago

This would be useful both as a standalone auto move, and as a mode to be used in teleoperated mode.

There will be 3 optical proximity sensors mounted on the rear plate of the maw - left, center and right. They'll all be set to the same range, but the cube's orientation will affect which ones trip. The geometry is set up so that the cube can't trigger two of them until it's deep enough into the maw to be grabbed.

The acquisition algorithm shall be as follows:

lindsayvallen commented 6 years ago

@jch13 suggested this have only slightly lower priority than auto moves. As of commit 99a3029, the first two parts of this move work as an auto move -- open maw, wait until at least two sensors report object in range, close maw.

jwalthour commented 6 years ago

WOrks as of c1dab2dbacbab6ae2884b6a253d5e27b3b503d93