mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
added check for deadzone
This commit is contained in:
@@ -50,6 +50,14 @@ public class AimToCenter extends CommandBase {
|
||||
}
|
||||
|
||||
m_turret.runshooterRotatePID(m_targetAngle);
|
||||
|
||||
}
|
||||
public boolean noIsDeadzone(){
|
||||
if ((-20 < m_targetAngle) && (m_targetAngle < 0)) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Called once the command ends or is interrupted.
|
||||
|
||||
Reference in New Issue
Block a user