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 5
5
package edu .wpi .first .wpilibj .examples .xrpreference .subsystems ;
6
6
7
7
import edu .wpi .first .wpilibj .examples .xrpreference .devices .XRPServo ;
8
- import edu .wpi .first .wpilibj2 .command .Subsystem ;
8
+ import edu .wpi .first .wpilibj2 .command .SubsystemBase ;
9
9
10
- public class Arm extends Subsystem {
10
+ public class Arm extends SubsystemBase {
11
11
private final XRPServo m_armServo ;
12
12
13
13
/** Creates a new Arm. */
Original file line number Diff line number Diff line change 9
9
import edu .wpi .first .wpilibj .drive .DifferentialDrive ;
10
10
import edu .wpi .first .wpilibj .examples .xrpreference .devices .XRPMotor ;
11
11
import edu .wpi .first .wpilibj .examples .xrpreference .sensors .XRPGyro ;
12
- import edu .wpi .first .wpilibj2 .command .Subsystem ;
12
+ import edu .wpi .first .wpilibj2 .command .SubsystemBase ;
13
13
14
- public class Drivetrain extends Subsystem {
14
+ public class Drivetrain extends SubsystemBase {
15
15
private static final double kGearRatio =
16
16
(30.0 / 14.0 ) * (28.0 / 16.0 ) * (36.0 / 9.0 ) * (26.0 / 8.0 ); // 48.75:1
17
17
private static final double kCountsPerMotorShaftRev = 12.0 ;
Original file line number Diff line number Diff line change 6
6
7
7
import edu .wpi .first .wpilibj .DigitalInput ;
8
8
import edu .wpi .first .wpilibj .DigitalOutput ;
9
- import edu .wpi .first .wpilibj2 .command .Subsystem ;
9
+ import edu .wpi .first .wpilibj2 .command .SubsystemBase ;
10
10
11
11
/**
12
12
* This class represents the onboard IO of the XRP Reference Robot. This includes the USER
13
13
* pushbutton and LED
14
14
*/
15
- public class XRPOnBoardIO extends Subsystem {
15
+ public class XRPOnBoardIO extends SubsystemBase {
16
16
private final DigitalInput m_button = new DigitalInput (0 );
17
17
private final DigitalOutput m_led = new DigitalOutput (1 );
18
18
Original file line number Diff line number Diff line change 7
7
import edu .wpi .first .wpilibj .Encoder ;
8
8
import edu .wpi .first .wpilibj .drive .DifferentialDrive ;
9
9
import edu .wpi .first .wpilibj .templates .xrpcommandbased .devices .XRPMotor ;
10
- import edu .wpi .first .wpilibj2 .command .Subsystem ;
10
+ import edu .wpi .first .wpilibj2 .command .SubsystemBase ;
11
11
12
- public class XRPDrivetrain extends Subsystem {
12
+ public class XRPDrivetrain extends SubsystemBase {
13
13
private static final double kGearRatio =
14
14
(30.0 / 14.0 ) * (28.0 / 16.0 ) * (36.0 / 9.0 ) * (26.0 / 8.0 ); // 48.75:1
15
15
private static final double kCountsPerMotorShaftRev = 12.0 ;
You can’t perform that action at this time.
0 commit comments