Skip to content

[wpilib] Change PWMMotorController::AddFollower to Follow#8844

Open
DeltaDizzy wants to merge 7 commits into
wpilibsuite:mainfrom
DeltaDizzy:unify-follower-semantics
Open

[wpilib] Change PWMMotorController::AddFollower to Follow#8844
DeltaDizzy wants to merge 7 commits into
wpilibsuite:mainfrom
DeltaDizzy:unify-follower-semantics

Conversation

@DeltaDizzy
Copy link
Copy Markdown
Contributor

The new ExpansionHubMotor class uses follower.follow(leader) syntax, as do all vendor libraries. In the interest of consistency, so should the WPILib PWM controller classes. (Double lookover of the C++ requested, that was very much by the seat of my pants...)

@DeltaDizzy DeltaDizzy requested a review from a team as a code owner May 2, 2026 01:57
@DeltaDizzy DeltaDizzy requested a review from a team as a code owner May 2, 2026 02:50
@PeterJohnson PeterJohnson changed the base branch from 2027 to main May 3, 2026 17:55
@PeterJohnson
Copy link
Copy Markdown
Member

This needs something done in C++ so that the follower getting destructed/moved updates the pointer in the leader so it doesn't dangle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants