DcMotorEx
A wrapper class for FTC's DcMotorEx. This class extends BaseMotor and provides a convenient way to interact with extended DC motors in a robot, including handling inversion, power limits, and deadband. It provides access to the advanced functionalities of DcMotorEx.
Methods
DcMotorEx(String name, HardwareMap hardwareMap)
Constructs a new DcMotorEx instance with the given name and hardware map. The motor will not be inverted by default.
DcMotorEx(String name, HardwareMap hardwareMap, boolean isInverted)
Constructs a new DcMotorEx instance, allowing you to specify if the motor should be inverted for both setting and getting power.
DcMotorEx(String name, HardwareMap hardwareMap, boolean isSetInverted, boolean isGetInverted)
Constructs a new DcMotorEx instance, allowing separate inversion settings for setting and getting power.
DcMotorEx(String name, HardwareMap hardwareMap, boolean isSetInverted, boolean isGetInverted, double deadband)
Constructs a new DcMotorEx instance with full control over inversion and deadband settings.
getDcMotorEx()
Returns the underlying com.qualcomm.robotcore.hardware.DcMotorEx object, providing access to its extended functionalities.
abstractSetPower(double power)
Implements the abstract method from BaseMotor to set the power of the physical DcMotorEx.
abstractGetPower()
Implements the abstract method from BaseMotor to get the current power of the physical DcMotorEx.