Skip to content

Commit

Permalink
Fix DriveView setDrivePowers()
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrott committed Dec 7, 2022
1 parent 7c9fd6c commit 1b7f3ca
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,12 @@ public MotorFeedforward feedforward() {
public void setDrivePowers(Twist2d powers) {
if (md != null) {
md.setDrivePowers(powers);
return;
}

if (td != null) {
td.setDrivePowers(powers);
return;
}

throw new AssertionError();
Expand Down

0 comments on commit 1b7f3ca

Please sign in to comment.