mirror of
https://github.com/Team4388/2025RidgeScape.git
synced 2026-06-09 00:38:02 -06:00
Optimization and improvements
This commit is contained in:
@@ -326,7 +326,7 @@ public class SwerveDrive extends Subsystem {
|
||||
rotTarget += deltaAngle;
|
||||
}
|
||||
|
||||
swerveDriveTrain.addVisionMeasurement(vision.getPose2d(), time);
|
||||
swerveDriveTrain.addVisionMeasurement(vision.lastVisionPose, time);
|
||||
}
|
||||
|
||||
// if(e.isPresent())
|
||||
@@ -392,6 +392,11 @@ public class SwerveDrive extends Subsystem {
|
||||
setToSlow();
|
||||
}
|
||||
|
||||
public void startTurboPeriod() {
|
||||
tmp_gear_index = gear_index;
|
||||
setToTurbo();
|
||||
}
|
||||
|
||||
public void endSlowPeriod() {
|
||||
setPercentOutput(SwerveDriveConstants.GEARS[tmp_gear_index]);
|
||||
gear_index = tmp_gear_index;
|
||||
|
||||
Reference in New Issue
Block a user