Fix DriveView setDrivePowers()
This commit is contained in:
@ -159,10 +159,12 @@ final class DriveView {
|
|||||||
public void setDrivePowers(Twist2d powers) {
|
public void setDrivePowers(Twist2d powers) {
|
||||||
if (md != null) {
|
if (md != null) {
|
||||||
md.setDrivePowers(powers);
|
md.setDrivePowers(powers);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (td != null) {
|
if (td != null) {
|
||||||
td.setDrivePowers(powers);
|
td.setDrivePowers(powers);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new AssertionError();
|
throw new AssertionError();
|
||||||
|
Reference in New Issue
Block a user