mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpimath] Add cosineScale method to SwerveModuleState and instance optimize (#7114)
This commit is contained in:
committed by
GitHub
parent
fde264b041
commit
fe80d72fba
@@ -25,7 +25,7 @@ class SwerveModule {
|
||||
int turningEncoderChannelA, int turningEncoderChannelB);
|
||||
frc::SwerveModuleState GetState() const;
|
||||
frc::SwerveModulePosition GetPosition() const;
|
||||
void SetDesiredState(const frc::SwerveModuleState& state);
|
||||
void SetDesiredState(frc::SwerveModuleState& state);
|
||||
|
||||
private:
|
||||
static constexpr double kWheelRadius = 0.0508;
|
||||
|
||||
Reference in New Issue
Block a user