mirror of
https://github.com/Team4388/2019-Hit-or-Miss.git
synced 2026-06-09 08:38:06 -06:00
Update Drive.java
Added method turnToAngle
This commit is contained in:
@@ -910,5 +910,8 @@ public class Drive extends Subsystem implements ControlLoopable
|
||||
}
|
||||
SmartDashboard.putNumber("Update Period (ms)", lastControlLoopUpdatePeriod * 1000.0);
|
||||
}
|
||||
}
|
||||
public void turnToAngle(double targetAngle, double maxError, double maxPrevError, MPSoftwareTurnType turnType) {
|
||||
setRelativeTurnPID(targetAngle - getGyroAngleDeg(), maxError, maxPrevError, turnType);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user