Skip to content

v4.1.0

Choose a tag to compare

@captainsoccer captainsoccer released this 26 Aug 08:21
· 93 commits to master since this release
4cb3cfe

BasicMotor v4.1.0 Release Notes

New Features

  • Added support for multiple PID slots.
  • Added ramp rates to control how quickly the motor output changes.

Breaking Changes

  • pidGains, feedForwardGains, and motionProfileGains have been moved into slotGainsX (0–2).
  • Code written for the 3.x.x series will need to be updated to use the new slot-based format.

Migration Example

Old (3.x.x):

config.pidConfig.kp = 1;
config.pidConfig.kd = 0.1;
config.feedForwardConfig.simpleFeedForward = 1;

New (4.1.0):

config.slot0.pidConfig.kp = 1;
config.slot0.pidConfig.kd = 0.1;
config.slot0.feedForwardConfig.simpleFeedForward = 1;