BitBucketsFRC4183 / FRC2020_Infinite_Recharge

Team 4183's repository for our Infinite Recharge robot's code
5 stars 10 forks source link

aimBot() should spinUp #198

Closed cpostbitbuckets closed 4 years ago

cpostbitbuckets commented 4 years ago

The aimBot function currently calls autoAim. autoAim only changes elevation. It should change elevation, rotate to target, and spinUp motor to speed based on distance.

We can have the shooterCalculator calculate auto speed and elevation in periodic, then just update the targets while autoAim is held.

We might also want autoAim to enable the limelight light while held.

Sajo8 commented 4 years ago

if autoAim() is not being pressed then it should also zero the elevation