[wpilib] Remove PIDController, PIDOutput, PIDSource

Move them to the old commands vendordep so that PIDCommand and PIDSubsystem
continue to work.

This also removes Filter and LinearDigitalFilter.
This commit is contained in:
Peter Johnson
2021-03-12 15:41:52 -08:00
parent 3abe0b9d49
commit 6b168ab0c8
69 changed files with 30 additions and 1248 deletions

View File

@@ -37,9 +37,4 @@ public class MockSpeedController implements SpeedController {
public void stopMotor() {
disable();
}
@Override
public void pidWrite(double output) {
set(output);
}
}

View File

@@ -98,15 +98,4 @@ class SpeedControllerGroupTest {
Arrays.stream(speedControllers).mapToDouble(SpeedController::get).toArray(),
0.00005);
}
@ParameterizedTest
@MethodSource("speedControllerArguments")
void pidWriteTest(final SpeedControllerGroup group, final SpeedController[] speedControllers) {
group.pidWrite(1.0);
assertArrayEquals(
DoubleStream.generate(() -> 1.0).limit(speedControllers.length).toArray(),
Arrays.stream(speedControllers).mapToDouble(SpeedController::get).toArray(),
0.00005);
}
}