track target

This commit is contained in:
Ryan
2022-03-25 11:28:57 -06:00
parent bdfa16679c
commit e2e69bd1fd
@@ -66,6 +66,7 @@ public class TrackTarget extends CommandBase {
addRequirements(m_turret, m_boomBoom, m_hood, m_visionOdometry);
SmartDashboard.putNumber("Distance Adjust", -35);
SmartDashboard.putBoolean("Target Locked", false);
}
public TrackTarget(Turret turret, BoomBoom boomBoom, Hood hood, VisionOdometry visionOdometry) {
@@ -190,6 +191,7 @@ public class TrackTarget extends CommandBase {
@Override
public void end(boolean interrupted) {
m_visionOdometry.setLEDs(false);
SmartDashboard.putBoolean("Target Locked", false);
}
// Returns true when the command should end.