Skip to content

Commit

Permalink
Add MotorControllerGroup and MotorController changes to changelog (#2507
Browse files Browse the repository at this point in the history
)

* Add MotorControllerGroup and MotorController changes

Fixes #2506

* Fix typo

Co-authored-by: Jason Daming <jason.daming@intralox.com>

---------

Co-authored-by: Jason Daming <jason.daming@intralox.com>
  • Loading branch information
sciencewhiz and jasondaming committed Jan 9, 2024
1 parent dc09bda commit d511911
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/docs/yearly-overview/yearly-changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ General Library
- ArcadeDrive: Fix max output handling
- Add ``PWMSparkFlex`` Motor Controller
- ADIS16470: allow accessing all three axes
- Deprecated ``MotorControllerGroup``. Use ``PWMMotorController`` ``addFollower()`` method or if using CAN motor controllers use their method of following.
- Added functional inteface to ``DifferentialDrive`` and ``MecanumDrive``. The ``MotorController`` interface may be removed in the future to reduce coupling with vendor libraries. Instead of passing ``MotorController`` objects, the following method references or lambda expressions can be used:

- Java: ``DifferentialDrive drive = new DifferentialDrive(m_leftMotor::set, m_rightMotor::set);``
- C++: ``frc::DifferentialDrive m_drive{[&](double output) { m_leftMotor.Set(output); }, [&](double output) { m_rightMotor.Set(output); }};``

Breaking Changes
^^^^^^^^^^^^^^^^
Expand Down

0 comments on commit d511911

Please sign in to comment.