Merge branch 'main' of https://git.demerso.net/sdesharnais/Rebuilt-2026
This commit is contained in:
@@ -35,7 +35,7 @@ public class GrimperReservoir extends Command {
|
||||
double pigeonAngle;
|
||||
private double MaxSpeed = TunerConstants.kSpeedAt12Volts.in(MetersPerSecond);
|
||||
private double MaxAngularRate = RotationsPerSecond.of(0.75).in(RadiansPerSecond);
|
||||
Optional<Alliance> alliance = DriverStation.getAlliance();
|
||||
Optional<Alliance> alliance;
|
||||
private final SwerveRequest.FieldCentric drive = new SwerveRequest.FieldCentric()
|
||||
.withDeadband(MaxSpeed * 0.1).withRotationalDeadband(MaxAngularRate * 0.1)
|
||||
.withDriveRequestType(DriveRequestType.OpenLoopVoltage);
|
||||
@@ -50,7 +50,7 @@ public class GrimperReservoir extends Command {
|
||||
// Called when the command is initially scheduled.
|
||||
@Override
|
||||
public void initialize() {
|
||||
// alliance = DriverStation.getAlliance();
|
||||
alliance = DriverStation.getAlliance();
|
||||
// if(drivetrain.Equipe()){
|
||||
// drivetrain.getPigeon2().setYaw(drivetrain.getPigeon2().getYaw().getValueAsDouble()+180);
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user