Bump to WPILib 2025 Beta 1 & remove C++ protobuf (#1484)

Remove C++ protobuf support until
https://github.com/wpilibsuite/allwpilib/issues/7250 is addressed.
Developers should upgrade to wpilib vscode 2025 beta 1.

---------

Co-authored-by: Matt <matthew.morley.ca@gmail.com>
This commit is contained in:
Cameron (3539)
2024-10-31 02:59:39 -04:00
committed by GitHub
parent 3d18ded3f6
commit 937bafa8e2
67 changed files with 185 additions and 824 deletions

View File

@@ -64,12 +64,11 @@ void SwerveModule::Periodic() {
driveMotor.SetVoltage(driveFF + drivePID);
}
void SwerveModule::SetDesiredState(const frc::SwerveModuleState& newState,
void SwerveModule::SetDesiredState(frc::SwerveModuleState newState,
bool shouldBeOpenLoop, bool steerInPlace) {
frc::Rotation2d currentRotation = GetAbsoluteHeading();
frc::SwerveModuleState optimizedState =
frc::SwerveModuleState::Optimize(newState, currentRotation);
desiredState = optimizedState;
newState.Optimize(currentRotation);
desiredState = newState;
}
frc::Rotation2d SwerveModule::GetAbsoluteHeading() const {