You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SwerveController adds unnecessary complexity to YAGSL and is no longer required. It should be replaced with a function which controls the robot heading via a ProfiledPIDController.
The text was updated successfully, but these errors were encountered:
I will remove SwerveController in favor of another utility SwerveControl which will be able to generate translatiom2d and angular velocity to be passed to SwerveDrive.
The ideal usecase would be as follows.
ControllerWrapperdriver = newControllerWrapper(xboxController);
SwerveControlctr = newSwerveControl();
...
ctr
.withAngularVelocity(driver::getAngularVelocity) // For angular velocity control.
.withHeading(driver::getHeading) // For heading control
.withTranslation2d(driver::getTranslation2d)
.withHeadingPID(newProfiledPIDController())
.withHeadingOverride(trigger, ()->{returnangle;})
swerveDrive.drive(ctr::getTranslation2d, ctr::getAngularVelocity)
SwerveController
adds unnecessary complexity to YAGSL and is no longer required. It should be replaced with a function which controls the robot heading via aProfiledPIDController
.The text was updated successfully, but these errors were encountered: