first95 / FRC2020

Code base for 2020 robot, initialized with develop branch of 2019 repo.
MIT License
1 stars 1 forks source link

Set it so the ground collector cannot run while retracted #37

Closed NHDinosaur closed 3 years ago

NHDinosaur commented 4 years ago

If the ground collector runs while retracted, it rubs against the intake for the singulator and causes damage. It would be good to add a limit so we don't have to make sure of this manually.

zaaj commented 4 years ago

How about: if (deploy.get()) { Robot.powerCellMover.setRollerSpeed(Robot.oi.getGroundPickUpRollerAxis()); } else { Robot.powerCellMover.setRollerSpeed(0); }

zaaj commented 4 years ago

Oh, deploy is private at the moment.

WesleyJ-128 commented 3 years ago

Did that, but inside setRollerSpeed() itself.