Class VelocityMotorDevice
java.lang.Object
com.cdarobotics.cdalib.devices.Device
com.cdarobotics.cdalib.devices.actuators.MotorDevice
com.cdarobotics.cdalib.devices.actuators.VelocityMotorDevice
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityMotorDevice(com.qualcomm.robotcore.hardware.DcMotorEx motor) VelocityMotorDevice(com.qualcomm.robotcore.hardware.DcMotorEx motor, Controller controller) VelocityMotorDevice(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap, String name) VelocityMotorDevice(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap, String name, Controller controller) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetController(Controller controller) voidsetVelocity(double velocity) voidupdate()Flush pending writes to, or refresh cached reads from, the underlying hardware.Methods inherited from class com.cdarobotics.cdalib.devices.actuators.MotorDevice
getCurrent, getCurrentPosition, getCurrentPower, getCurrentVelocity, getMotor, setDirection, setMode, setPower, setPowerWriteThreshold, setZeroPowerBehavior
-
Constructor Details
-
VelocityMotorDevice
-
VelocityMotorDevice
public VelocityMotorDevice(com.qualcomm.robotcore.hardware.HardwareMap hardwareMap, String name, Controller controller) -
VelocityMotorDevice
public VelocityMotorDevice(com.qualcomm.robotcore.hardware.DcMotorEx motor) -
VelocityMotorDevice
-
-
Method Details
-
setController
-
setVelocity
public void setVelocity(double velocity) -
update
public void update()Description copied from class:DeviceFlush pending writes to, or refresh cached reads from, the underlying hardware.- Overrides:
updatein classMotorDevice
-