Skip to content

Fix swerve module sim - #89

Merged
brettle merged 20 commits into
masterfrom
fix-SwerveModuleSim
May 16, 2024
Merged

Fix swerve module sim#89
brettle merged 20 commits into
masterfrom
fix-SwerveModuleSim

Conversation

@brettle

@brettle brettle commented May 16, 2024

Copy link
Copy Markdown
Member

These are fixes to make the SwerveModuleSim class work. It is used by RobotCode2024 to drive the robot in the wpi simulator. There are also some minor changes to help with debugging.

brettle added 19 commits May 14, 2024 20:14
… initialized to avoid race condition where where pidControllerImpl is not set when getRequestedSpeed() is called.
The drivePhysicsSim should do that properly based on the already possibly inverted Speed of the driveMotorSim.
The direction will already be inverted based on the motor sim's Speed being inverted.
@brettle
brettle requested a review from CoolSpy3 May 16, 2024 00:45
@brettle
brettle merged commit 3170c44 into master May 16, 2024
@brettle
brettle deleted the fix-SwerveModuleSim branch May 16, 2024 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants