File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
wpilibjExamples/src/main/java/edu/wpi/first/wpilibj
examples/xrpreference/subsystems
templates/xrpcommandbased/subsystems Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 55package edu .wpi .first .wpilibj .examples .xrpreference .subsystems ;
66
77import edu .wpi .first .wpilibj .examples .xrpreference .devices .XRPServo ;
8- import edu .wpi .first .wpilibj2 .command .Subsystem ;
8+ import edu .wpi .first .wpilibj2 .command .SubsystemBase ;
99
10- public class Arm extends Subsystem {
10+ public class Arm extends SubsystemBase {
1111 private final XRPServo m_armServo ;
1212
1313 /** Creates a new Arm. */
Original file line number Diff line number Diff line change 99import edu .wpi .first .wpilibj .drive .DifferentialDrive ;
1010import edu .wpi .first .wpilibj .examples .xrpreference .devices .XRPMotor ;
1111import edu .wpi .first .wpilibj .examples .xrpreference .sensors .XRPGyro ;
12- import edu .wpi .first .wpilibj2 .command .Subsystem ;
12+ import edu .wpi .first .wpilibj2 .command .SubsystemBase ;
1313
14- public class Drivetrain extends Subsystem {
14+ public class Drivetrain extends SubsystemBase {
1515 private static final double kGearRatio =
1616 (30.0 / 14.0 ) * (28.0 / 16.0 ) * (36.0 / 9.0 ) * (26.0 / 8.0 ); // 48.75:1
1717 private static final double kCountsPerMotorShaftRev = 12.0 ;
Original file line number Diff line number Diff line change 66
77import edu .wpi .first .wpilibj .DigitalInput ;
88import edu .wpi .first .wpilibj .DigitalOutput ;
9- import edu .wpi .first .wpilibj2 .command .Subsystem ;
9+ import edu .wpi .first .wpilibj2 .command .SubsystemBase ;
1010
1111/**
1212 * This class represents the onboard IO of the XRP Reference Robot. This includes the USER
1313 * pushbutton and LED
1414 */
15- public class XRPOnBoardIO extends Subsystem {
15+ public class XRPOnBoardIO extends SubsystemBase {
1616 private final DigitalInput m_button = new DigitalInput (0 );
1717 private final DigitalOutput m_led = new DigitalOutput (1 );
1818
Original file line number Diff line number Diff line change 77import edu .wpi .first .wpilibj .Encoder ;
88import edu .wpi .first .wpilibj .drive .DifferentialDrive ;
99import edu .wpi .first .wpilibj .templates .xrpcommandbased .devices .XRPMotor ;
10- import edu .wpi .first .wpilibj2 .command .Subsystem ;
10+ import edu .wpi .first .wpilibj2 .command .SubsystemBase ;
1111
12- public class XRPDrivetrain extends Subsystem {
12+ public class XRPDrivetrain extends SubsystemBase {
1313 private static final double kGearRatio =
1414 (30.0 / 14.0 ) * (28.0 / 16.0 ) * (36.0 / 9.0 ) * (26.0 / 8.0 ); // 48.75:1
1515 private static final double kCountsPerMotorShaftRev = 12.0 ;
You can’t perform that action at this time.
0 commit comments