Skip to content

Commit d3dd421

Browse files
committed
使用 DcMotorSimple.Direction 代替 DeviceDirection
1 parent 0e80f1a commit d3dd421

File tree

1 file changed

+1
-1
lines changed
  • TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Hardwares/namespace

1 file changed

+1
-1
lines changed

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Hardwares/namespace/DeviceMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void register(HardwareMap hardwareMap){
3535
hardwareDevice.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
3636
devices.put(device, (DeviceInterface) hardwareDevice);
3737
}
38-
if(device.config.direction== DeviceDirection.REVERSE){
38+
if(device.config.direction== DcMotorSimple.Direction.REVERSE){
3939
hardwareDevice.setDirection(DcMotorSimple.Direction.REVERSE);
4040
}
4141
devices.put(device, (DeviceInterface) hardwareMap.get(device.classType, device.deviceName));

0 commit comments

Comments
 (0)