frc2399 / 2022-Season

This is our NEW repository for the 2022 Season.
Other
0 stars 5 forks source link

enable slew rate limiter adjustment on the fly #9

Open Chess318 opened 2 years ago

Chess318 commented 2 years ago

Not possible to change on the fly according to Herb's research

hschilling commented 2 years ago

Here is an example of where to create the SlewRateLimiters

https://github.com/wpilibsuite/allwpilib/blob/main/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/differentialdrivebot/Robot.java

Docs for the SlewRateLimiter

https://docs.wpilib.org/en/stable/docs/software/advanced-controls/filters/slew-rate-limiter.html

https://first.wpi.edu/wpilib/allwpilib/docs/release/java/edu/wpi/first/math/filter/SlewRateLimiter.html

Might not be possible!