Compare commits
2 Commits
83da8e0de0
...
6fe6eab830
Author | SHA1 | Date | |
---|---|---|---|
6fe6eab830 | |||
2a06f7e98d |
@ -18,7 +18,6 @@ import org.firstinspires.ftc.robotcore.external.Telemetry;
|
|||||||
public class MotorsSubsystem {
|
public class MotorsSubsystem {
|
||||||
|
|
||||||
public HardwareMap hardwareMap;
|
public HardwareMap hardwareMap;
|
||||||
|
|
||||||
public Telemetry telemetry;
|
public Telemetry telemetry;
|
||||||
|
|
||||||
public DcMotor frontLeftMotor;
|
public DcMotor frontLeftMotor;
|
||||||
@ -26,6 +25,12 @@ public class MotorsSubsystem {
|
|||||||
public DcMotor frontRightMotor;
|
public DcMotor frontRightMotor;
|
||||||
public DcMotor backRightMotor;
|
public DcMotor backRightMotor;
|
||||||
|
|
||||||
|
public enum TravelState {
|
||||||
|
PARKED, BUCKET, SUBMARINE
|
||||||
|
}
|
||||||
|
|
||||||
|
public TravelState travelState;
|
||||||
|
|
||||||
public double power;
|
public double power;
|
||||||
|
|
||||||
public MotorsSubsystem(HardwareMap hardwareMap, Telemetry telemetry) {
|
public MotorsSubsystem(HardwareMap hardwareMap, Telemetry telemetry) {
|
||||||
@ -114,4 +119,12 @@ public class MotorsSubsystem {
|
|||||||
this.telemetry.update();
|
this.telemetry.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setState(TravelState travelState) {
|
||||||
|
this.travelState = travelState;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TravelState getState() {
|
||||||
|
return this.travelState;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user