|
CTRE Phoenix 6 C++ 26.0.0-beta-1
|
Manages control of a two-axis differential mechanism. More...
#include <ctre/phoenix6/mechanisms/DifferentialMechanism.hpp>
Public Types | |
| enum class | DisabledReasonValue { None , MissingRemoteSensor , MissingDifferentialFX , RemoteSensorPosOverflow , DeviceHasReset } |
| Possible reasons for the mechanism to disable. More... | |
| enum class | RequiresUserReasonValue { None , RemoteSensorPosOverflow , DeviceHasReset } |
| Possible reasons for the mechanism to require user action to resume control. More... | |
Public Member Functions | |
| DifferentialMechanism (DifferentialMotorConstants< typename MotorT::Configuration > const &constants) | |
| Creates a new differential mechanism using two hardware::traits::CommonTalon devices. | |
| DifferentialMechanism (DifferentialMotorConstants< typename MotorT::Configuration > const &constants, hardware::Pigeon2 &pigeon2, DifferentialPigeon2Source pigeonSource) | |
| Creates a new differential mechanism using two hardware::traits::CommonTalon devices and a hardware::Pigeon2. | |
| DifferentialMechanism (DifferentialMotorConstants< typename MotorT::Configuration > const &constants, hardware::CANcoder &cancoder) | |
| Creates a new differential mechanism using two hardware::traits::CommonTalon devices and a hardware::CANcoder. | |
| DifferentialMechanism (DifferentialMotorConstants< typename MotorT::Configuration > const &constants, hardware::CANdi &candi, DifferentialCANdiSource candiSource) | |
| Creates a new differential mechanism using two hardware::traits::CommonTalon devices and a hardware::CANdi. | |
| ctre::phoenix::StatusCode | ConfigNeutralMode (signals::NeutralModeValue neutralMode, units::second_t timeoutSeconds=100_ms) |
| Configures the neutral mode to use for both motors in the mechanism. | |
| void | Periodic () |
| Call this method periodically to automatically protect against dangerous fault conditions and keep GetMechanismState() updated. | |
| bool | IsDisabled () const |
| Get whether the mechanism is currently disabled due to an issue. | |
| bool | RequiresUserAction () const |
| Get whether the mechanism is currently disabled and requires user action to re-enable mechanism control. | |
| MechanismState | GetMechanismState () const |
| Gets the state of the mechanism. | |
| void | ClearUserRequirement () |
| Indicate to the mechanism that the user has performed the required action to resume mechanism control. | |
| DisabledReasonValue | GetDisabledReason () const |
| RequiresUserReasonValue | GetRequiresUserReason () const |
| StatusSignal< units::turn_t > & | GetAveragePosition (bool refresh=true) |
| Average component of the mechanism position. | |
| StatusSignal< units::turns_per_second_t > & | GetAverageVelocity (bool refresh=true) |
| Average component of the mechanism velocity. | |
| StatusSignal< units::turn_t > & | GetDifferentialPosition (bool refresh=true) |
| Differential component of the mechanism position. | |
| StatusSignal< units::turns_per_second_t > & | GetDifferentialVelocity (bool refresh=true) |
| Differential component of the mechanism velocity. | |
| StatusSignal< double > & | GetAverageClosedLoopReference (bool refresh=true) |
| Value that the average closed loop is targeting. | |
| StatusSignal< double > & | GetAverageClosedLoopReferenceSlope (bool refresh=true) |
| Derivative of the target that the average closed loop is targeting. | |
| StatusSignal< double > & | GetAverageClosedLoopError (bool refresh=true) |
| The difference between target average reference and current measurement. | |
| StatusSignal< double > & | GetDifferentialClosedLoopReference (bool refresh=true) |
| Value that the differential closed loop is targeting. | |
| StatusSignal< double > & | GetDifferentialClosedLoopReferenceSlope (bool refresh=true) |
| Derivative of the target that the differential closed loop is targeting. | |
| StatusSignal< double > & | GetDifferentialClosedLoopError (bool refresh=true) |
| The difference between target differential reference and current measurement. | |
| ctre::phoenix::StatusCode | SetPosition (units::turn_t avgPosition, units::turn_t diffPosition=0_tr, units::time::second_t timeoutSeconds=0.100_s) |
| Sets the position of the mechanism in rotations. | |
| MotorT & | GetLeader () |
| Get the Talon FX that is differential leader. | |
| MotorT const & | GetLeader () const |
| Get the Talon FX that is differential leader. | |
| MotorT & | GetFollower () |
| Get the Talon FX that is differential follower. | |
| MotorT const & | GetFollower () const |
| Get the Talon FX that is differential follower. | |
| ctre::phoenix::StatusCode | SetNeutralOut () |
| Request neutral output of mechanism. | |
| ctre::phoenix::StatusCode | SetCoastOut () |
| Request coast neutral output of mechanism. | |
| ctre::phoenix::StatusCode | SetStaticBrake () |
| Applies full neutral-brake on the mechanism by shorting motor leads together. | |
| ctre::phoenix::StatusCode | SetControl (controls::DutyCycleOut AverageRequest, controls::PositionDutyCycle DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::PositionDutyCycle AverageRequest, controls::PositionDutyCycle DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::VelocityDutyCycle AverageRequest, controls::PositionDutyCycle DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicDutyCycle AverageRequest, controls::PositionDutyCycle DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoDutyCycle AverageRequest, controls::PositionDutyCycle DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityDutyCycle AverageRequest, controls::PositionDutyCycle DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::DutyCycleOut AverageRequest, controls::VelocityDutyCycle DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::PositionDutyCycle AverageRequest, controls::VelocityDutyCycle DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::VelocityDutyCycle AverageRequest, controls::VelocityDutyCycle DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicDutyCycle AverageRequest, controls::VelocityDutyCycle DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoDutyCycle AverageRequest, controls::VelocityDutyCycle DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityDutyCycle AverageRequest, controls::VelocityDutyCycle DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::DutyCycleOut AverageRequest, controls::DutyCycleOut DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::PositionDutyCycle AverageRequest, controls::DutyCycleOut DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::VelocityDutyCycle AverageRequest, controls::DutyCycleOut DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicDutyCycle AverageRequest, controls::DutyCycleOut DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoDutyCycle AverageRequest, controls::DutyCycleOut DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityDutyCycle AverageRequest, controls::DutyCycleOut DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::VoltageOut AverageRequest, controls::PositionVoltage DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::PositionVoltage AverageRequest, controls::PositionVoltage DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::VelocityVoltage AverageRequest, controls::PositionVoltage DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVoltage AverageRequest, controls::PositionVoltage DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoVoltage AverageRequest, controls::PositionVoltage DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityVoltage AverageRequest, controls::PositionVoltage DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::VoltageOut AverageRequest, controls::VelocityVoltage DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::PositionVoltage AverageRequest, controls::VelocityVoltage DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::VelocityVoltage AverageRequest, controls::VelocityVoltage DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVoltage AverageRequest, controls::VelocityVoltage DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoVoltage AverageRequest, controls::VelocityVoltage DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityVoltage AverageRequest, controls::VelocityVoltage DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::VoltageOut AverageRequest, controls::VoltageOut DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::PositionVoltage AverageRequest, controls::VoltageOut DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::VelocityVoltage AverageRequest, controls::VoltageOut DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVoltage AverageRequest, controls::VoltageOut DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoVoltage AverageRequest, controls::VoltageOut DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityVoltage AverageRequest, controls::VoltageOut DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::TorqueCurrentFOC AverageRequest, controls::PositionTorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::PositionTorqueCurrentFOC AverageRequest, controls::PositionTorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::VelocityTorqueCurrentFOC AverageRequest, controls::PositionTorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicTorqueCurrentFOC AverageRequest, controls::PositionTorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoTorqueCurrentFOC AverageRequest, controls::PositionTorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityTorqueCurrentFOC AverageRequest, controls::PositionTorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::TorqueCurrentFOC AverageRequest, controls::VelocityTorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::PositionTorqueCurrentFOC AverageRequest, controls::VelocityTorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::VelocityTorqueCurrentFOC AverageRequest, controls::VelocityTorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicTorqueCurrentFOC AverageRequest, controls::VelocityTorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoTorqueCurrentFOC AverageRequest, controls::VelocityTorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityTorqueCurrentFOC AverageRequest, controls::VelocityTorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::TorqueCurrentFOC AverageRequest, controls::TorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::PositionTorqueCurrentFOC AverageRequest, controls::TorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::VelocityTorqueCurrentFOC AverageRequest, controls::TorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicTorqueCurrentFOC AverageRequest, controls::TorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoTorqueCurrentFOC AverageRequest, controls::TorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
| ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityTorqueCurrentFOC AverageRequest, controls::TorqueCurrentFOC DifferentialRequest) |
| Sets the control request for this mechanism. | |
Manages control of a two-axis differential mechanism.
This mechanism requires the devices to be Pro licensed and connected to a CAN FD bus. Unlicensed users and users on a CAN 2.0 bus can use the SimpleDifferentialMechanism instead with limited functionality.
A differential mechanism has two axes of motion, where the position along each axis is determined by two motors in separate gearboxes:
|
strong |
Possible reasons for the mechanism to disable.
|
strong |
Possible reasons for the mechanism to require user action to resume control.
| ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::DifferentialMechanism | ( | DifferentialMotorConstants< typename MotorT::Configuration > const & | constants | ) |
Creates a new differential mechanism using two hardware::traits::CommonTalon devices.
The mechanism will use the average of the two Talon FX sensors on the primary axis, and half of the difference between the two Talon FX sensors on the differential axis.
This mechanism requires the devices to be Pro licensed and connected to a CAN FD bus. Unlicensed users and users on a CAN 2.0 bus can use the SimpleDifferentialMechanism instead with limited functionality.
| constants | Constants used to construct the mechanism |
| ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::DifferentialMechanism | ( | DifferentialMotorConstants< typename MotorT::Configuration > const & | constants, |
| hardware::Pigeon2 & | pigeon2, | ||
| DifferentialPigeon2Source | pigeonSource ) |
Creates a new differential mechanism using two hardware::traits::CommonTalon devices and a hardware::Pigeon2.
The mechanism will use the average of the two Talon FX sensors on the primary axis, and the selected Pigeon 2 sensor source on the differential axis.
This mechanism requires the devices to be Pro licensed and connected to a CAN FD bus. Unlicensed users and users on a CAN 2.0 bus can use the SimpleDifferentialMechanism instead with limited functionality.
| constants | Constants used to construct the mechanism |
| pigeon2 | The Pigeon 2 to use for the differential axis |
| pigeonSource | The sensor source to use for the Pigeon 2 (Yaw, Pitch, or Roll) |
| ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::DifferentialMechanism | ( | DifferentialMotorConstants< typename MotorT::Configuration > const & | constants, |
| hardware::CANcoder & | cancoder ) |
Creates a new differential mechanism using two hardware::traits::CommonTalon devices and a hardware::CANcoder.
The mechanism will use the average of the two Talon FX sensors on the primary axis, and the CANcoder position/velocity on the differential axis.
This mechanism requires the devices to be Pro licensed and connected to a CAN FD bus. Unlicensed users and users on a CAN 2.0 bus can use the SimpleDifferentialMechanism instead with limited functionality.
| constants | Constants used to construct the mechanism |
| cancoder | The CANcoder to use for the differential axis |
| ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::DifferentialMechanism | ( | DifferentialMotorConstants< typename MotorT::Configuration > const & | constants, |
| hardware::CANdi & | candi, | ||
| DifferentialCANdiSource | candiSource ) |
Creates a new differential mechanism using two hardware::traits::CommonTalon devices and a hardware::CANdi.
The mechanism will use the average of the two Talon FX sensors on the primary axis, and the selected CTR Electronics' CANdi⢠branded sensor source on the differential axis.
This mechanism requires the devices to be Pro licensed and connected to a CAN FD bus. Unlicensed users and users on a CAN 2.0 bus can use the SimpleDifferentialMechanism instead with limited functionality.
| constants | Constants used to construct the mechanism |
| candi | The CTR Electronics' CANdi⢠branded device to use for the differential axis |
| candiSource | The sensor source to use for the CTR Electronics' CANdi⢠branded device |
| void ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::ClearUserRequirement | ( | ) |
Indicate to the mechanism that the user has performed the required action to resume mechanism control.
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::ConfigNeutralMode | ( | signals::NeutralModeValue | neutralMode, |
| units::second_t | timeoutSeconds = 100_ms ) |
Configures the neutral mode to use for both motors in the mechanism.
| neutralMode | The state of the motor controller bridge when output is neutral or disabled |
| timeoutSeconds | Maximum amount of time to wait when performing each configuration |
|
inline |
The difference between target average reference and current measurement.
This is the value that is treated as the error in the PID loop.
This refreshes and returns a cached StatusSignal object.
| refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
Value that the average closed loop is targeting.
This is the value that the closed loop PID controller targets.
This refreshes and returns a cached StatusSignal object.
| refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
Derivative of the target that the average closed loop is targeting.
This is the change in the closed loop reference. This may be used in the feed-forward calculation, the derivative-error, or in application of the signage for kS. Typically, this represents the target velocity during Motion MagicĀ®.
This refreshes and returns a cached StatusSignal object.
| refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
Average component of the mechanism position.
This refreshes and returns a cached StatusSignal object.
| refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
Average component of the mechanism velocity.
This refreshes and returns a cached StatusSignal object.
| refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
The difference between target differential reference and current measurement.
This is the value that is treated as the error in the differential PID loop (on the difference axis).
This refreshes and returns a cached StatusSignal object.
| refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
Value that the differential closed loop is targeting.
This is the value that the differential closed loop PID controller targets (on the difference axis).
This refreshes and returns a cached StatusSignal object.
| refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
Derivative of the target that the differential closed loop is targeting.
This is the change in the closed loop reference (on the difference axis). This may be used in the feed-forward calculation, the derivative-error, or in application of the signage for kS. Typically, this represents the target velocity during Motion MagicĀ®.
This refreshes and returns a cached StatusSignal object.
| refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
Differential component of the mechanism position.
This refreshes and returns a cached StatusSignal object.
| refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
Differential component of the mechanism velocity.
This refreshes and returns a cached StatusSignal object.
| refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
|
inline |
Get the Talon FX that is differential follower.
The differential follower's position and velocity are used by the differential leader for the differential controller.
|
inline |
Get the Talon FX that is differential follower.
The differential follower's position and velocity are used by the differential leader for the differential controller.
|
inline |
Get the Talon FX that is differential leader.
The differential leader calculates the output for the differential follower. The differential leader is also used for fault detection, and it reports status signals for the differential controller.
|
inline |
Get the Talon FX that is differential leader.
The differential leader calculates the output for the differential follower. The differential leader is also useful for fault detection, and it reports status signals for the differential controller.
|
inline |
Gets the state of the mechanism.
|
inline |
|
inline |
Get whether the mechanism is currently disabled due to an issue.
| void ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::Periodic | ( | ) |
Call this method periodically to automatically protect against dangerous fault conditions and keep GetMechanismState() updated.
|
inline |
Get whether the mechanism is currently disabled and requires user action to re-enable mechanism control.
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetCoastOut | ( | ) |
Request coast neutral output of mechanism.
The bridge is disabled and the rotor is allowed to coast.
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::DutyCycleOut | AverageRequest, |
| controls::DutyCycleOut | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average DutyCycleOut request of the mechanism. |
| DifferentialRequest | Differential DutyCycleOut request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::DutyCycleOut | AverageRequest, |
| controls::PositionDutyCycle | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average DutyCycleOut request of the mechanism. |
| DifferentialRequest | Differential PositionDutyCycle request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::DutyCycleOut | AverageRequest, |
| controls::VelocityDutyCycle | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average DutyCycleOut request of the mechanism. |
| DifferentialRequest | Differential VelocityDutyCycle request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicDutyCycle | AverageRequest, |
| controls::DutyCycleOut | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicDutyCycle request of the mechanism. |
| DifferentialRequest | Differential DutyCycleOut request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicDutyCycle | AverageRequest, |
| controls::PositionDutyCycle | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicDutyCycle request of the mechanism. |
| DifferentialRequest | Differential PositionDutyCycle request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicDutyCycle | AverageRequest, |
| controls::VelocityDutyCycle | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicDutyCycle request of the mechanism. |
| DifferentialRequest | Differential VelocityDutyCycle request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicExpoDutyCycle | AverageRequest, |
| controls::DutyCycleOut | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicExpoDutyCycle request of the mechanism. |
| DifferentialRequest | Differential DutyCycleOut request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicExpoDutyCycle | AverageRequest, |
| controls::PositionDutyCycle | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicExpoDutyCycle request of the mechanism. |
| DifferentialRequest | Differential PositionDutyCycle request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicExpoDutyCycle | AverageRequest, |
| controls::VelocityDutyCycle | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicExpoDutyCycle request of the mechanism. |
| DifferentialRequest | Differential VelocityDutyCycle request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicExpoTorqueCurrentFOC | AverageRequest, |
| controls::PositionTorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicExpoTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential PositionTorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicExpoTorqueCurrentFOC | AverageRequest, |
| controls::TorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicExpoTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential TorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicExpoTorqueCurrentFOC | AverageRequest, |
| controls::VelocityTorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicExpoTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential VelocityTorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicExpoVoltage | AverageRequest, |
| controls::PositionVoltage | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicExpoVoltage request of the mechanism. |
| DifferentialRequest | Differential PositionVoltage request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicExpoVoltage | AverageRequest, |
| controls::VelocityVoltage | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicExpoVoltage request of the mechanism. |
| DifferentialRequest | Differential VelocityVoltage request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicExpoVoltage | AverageRequest, |
| controls::VoltageOut | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicExpoVoltage request of the mechanism. |
| DifferentialRequest | Differential VoltageOut request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicTorqueCurrentFOC | AverageRequest, |
| controls::PositionTorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential PositionTorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicTorqueCurrentFOC | AverageRequest, |
| controls::TorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential TorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicTorqueCurrentFOC | AverageRequest, |
| controls::VelocityTorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential VelocityTorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicVelocityDutyCycle | AverageRequest, |
| controls::DutyCycleOut | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicVelocityDutyCycle request of the mechanism. |
| DifferentialRequest | Differential DutyCycleOut request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicVelocityDutyCycle | AverageRequest, |
| controls::PositionDutyCycle | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicVelocityDutyCycle request of the mechanism. |
| DifferentialRequest | Differential PositionDutyCycle request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicVelocityDutyCycle | AverageRequest, |
| controls::VelocityDutyCycle | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicVelocityDutyCycle request of the mechanism. |
| DifferentialRequest | Differential VelocityDutyCycle request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicVelocityTorqueCurrentFOC | AverageRequest, |
| controls::PositionTorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicVelocityTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential PositionTorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicVelocityTorqueCurrentFOC | AverageRequest, |
| controls::TorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicVelocityTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential TorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicVelocityTorqueCurrentFOC | AverageRequest, |
| controls::VelocityTorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicVelocityTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential VelocityTorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicVelocityVoltage | AverageRequest, |
| controls::PositionVoltage | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicVelocityVoltage request of the mechanism. |
| DifferentialRequest | Differential PositionVoltage request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicVelocityVoltage | AverageRequest, |
| controls::VelocityVoltage | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicVelocityVoltage request of the mechanism. |
| DifferentialRequest | Differential VelocityVoltage request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicVelocityVoltage | AverageRequest, |
| controls::VoltageOut | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicVelocityVoltage request of the mechanism. |
| DifferentialRequest | Differential VoltageOut request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicVoltage | AverageRequest, |
| controls::PositionVoltage | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicVoltage request of the mechanism. |
| DifferentialRequest | Differential PositionVoltage request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicVoltage | AverageRequest, |
| controls::VelocityVoltage | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicVoltage request of the mechanism. |
| DifferentialRequest | Differential VelocityVoltage request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::MotionMagicVoltage | AverageRequest, |
| controls::VoltageOut | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average MotionMagicVoltage request of the mechanism. |
| DifferentialRequest | Differential VoltageOut request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::PositionDutyCycle | AverageRequest, |
| controls::DutyCycleOut | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average PositionDutyCycle request of the mechanism. |
| DifferentialRequest | Differential DutyCycleOut request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::PositionDutyCycle | AverageRequest, |
| controls::PositionDutyCycle | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average PositionDutyCycle request of the mechanism. |
| DifferentialRequest | Differential PositionDutyCycle request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::PositionDutyCycle | AverageRequest, |
| controls::VelocityDutyCycle | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average PositionDutyCycle request of the mechanism. |
| DifferentialRequest | Differential VelocityDutyCycle request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::PositionTorqueCurrentFOC | AverageRequest, |
| controls::PositionTorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average PositionTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential PositionTorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::PositionTorqueCurrentFOC | AverageRequest, |
| controls::TorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average PositionTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential TorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::PositionTorqueCurrentFOC | AverageRequest, |
| controls::VelocityTorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average PositionTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential VelocityTorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::PositionVoltage | AverageRequest, |
| controls::PositionVoltage | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average PositionVoltage request of the mechanism. |
| DifferentialRequest | Differential PositionVoltage request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::PositionVoltage | AverageRequest, |
| controls::VelocityVoltage | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average PositionVoltage request of the mechanism. |
| DifferentialRequest | Differential VelocityVoltage request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::PositionVoltage | AverageRequest, |
| controls::VoltageOut | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average PositionVoltage request of the mechanism. |
| DifferentialRequest | Differential VoltageOut request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::TorqueCurrentFOC | AverageRequest, |
| controls::PositionTorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average TorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential PositionTorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::TorqueCurrentFOC | AverageRequest, |
| controls::TorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average TorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential TorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::TorqueCurrentFOC | AverageRequest, |
| controls::VelocityTorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average TorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential VelocityTorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::VelocityDutyCycle | AverageRequest, |
| controls::DutyCycleOut | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average VelocityDutyCYcle request of the mechanism. |
| DifferentialRequest | Differential DutyCycleOut request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::VelocityDutyCycle | AverageRequest, |
| controls::PositionDutyCycle | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average VelocityDutyCYcle request of the mechanism. |
| DifferentialRequest | Differential PositionDutyCycle request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::VelocityDutyCycle | AverageRequest, |
| controls::VelocityDutyCycle | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average VelocityDutyCycle request of the mechanism. |
| DifferentialRequest | Differential VelocityDutyCycle request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::VelocityTorqueCurrentFOC | AverageRequest, |
| controls::PositionTorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average VelocityTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential PositionTorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::VelocityTorqueCurrentFOC | AverageRequest, |
| controls::TorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average VelocityTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential TorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::VelocityTorqueCurrentFOC | AverageRequest, |
| controls::VelocityTorqueCurrentFOC | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average VelocityTorqueCurrentFOC request of the mechanism. |
| DifferentialRequest | Differential VelocityTorqueCurrentFOC request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::VelocityVoltage | AverageRequest, |
| controls::PositionVoltage | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average VelocityVoltage request of the mechanism. |
| DifferentialRequest | Differential PositionVoltage request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::VelocityVoltage | AverageRequest, |
| controls::VelocityVoltage | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average VelocityVoltage request of the mechanism. |
| DifferentialRequest | Differential VelocityVoltage request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::VelocityVoltage | AverageRequest, |
| controls::VoltageOut | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average VelocityVoltage request of the mechanism. |
| DifferentialRequest | Differential VoltageOut request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::VoltageOut | AverageRequest, |
| controls::PositionVoltage | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average VoltageOut request of the mechanism. |
| DifferentialRequest | Differential PositionVoltage request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::VoltageOut | AverageRequest, |
| controls::VelocityVoltage | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average VoltageOut request of the mechanism. |
| DifferentialRequest | Differential VelocityVoltage request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetControl | ( | controls::VoltageOut | AverageRequest, |
| controls::VoltageOut | DifferentialRequest ) |
Sets the control request for this mechanism.
| AverageRequest | Average VoltageOut request of the mechanism. |
| DifferentialRequest | Differential VoltageOut request of the mechanism. Note: The UpdateFreqHz parameter for this control request will be ignored by the control frame. |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetNeutralOut | ( | ) |
Request neutral output of mechanism.
The applied brake type is determined by the NeutralMode configuration of each device.
Since the NeutralMode configuration of devices may not align, users may prefer to use the SetCoastOut() or SetStaticBrake() method.
|
inline |
Sets the position of the mechanism in rotations.
| avgPosition | The average position of the mechanism, in rotations |
| diffPosition | The differential position of the mechanism, in rotations |
| timeoutSeconds | Maximum time to wait up to in seconds |
| ctre::phoenix::StatusCode ctre::phoenix6::mechanisms::DifferentialMechanism< MotorT >::SetStaticBrake | ( | ) |
Applies full neutral-brake on the mechanism by shorting motor leads together.