mirror of
https://github.com/Team4388/RiseOfRidgebotics2020.git
synced 2026-06-09 00:38:00 -06:00
Rework Command Groups to use Prep Checker
This commit is contained in:
@@ -48,7 +48,9 @@ public class HoodPositionPID extends CommandBase {
|
||||
public boolean isFinished() {
|
||||
double encoderPos = m_shooterHood.m_angleAdjustMotor.getEncoder().getPosition();
|
||||
if(encoderPos < firingAngle + 1 || encoderPos < firingAngle - 1){
|
||||
return true;
|
||||
m_shooterHood.m_isHoodReady = true;
|
||||
} else {
|
||||
m_shooterHood.m_isHoodReady = false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user