Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Optimize Swerve Module and more 2nd order kinematics #63

Merged
merged 12 commits into from
Mar 29, 2023

Conversation

thenetworkgrinch
Copy link
Contributor

This does not affect anything in sim but that could be incorrect for reality and needs to be tested on both Neo's and Falcons before merging. The optimizations do increase redundancy on Falcon motors since the function placeInScope0to360 has been upstreamed into SwerveMath like @7910f6ba7ee4 originally wanted. The module angles are now optimized regardless of motor type too which means utilization of placeInScope0to360 can be removed from TalonFXSwerve and TalonSRXSwerve safely possibly.

There is one magic number in here for optimization which I do not recognize that is used for integration of the omegaRadPerSecond when calculating the approximate offset of the module's angle using second order kinematics. This change may break some of 3d odometry as well.

… of time in SwerveModule, may need to remove redundancy in TalonFXSwerve and TalonSRXSwerve. Moved antiJitter function to SwerveMath.

Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
@thenetworkgrinch thenetworkgrinch added the enhancement New feature or request label Mar 24, 2023
@thenetworkgrinch thenetworkgrinch self-assigned this Mar 24, 2023
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
… the SparkMaxSwerve.setReference function.

Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
… passed to the motor controllers.

Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
@thenetworkgrinch thenetworkgrinch linked an issue Mar 28, 2023 that may be closed by this pull request
thenetworkgrinch and others added 3 commits March 28, 2023 14:10
…Removing feedforward from steering motor.

Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
@thenetworkgrinch thenetworkgrinch merged commit 59e400f into main Mar 29, 2023
@thenetworkgrinch thenetworkgrinch deleted the module_optimization branch January 22, 2024 20:56
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Motors perform burnouts
1 participant