-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onboarding #75
base: main
Are you sure you want to change the base?
onboarding #75
Conversation
|
||
@Override | ||
public void setDriveSetpoint(double velocity) { | ||
drivePID.setReference(velocity, ControlType.kVelocity); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No feedforward is used in closed-loop control currently. It can be added using the overloaded method
public REVLibError setReference(
double value, CANSparkBase.ControlType ctrl, int pidSlot, double arbFeedforward)
with the feedforward value being calculated with WPILIB's class.
public void setTurnSetpoint(double angle) {} | ||
|
||
@Override | ||
public void updateSetpoint(SwerveModuleState setpoint, ControlMode mode) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sim should follow the same logic as the rest of the modules, and we both know that rev's onboarding pid code could never be this complex
onboarding
currently has rev swerve only, talon onboarding will be added soon