◆ TalonFXPositionController()
rmb::TalonFXPositionController::TalonFXPositionController |
( |
const CreateInfo & | createInfo | ) |
|
◆ disable()
void rmb::TalonFXPositionController::disable |
( |
| ) |
|
|
overridevirtual |
◆ follow()
Match duty cycle of the given controller
- Parameters
-
inverted | Use the inverted form of the parent's duty cycle |
◆ getMaxPosition()
units::radian_t rmb::TalonFXPositionController::getMaxPosition |
( |
| ) |
const |
|
overridevirtual |
◆ getMinPosition()
units::radian_t rmb::TalonFXPositionController::getMinPosition |
( |
| ) |
const |
|
overridevirtual |
◆ getPosition()
units::radian_t rmb::TalonFXPositionController::getPosition |
( |
| ) |
const |
|
overridevirtual |
Get the current position of the motor
- Returns
- The current position of the motor as measured by the selected sensor
Implements rmb::AngularPositionController.
◆ getPower()
virtual double rmb::TalonFXPositionController::getPower |
( |
| ) |
const |
|
overridevirtual |
◆ getTargetPosition()
units::radian_t rmb::TalonFXPositionController::getTargetPosition |
( |
| ) |
const |
|
overridevirtual |
◆ getTolerance()
units::radian_t rmb::TalonFXPositionController::getTolerance |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the closed loop position tolerance. @warn Tolerance is unimplemented and will return 0
- Returns
- The tolerance in a units::angle container
Implements rmb::AngularPositionController.
◆ getVelocity()
units::radians_per_second_t rmb::TalonFXPositionController::getVelocity |
( |
| ) |
const |
|
overridevirtual |
Get the current velocity of the motor
- Returns
- The velocity of the motor in a units::angular_velocity container
Implements rmb::AngularPositionController.
◆ setEncoderPosition()
void rmb::TalonFXPositionController::setEncoderPosition |
( |
units::radian_t | position = 0_rad | ) |
|
|
overridevirtual |
Sets the encoder's reported position
- Parameters
-
position | The position to reset the reference to. Defaults to 0 |
Implements rmb::AngularPositionController.
◆ setPosition()
void rmb::TalonFXPositionController::setPosition |
( |
units::radian_t | position | ) |
|
|
overridevirtual |
Sets a closed loop position setpoint on the TalonFX to the given position
- Parameters
-
position | The position setpoint |
Implements rmb::AngularPositionController.
◆ setPower()
void rmb::TalonFXPositionController::setPower |
( |
double | power | ) |
|
|
overridevirtual |
Sets open loop power on the motor
- Parameters
-
power | The power target supplied to the motor. Must be in range [0.0, 1.0] |
Implements rmb::AngularPositionController.
◆ stop()
void rmb::TalonFXPositionController::stop |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: