CTRE Phoenix 6 C++ 24.50.0-alpha-2
|
Class description for the Talon FX integrated motor controller. More...
#include <ctre/phoenix6/core/CoreTalonFX.hpp>
Public Member Functions | |
CoreTalonFX (int deviceId, std::string canbus="") | |
Constructs a new Talon FX motor controller object. More... | |
CoreTalonFX (int deviceId, CANBus canbus) | |
Constructs a new Talon FX motor controller object. More... | |
configs::TalonFXConfigurator & | GetConfigurator () |
Gets the configurator for this TalonFX. More... | |
configs::TalonFXConfigurator const & | GetConfigurator () const |
Gets the configurator for this TalonFX. More... | |
sim::TalonFXSimState & | GetSimState () |
Get the simulation state for this device. More... | |
StatusSignal< int > & | GetVersionMajor (bool refresh=true) |
App Major Version number. More... | |
StatusSignal< int > & | GetVersionMinor (bool refresh=true) |
App Minor Version number. More... | |
StatusSignal< int > & | GetVersionBugfix (bool refresh=true) |
App Bugfix Version number. More... | |
StatusSignal< int > & | GetVersionBuild (bool refresh=true) |
App Build Version number. More... | |
StatusSignal< int > & | GetVersion (bool refresh=true) |
Full Version. More... | |
StatusSignal< int > & | GetFaultField (bool refresh=true) |
Integer representing all faults. More... | |
StatusSignal< int > & | GetStickyFaultField (bool refresh=true) |
Integer representing all sticky faults. More... | |
StatusSignal< units::voltage::volt_t > & | GetMotorVoltage (bool refresh=true) |
The applied (output) motor voltage. More... | |
StatusSignal< signals::ForwardLimitValue > & | GetForwardLimit (bool refresh=true) |
Forward Limit Pin. More... | |
StatusSignal< signals::ReverseLimitValue > & | GetReverseLimit (bool refresh=true) |
Reverse Limit Pin. More... | |
StatusSignal< signals::AppliedRotorPolarityValue > & | GetAppliedRotorPolarity (bool refresh=true) |
The applied rotor polarity as seen from the front of the motor. More... | |
StatusSignal< units::dimensionless::scalar_t > & | GetDutyCycle (bool refresh=true) |
The applied motor duty cycle. More... | |
StatusSignal< units::current::ampere_t > & | GetTorqueCurrent (bool refresh=true) |
Current corresponding to the torque output by the motor. More... | |
StatusSignal< units::current::ampere_t > & | GetStatorCurrent (bool refresh=true) |
Current corresponding to the stator windings. More... | |
StatusSignal< units::current::ampere_t > & | GetSupplyCurrent (bool refresh=true) |
Measured supply side current. More... | |
StatusSignal< units::voltage::volt_t > & | GetSupplyVoltage (bool refresh=true) |
Measured supply voltage to the TalonFX. More... | |
StatusSignal< units::temperature::celsius_t > & | GetDeviceTemp (bool refresh=true) |
Temperature of device. More... | |
StatusSignal< units::temperature::celsius_t > & | GetProcessorTemp (bool refresh=true) |
Temperature of the processor. More... | |
StatusSignal< units::angular_velocity::turns_per_second_t > & | GetRotorVelocity (bool refresh=true) |
Velocity of the motor rotor. More... | |
StatusSignal< units::angle::turn_t > & | GetRotorPosition (bool refresh=true) |
Position of the motor rotor. More... | |
StatusSignal< units::angular_velocity::turns_per_second_t > & | GetVelocity (bool refresh=true) |
Velocity of the device in mechanism rotations per second. More... | |
StatusSignal< units::angle::turn_t > & | GetPosition (bool refresh=true) |
Position of the device in mechanism rotations. More... | |
StatusSignal< units::angular_acceleration::turns_per_second_squared_t > & | GetAcceleration (bool refresh=true) |
Acceleration of the device in mechanism rotations per second². More... | |
StatusSignal< signals::ControlModeValue > & | GetControlMode (bool refresh=true) |
The active control mode of the motor controller. More... | |
StatusSignal< signals::MotionMagicIsRunningValue > & | GetMotionMagicIsRunning (bool refresh=true) |
Check if Motion MagicĀ® is running. More... | |
StatusSignal< signals::DeviceEnableValue > & | GetDeviceEnable (bool refresh=true) |
Indicates if device is actuator enabled. More... | |
StatusSignal< int > & | GetClosedLoopSlot (bool refresh=true) |
Closed loop slot in use. More... | |
StatusSignal< signals::DifferentialControlModeValue > & | GetDifferentialControlMode (bool refresh=true) |
The active control mode of the differential controller. More... | |
StatusSignal< units::angular_velocity::turns_per_second_t > & | GetDifferentialAverageVelocity (bool refresh=true) |
Average component of the differential velocity of device. More... | |
StatusSignal< units::angle::turn_t > & | GetDifferentialAveragePosition (bool refresh=true) |
Average component of the differential position of device. More... | |
StatusSignal< units::angular_velocity::turns_per_second_t > & | GetDifferentialDifferenceVelocity (bool refresh=true) |
Difference component of the differential velocity of device. More... | |
StatusSignal< units::angle::turn_t > & | GetDifferentialDifferencePosition (bool refresh=true) |
Difference component of the differential position of device. More... | |
StatusSignal< int > & | GetDifferentialClosedLoopSlot (bool refresh=true) |
Differential Closed loop slot in use. More... | |
StatusSignal< signals::BridgeOutputValue > & | GetBridgeOutput (bool refresh=true) |
The applied output of the bridge. More... | |
StatusSignal< bool > & | GetIsProLicensed (bool refresh=true) |
Whether the device is Phoenix Pro licensed. More... | |
StatusSignal< units::temperature::celsius_t > & | GetAncillaryDeviceTemp (bool refresh=true) |
Temperature of device from second sensor. More... | |
StatusSignal< signals::MotorTypeValue > & | GetMotorType (bool refresh=true) |
The type of motor attached to the Talon FX. More... | |
StatusSignal< signals::MotorOutputStatusValue > & | GetMotorOutputStatus (bool refresh=true) |
Assess the status of the motor output with respect to load and supply. More... | |
StatusSignal< bool > & | GetFault_Hardware (bool refresh=true) |
Hardware fault occurred. More... | |
StatusSignal< bool > & | GetStickyFault_Hardware (bool refresh=true) |
Hardware fault occurred. More... | |
StatusSignal< bool > & | GetFault_ProcTemp (bool refresh=true) |
Processor temperature exceeded limit. More... | |
StatusSignal< bool > & | GetStickyFault_ProcTemp (bool refresh=true) |
Processor temperature exceeded limit. More... | |
StatusSignal< bool > & | GetFault_DeviceTemp (bool refresh=true) |
Device temperature exceeded limit. More... | |
StatusSignal< bool > & | GetStickyFault_DeviceTemp (bool refresh=true) |
Device temperature exceeded limit. More... | |
StatusSignal< bool > & | GetFault_Undervoltage (bool refresh=true) |
Device supply voltage dropped to near brownout levels. More... | |
StatusSignal< bool > & | GetStickyFault_Undervoltage (bool refresh=true) |
Device supply voltage dropped to near brownout levels. More... | |
StatusSignal< bool > & | GetFault_BootDuringEnable (bool refresh=true) |
Device boot while detecting the enable signal. More... | |
StatusSignal< bool > & | GetStickyFault_BootDuringEnable (bool refresh=true) |
Device boot while detecting the enable signal. More... | |
StatusSignal< bool > & | GetFault_UnlicensedFeatureInUse (bool refresh=true) |
An unlicensed feature is in use, device may not behave as expected. More... | |
StatusSignal< bool > & | GetStickyFault_UnlicensedFeatureInUse (bool refresh=true) |
An unlicensed feature is in use, device may not behave as expected. More... | |
StatusSignal< bool > & | GetFault_BridgeBrownout (bool refresh=true) |
Bridge was disabled most likely due to supply voltage dropping too low. More... | |
StatusSignal< bool > & | GetStickyFault_BridgeBrownout (bool refresh=true) |
Bridge was disabled most likely due to supply voltage dropping too low. More... | |
StatusSignal< bool > & | GetFault_RemoteSensorReset (bool refresh=true) |
The remote sensor has reset. More... | |
StatusSignal< bool > & | GetStickyFault_RemoteSensorReset (bool refresh=true) |
The remote sensor has reset. More... | |
StatusSignal< bool > & | GetFault_MissingDifferentialFX (bool refresh=true) |
The remote Talon FX used for differential control is not present on CAN Bus. More... | |
StatusSignal< bool > & | GetStickyFault_MissingDifferentialFX (bool refresh=true) |
The remote Talon FX used for differential control is not present on CAN Bus. More... | |
StatusSignal< bool > & | GetFault_RemoteSensorPosOverflow (bool refresh=true) |
The remote sensor position has overflowed. More... | |
StatusSignal< bool > & | GetStickyFault_RemoteSensorPosOverflow (bool refresh=true) |
The remote sensor position has overflowed. More... | |
StatusSignal< bool > & | GetFault_OverSupplyV (bool refresh=true) |
Supply Voltage has exceeded the maximum voltage rating of device. More... | |
StatusSignal< bool > & | GetStickyFault_OverSupplyV (bool refresh=true) |
Supply Voltage has exceeded the maximum voltage rating of device. More... | |
StatusSignal< bool > & | GetFault_UnstableSupplyV (bool refresh=true) |
Supply Voltage is unstable. More... | |
StatusSignal< bool > & | GetStickyFault_UnstableSupplyV (bool refresh=true) |
Supply Voltage is unstable. More... | |
StatusSignal< bool > & | GetFault_ReverseHardLimit (bool refresh=true) |
Reverse limit switch has been asserted. More... | |
StatusSignal< bool > & | GetStickyFault_ReverseHardLimit (bool refresh=true) |
Reverse limit switch has been asserted. More... | |
StatusSignal< bool > & | GetFault_ForwardHardLimit (bool refresh=true) |
Forward limit switch has been asserted. More... | |
StatusSignal< bool > & | GetStickyFault_ForwardHardLimit (bool refresh=true) |
Forward limit switch has been asserted. More... | |
StatusSignal< bool > & | GetFault_ReverseSoftLimit (bool refresh=true) |
Reverse soft limit has been asserted. More... | |
StatusSignal< bool > & | GetStickyFault_ReverseSoftLimit (bool refresh=true) |
Reverse soft limit has been asserted. More... | |
StatusSignal< bool > & | GetFault_ForwardSoftLimit (bool refresh=true) |
Forward soft limit has been asserted. More... | |
StatusSignal< bool > & | GetStickyFault_ForwardSoftLimit (bool refresh=true) |
Forward soft limit has been asserted. More... | |
StatusSignal< bool > & | GetFault_MissingSoftLimitRemote (bool refresh=true) |
The remote soft limit device is not present on CAN Bus. More... | |
StatusSignal< bool > & | GetStickyFault_MissingSoftLimitRemote (bool refresh=true) |
The remote soft limit device is not present on CAN Bus. More... | |
StatusSignal< bool > & | GetFault_MissingHardLimitRemote (bool refresh=true) |
The remote limit switch device is not present on CAN Bus. More... | |
StatusSignal< bool > & | GetStickyFault_MissingHardLimitRemote (bool refresh=true) |
The remote limit switch device is not present on CAN Bus. More... | |
StatusSignal< bool > & | GetFault_RemoteSensorDataInvalid (bool refresh=true) |
The remote sensor's data is no longer trusted. More... | |
StatusSignal< bool > & | GetStickyFault_RemoteSensorDataInvalid (bool refresh=true) |
The remote sensor's data is no longer trusted. More... | |
StatusSignal< bool > & | GetFault_FusedSensorOutOfSync (bool refresh=true) |
The remote sensor used for fusion has fallen out of sync to the local sensor. More... | |
StatusSignal< bool > & | GetStickyFault_FusedSensorOutOfSync (bool refresh=true) |
The remote sensor used for fusion has fallen out of sync to the local sensor. More... | |
StatusSignal< bool > & | GetFault_StatorCurrLimit (bool refresh=true) |
Stator current limit occured. More... | |
StatusSignal< bool > & | GetStickyFault_StatorCurrLimit (bool refresh=true) |
Stator current limit occured. More... | |
StatusSignal< bool > & | GetFault_SupplyCurrLimit (bool refresh=true) |
Supply current limit occured. More... | |
StatusSignal< bool > & | GetStickyFault_SupplyCurrLimit (bool refresh=true) |
Supply current limit occured. More... | |
StatusSignal< bool > & | GetFault_UsingFusedCANcoderWhileUnlicensed (bool refresh=true) |
Using Fused CANcoder feature while unlicensed. More... | |
StatusSignal< bool > & | GetStickyFault_UsingFusedCANcoderWhileUnlicensed (bool refresh=true) |
Using Fused CANcoder feature while unlicensed. More... | |
StatusSignal< bool > & | GetFault_StaticBrakeDisabled (bool refresh=true) |
Static brake was momentarily disabled due to excessive braking current while disabled. More... | |
StatusSignal< bool > & | GetStickyFault_StaticBrakeDisabled (bool refresh=true) |
Static brake was momentarily disabled due to excessive braking current while disabled. More... | |
StatusSignal< double > & | GetClosedLoopProportionalOutput (bool refresh=true) |
Closed loop proportional component. More... | |
StatusSignal< double > & | GetClosedLoopIntegratedOutput (bool refresh=true) |
Closed loop integrated component. More... | |
StatusSignal< double > & | GetClosedLoopFeedForward (bool refresh=true) |
Feedforward passed by the user. More... | |
StatusSignal< double > & | GetClosedLoopDerivativeOutput (bool refresh=true) |
Closed loop derivative component. More... | |
StatusSignal< double > & | GetClosedLoopOutput (bool refresh=true) |
Closed loop total output. More... | |
StatusSignal< double > & | GetClosedLoopReference (bool refresh=true) |
Value that the closed loop is targeting. More... | |
StatusSignal< double > & | GetClosedLoopReferenceSlope (bool refresh=true) |
Derivative of the target that the closed loop is targeting. More... | |
StatusSignal< double > & | GetClosedLoopError (bool refresh=true) |
The difference between target reference and current measurement. More... | |
StatusSignal< double > & | GetDifferentialOutput (bool refresh=true) |
The calculated motor output for differential followers. More... | |
StatusSignal< double > & | GetDifferentialClosedLoopProportionalOutput (bool refresh=true) |
Differential closed loop proportional component. More... | |
StatusSignal< double > & | GetDifferentialClosedLoopIntegratedOutput (bool refresh=true) |
Differential closed loop integrated component. More... | |
StatusSignal< double > & | GetDifferentialClosedLoopFeedForward (bool refresh=true) |
Differential Feedforward passed by the user. More... | |
StatusSignal< double > & | GetDifferentialClosedLoopDerivativeOutput (bool refresh=true) |
Differential closed loop derivative component. More... | |
StatusSignal< double > & | GetDifferentialClosedLoopOutput (bool refresh=true) |
Differential closed loop total output. More... | |
StatusSignal< double > & | GetDifferentialClosedLoopReference (bool refresh=true) |
Value that the differential closed loop is targeting. More... | |
StatusSignal< double > & | GetDifferentialClosedLoopReferenceSlope (bool refresh=true) |
Derivative of the target that the differential closed loop is targeting. More... | |
StatusSignal< double > & | GetDifferentialClosedLoopError (bool refresh=true) |
The difference between target differential reference and current measurement. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DutyCycleOut &request) |
Request a specified motor duty cycle. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DutyCycleOut &&request) |
Request a specified motor duty cycle. More... | |
ctre::phoenix::StatusCode | SetControl (controls::TorqueCurrentFOC &request) |
Request a specified motor current (field oriented control). More... | |
ctre::phoenix::StatusCode | SetControl (controls::TorqueCurrentFOC &&request) |
Request a specified motor current (field oriented control). More... | |
ctre::phoenix::StatusCode | SetControl (controls::VoltageOut &request) |
Request a specified voltage. More... | |
ctre::phoenix::StatusCode | SetControl (controls::VoltageOut &&request) |
Request a specified voltage. More... | |
ctre::phoenix::StatusCode | SetControl (controls::PositionDutyCycle &request) |
Request PID to target position with duty cycle feedforward. More... | |
ctre::phoenix::StatusCode | SetControl (controls::PositionDutyCycle &&request) |
Request PID to target position with duty cycle feedforward. More... | |
ctre::phoenix::StatusCode | SetControl (controls::PositionVoltage &request) |
Request PID to target position with voltage feedforward. More... | |
ctre::phoenix::StatusCode | SetControl (controls::PositionVoltage &&request) |
Request PID to target position with voltage feedforward. More... | |
ctre::phoenix::StatusCode | SetControl (controls::PositionTorqueCurrentFOC &request) |
Request PID to target position with torque current feedforward. More... | |
ctre::phoenix::StatusCode | SetControl (controls::PositionTorqueCurrentFOC &&request) |
Request PID to target position with torque current feedforward. More... | |
ctre::phoenix::StatusCode | SetControl (controls::VelocityDutyCycle &request) |
Request PID to target velocity with duty cycle feedforward. More... | |
ctre::phoenix::StatusCode | SetControl (controls::VelocityDutyCycle &&request) |
Request PID to target velocity with duty cycle feedforward. More... | |
ctre::phoenix::StatusCode | SetControl (controls::VelocityVoltage &request) |
Request PID to target velocity with voltage feedforward. More... | |
ctre::phoenix::StatusCode | SetControl (controls::VelocityVoltage &&request) |
Request PID to target velocity with voltage feedforward. More... | |
ctre::phoenix::StatusCode | SetControl (controls::VelocityTorqueCurrentFOC &request) |
Request PID to target velocity with torque current feedforward. More... | |
ctre::phoenix::StatusCode | SetControl (controls::VelocityTorqueCurrentFOC &&request) |
Request PID to target velocity with torque current feedforward. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicDutyCycle &request) |
Requests Motion MagicĀ® to target a final position using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicDutyCycle &&request) |
Requests Motion MagicĀ® to target a final position using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVoltage &request) |
Requests Motion MagicĀ® to target a final position using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVoltage &&request) |
Requests Motion MagicĀ® to target a final position using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicTorqueCurrentFOC &request) |
Requests Motion MagicĀ® to target a final position using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicTorqueCurrentFOC &&request) |
Requests Motion MagicĀ® to target a final position using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialDutyCycle &request) |
Request a specified motor duty cycle with a differential position closed-loop. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialDutyCycle &&request) |
Request a specified motor duty cycle with a differential position closed-loop. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialVoltage &request) |
Request a specified voltage with a differential position closed-loop. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialVoltage &&request) |
Request a specified voltage with a differential position closed-loop. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialPositionDutyCycle &request) |
Request PID to target position with a differential position setpoint. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialPositionDutyCycle &&request) |
Request PID to target position with a differential position setpoint. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialPositionVoltage &request) |
Request PID to target position with a differential position setpoint. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialPositionVoltage &&request) |
Request PID to target position with a differential position setpoint. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialVelocityDutyCycle &request) |
Request PID to target velocity with a differential position setpoint. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialVelocityDutyCycle &&request) |
Request PID to target velocity with a differential position setpoint. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialVelocityVoltage &request) |
Request PID to target velocity with a differential position setpoint. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialVelocityVoltage &&request) |
Request PID to target velocity with a differential position setpoint. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialMotionMagicDutyCycle &request) |
Requests Motion MagicĀ® to target a final position using a motion profile, and PID to a differential position setpoint. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialMotionMagicDutyCycle &&request) |
Requests Motion MagicĀ® to target a final position using a motion profile, and PID to a differential position setpoint. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialMotionMagicVoltage &request) |
Requests Motion MagicĀ® to target a final position using a motion profile, and PID to a differential position setpoint. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialMotionMagicVoltage &&request) |
Requests Motion MagicĀ® to target a final position using a motion profile, and PID to a differential position setpoint. More... | |
ctre::phoenix::StatusCode | SetControl (controls::Follower &request) |
Follow the motor output of another Talon. More... | |
ctre::phoenix::StatusCode | SetControl (controls::Follower &&request) |
Follow the motor output of another Talon. More... | |
ctre::phoenix::StatusCode | SetControl (controls::StrictFollower &request) |
Follow the motor output of another Talon while ignoring the master's invert setting. More... | |
ctre::phoenix::StatusCode | SetControl (controls::StrictFollower &&request) |
Follow the motor output of another Talon while ignoring the master's invert setting. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialFollower &request) |
Follow the differential motor output of another Talon. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialFollower &&request) |
Follow the differential motor output of another Talon. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialStrictFollower &request) |
Follow the differential motor output of another Talon while ignoring the master's invert setting. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DifferentialStrictFollower &&request) |
Follow the differential motor output of another Talon while ignoring the master's invert setting. More... | |
ctre::phoenix::StatusCode | SetControl (controls::NeutralOut &request) |
Request neutral output of actuator. More... | |
ctre::phoenix::StatusCode | SetControl (controls::NeutralOut &&request) |
Request neutral output of actuator. More... | |
ctre::phoenix::StatusCode | SetControl (controls::CoastOut &request) |
Request coast neutral output of actuator. More... | |
ctre::phoenix::StatusCode | SetControl (controls::CoastOut &&request) |
Request coast neutral output of actuator. More... | |
ctre::phoenix::StatusCode | SetControl (controls::StaticBrake &request) |
Applies full neutral-brake by shorting motor leads together. More... | |
ctre::phoenix::StatusCode | SetControl (controls::StaticBrake &&request) |
Applies full neutral-brake by shorting motor leads together. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MusicTone &request) |
Plays a single tone at the user specified frequency. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MusicTone &&request) |
Plays a single tone at the user specified frequency. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityDutyCycle &request) |
Requests Motion MagicĀ® to target a final velocity using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityDutyCycle &&request) |
Requests Motion MagicĀ® to target a final velocity using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityTorqueCurrentFOC &request) |
Requests Motion MagicĀ® to target a final velocity using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityTorqueCurrentFOC &&request) |
Requests Motion MagicĀ® to target a final velocity using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityVoltage &request) |
Requests Motion MagicĀ® to target a final velocity using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicVelocityVoltage &&request) |
Requests Motion MagicĀ® to target a final velocity using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoDutyCycle &request) |
Requests Motion MagicĀ® to target a final position using an exponential motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoDutyCycle &&request) |
Requests Motion MagicĀ® to target a final position using an exponential motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoVoltage &request) |
Requests Motion MagicĀ® to target a final position using an exponential motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoVoltage &&request) |
Requests Motion MagicĀ® to target a final position using an exponential motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoTorqueCurrentFOC &request) |
Requests Motion MagicĀ® to target a final position using an exponential motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::MotionMagicExpoTorqueCurrentFOC &&request) |
Requests Motion MagicĀ® to target a final position using an exponential motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DynamicMotionMagicDutyCycle &request) |
Requests Motion MagicĀ® to target a final position using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DynamicMotionMagicDutyCycle &&request) |
Requests Motion MagicĀ® to target a final position using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DynamicMotionMagicVoltage &request) |
Requests Motion MagicĀ® to target a final position using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DynamicMotionMagicVoltage &&request) |
Requests Motion MagicĀ® to target a final position using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DynamicMotionMagicTorqueCurrentFOC &request) |
Requests Motion MagicĀ® to target a final position using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::DynamicMotionMagicTorqueCurrentFOC &&request) |
Requests Motion MagicĀ® to target a final position using a motion profile. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_DutyCycleOut_Position &request) |
Differential control with duty cycle average target and position difference target. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_DutyCycleOut_Position &&request) |
Differential control with duty cycle average target and position difference target. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_PositionDutyCycle_Position &request) |
Differential control with position average target and position difference target using dutycycle control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_PositionDutyCycle_Position &&request) |
Differential control with position average target and position difference target using dutycycle control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VelocityDutyCycle_Position &request) |
Differential control with velocity average target and position difference target using dutycycle control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VelocityDutyCycle_Position &&request) |
Differential control with velocity average target and position difference target using dutycycle control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_MotionMagicDutyCycle_Position &request) |
Differential control with Motion MagicĀ® average target and position difference target using dutycycle control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_MotionMagicDutyCycle_Position &&request) |
Differential control with Motion MagicĀ® average target and position difference target using dutycycle control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_DutyCycleOut_Velocity &request) |
Differential control with duty cycle average target and velocity difference target. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_DutyCycleOut_Velocity &&request) |
Differential control with duty cycle average target and velocity difference target. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_PositionDutyCycle_Velocity &request) |
Differential control with position average target and velocity difference target using dutycycle control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_PositionDutyCycle_Velocity &&request) |
Differential control with position average target and velocity difference target using dutycycle control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VelocityDutyCycle_Velocity &request) |
Differential control with velocity average target and velocity difference target using dutycycle control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VelocityDutyCycle_Velocity &&request) |
Differential control with velocity average target and velocity difference target using dutycycle control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_MotionMagicDutyCycle_Velocity &request) |
Differential control with Motion MagicĀ® average target and velocity difference target using dutycycle control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_MotionMagicDutyCycle_Velocity &&request) |
Differential control with Motion MagicĀ® average target and velocity difference target using dutycycle control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VoltageOut_Position &request) |
Differential control with voltage average target and position difference target. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VoltageOut_Position &&request) |
Differential control with voltage average target and position difference target. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_PositionVoltage_Position &request) |
Differential control with position average target and position difference target using voltage control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_PositionVoltage_Position &&request) |
Differential control with position average target and position difference target using voltage control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VelocityVoltage_Position &request) |
Differential control with velocity average target and position difference target using voltage control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VelocityVoltage_Position &&request) |
Differential control with velocity average target and position difference target using voltage control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_MotionMagicVoltage_Position &request) |
Differential control with Motion MagicĀ® average target and position difference target using voltage control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_MotionMagicVoltage_Position &&request) |
Differential control with Motion MagicĀ® average target and position difference target using voltage control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VoltageOut_Velocity &request) |
Differential control with voltage average target and velocity difference target. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VoltageOut_Velocity &&request) |
Differential control with voltage average target and velocity difference target. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_PositionVoltage_Velocity &request) |
Differential control with position average target and velocity difference target using voltage control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_PositionVoltage_Velocity &&request) |
Differential control with position average target and velocity difference target using voltage control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VelocityVoltage_Velocity &request) |
Differential control with velocity average target and velocity difference target using voltage control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VelocityVoltage_Velocity &&request) |
Differential control with velocity average target and velocity difference target using voltage control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_MotionMagicVoltage_Velocity &request) |
Differential control with Motion MagicĀ® average target and velocity difference target using voltage control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_MotionMagicVoltage_Velocity &&request) |
Differential control with Motion MagicĀ® average target and velocity difference target using voltage control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_TorqueCurrentFOC_Position &request) |
Differential control with torque current average target and position difference target. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_TorqueCurrentFOC_Position &&request) |
Differential control with torque current average target and position difference target. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_PositionTorqueCurrentFOC_Position &request) |
Differential control with position average target and position difference target using torque current control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_PositionTorqueCurrentFOC_Position &&request) |
Differential control with position average target and position difference target using torque current control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VelocityTorqueCurrentFOC_Position &request) |
Differential control with velocity average target and position difference target using torque current control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VelocityTorqueCurrentFOC_Position &&request) |
Differential control with velocity average target and position difference target using torque current control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_MotionMagicTorqueCurrentFOC_Position &request) |
Differential control with Motion MagicĀ® average target and position difference target using torque current control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_MotionMagicTorqueCurrentFOC_Position &&request) |
Differential control with Motion MagicĀ® average target and position difference target using torque current control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_TorqueCurrentFOC_Velocity &request) |
Differential control with torque current average target and velocity difference target. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_TorqueCurrentFOC_Velocity &&request) |
Differential control with torque current average target and velocity difference target. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_PositionTorqueCurrentFOC_Velocity &request) |
Differential control with position average target and velocity difference target using torque current control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_PositionTorqueCurrentFOC_Velocity &&request) |
Differential control with position average target and velocity difference target using torque current control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VelocityTorqueCurrentFOC_Velocity &request) |
Differential control with velocity average target and velocity difference target using torque current control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_VelocityTorqueCurrentFOC_Velocity &&request) |
Differential control with velocity average target and velocity difference target using torque current control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_MotionMagicTorqueCurrentFOC_Velocity &request) |
Differential control with Motion MagicĀ® average target and velocity difference target using torque current control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::compound::Diff_MotionMagicTorqueCurrentFOC_Velocity &&request) |
Differential control with Motion MagicĀ® average target and velocity difference target using torque current control. More... | |
ctre::phoenix::StatusCode | SetControl (controls::ControlRequest &request) |
Control motor with generic control request object. More... | |
ctre::phoenix::StatusCode | SetControl (controls::ControlRequest &&request) |
Control motor with generic control request object. More... | |
ctre::phoenix::StatusCode | SetPosition (units::angle::turn_t newValue, units::time::second_t timeoutSeconds) |
Sets the mechanism position of the device in mechanism rotations. More... | |
ctre::phoenix::StatusCode | SetPosition (units::angle::turn_t newValue) |
Sets the mechanism position of the device in mechanism rotations. More... | |
ctre::phoenix::StatusCode | ClearStickyFaults (units::time::second_t timeoutSeconds) |
Clear the sticky faults in the device. More... | |
ctre::phoenix::StatusCode | ClearStickyFaults () |
Clear the sticky faults in the device. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_Hardware (units::time::second_t timeoutSeconds) |
Clear sticky fault: Hardware fault occurred. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_Hardware () |
Clear sticky fault: Hardware fault occurred. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_ProcTemp (units::time::second_t timeoutSeconds) |
Clear sticky fault: Processor temperature exceeded limit. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_ProcTemp () |
Clear sticky fault: Processor temperature exceeded limit. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_DeviceTemp (units::time::second_t timeoutSeconds) |
Clear sticky fault: Device temperature exceeded limit. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_DeviceTemp () |
Clear sticky fault: Device temperature exceeded limit. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_Undervoltage (units::time::second_t timeoutSeconds) |
Clear sticky fault: Device supply voltage dropped to near brownout levels. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_Undervoltage () |
Clear sticky fault: Device supply voltage dropped to near brownout levels. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_BootDuringEnable (units::time::second_t timeoutSeconds) |
Clear sticky fault: Device boot while detecting the enable signal. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_BootDuringEnable () |
Clear sticky fault: Device boot while detecting the enable signal. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_BridgeBrownout (units::time::second_t timeoutSeconds) |
Clear sticky fault: Bridge was disabled most likely due to supply voltage dropping too low. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_BridgeBrownout () |
Clear sticky fault: Bridge was disabled most likely due to supply voltage dropping too low. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_RemoteSensorReset (units::time::second_t timeoutSeconds) |
Clear sticky fault: The remote sensor has reset. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_RemoteSensorReset () |
Clear sticky fault: The remote sensor has reset. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_MissingDifferentialFX (units::time::second_t timeoutSeconds) |
Clear sticky fault: The remote Talon FX used for differential control is not present on CAN Bus. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_MissingDifferentialFX () |
Clear sticky fault: The remote Talon FX used for differential control is not present on CAN Bus. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_RemoteSensorPosOverflow (units::time::second_t timeoutSeconds) |
Clear sticky fault: The remote sensor position has overflowed. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_RemoteSensorPosOverflow () |
Clear sticky fault: The remote sensor position has overflowed. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_OverSupplyV (units::time::second_t timeoutSeconds) |
Clear sticky fault: Supply Voltage has exceeded the maximum voltage rating of device. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_OverSupplyV () |
Clear sticky fault: Supply Voltage has exceeded the maximum voltage rating of device. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_UnstableSupplyV (units::time::second_t timeoutSeconds) |
Clear sticky fault: Supply Voltage is unstable. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_UnstableSupplyV () |
Clear sticky fault: Supply Voltage is unstable. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_ReverseHardLimit (units::time::second_t timeoutSeconds) |
Clear sticky fault: Reverse limit switch has been asserted. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_ReverseHardLimit () |
Clear sticky fault: Reverse limit switch has been asserted. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_ForwardHardLimit (units::time::second_t timeoutSeconds) |
Clear sticky fault: Forward limit switch has been asserted. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_ForwardHardLimit () |
Clear sticky fault: Forward limit switch has been asserted. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_ReverseSoftLimit (units::time::second_t timeoutSeconds) |
Clear sticky fault: Reverse soft limit has been asserted. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_ReverseSoftLimit () |
Clear sticky fault: Reverse soft limit has been asserted. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_ForwardSoftLimit (units::time::second_t timeoutSeconds) |
Clear sticky fault: Forward soft limit has been asserted. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_ForwardSoftLimit () |
Clear sticky fault: Forward soft limit has been asserted. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_MissingSoftLimitRemote (units::time::second_t timeoutSeconds) |
Clear sticky fault: The remote soft limit device is not present on CAN Bus. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_MissingSoftLimitRemote () |
Clear sticky fault: The remote soft limit device is not present on CAN Bus. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_MissingHardLimitRemote (units::time::second_t timeoutSeconds) |
Clear sticky fault: The remote limit switch device is not present on CAN Bus. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_MissingHardLimitRemote () |
Clear sticky fault: The remote limit switch device is not present on CAN Bus. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_RemoteSensorDataInvalid (units::time::second_t timeoutSeconds) |
Clear sticky fault: The remote sensor's data is no longer trusted. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_RemoteSensorDataInvalid () |
Clear sticky fault: The remote sensor's data is no longer trusted. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_FusedSensorOutOfSync (units::time::second_t timeoutSeconds) |
Clear sticky fault: The remote sensor used for fusion has fallen out of sync to the local sensor. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_FusedSensorOutOfSync () |
Clear sticky fault: The remote sensor used for fusion has fallen out of sync to the local sensor. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_StatorCurrLimit (units::time::second_t timeoutSeconds) |
Clear sticky fault: Stator current limit occured. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_StatorCurrLimit () |
Clear sticky fault: Stator current limit occured. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_SupplyCurrLimit (units::time::second_t timeoutSeconds) |
Clear sticky fault: Supply current limit occured. More... | |
ctre::phoenix::StatusCode | ClearStickyFault_SupplyCurrLimit () |
Clear sticky fault: Supply current limit occured. More... | |
![]() | |
ParentDevice (int deviceID, std::string model, std::string canbus) | |
virtual | ~ParentDevice ()=default |
ParentDevice (ParentDevice const &)=delete | |
ParentDevice & | operator= (ParentDevice const &)=delete |
int | GetDeviceID () const |
const std::string & | GetNetwork () const |
uint64_t | GetDeviceHash () const |
Gets a number unique for this device's hardware type and ID. More... | |
std::shared_ptr< const controls::ControlRequest > | GetAppliedControl () const |
Get the latest applied control. More... | |
std::shared_ptr< controls::ControlRequest > | GetAppliedControl () |
Get the latest applied control. More... | |
bool | HasResetOccurred () |
std::function< bool()> | GetResetOccurredChecker () const |
StatusSignal< double > & | GetGenericSignal (uint32_t signal, bool refresh=true) |
This is a reserved routine for internal testing. More... | |
ctre::phoenix::StatusCode | OptimizeBusUtilization (units::frequency::hertz_t optimizedFreqHz=0_Hz, units::time::second_t timeoutSeconds=100_ms) |
Optimizes the device's bus utilization by reducing the update frequencies of its status signals. More... | |
Additional Inherited Members | |
![]() | |
template<typename... Devices, typename = std::enable_if_t<is_all_device_v<Devices...>>> | |
static ctre::phoenix::StatusCode | OptimizeBusUtilizationForAll (Devices &... devices) |
Optimizes the bus utilization of the provided devices by reducing the update frequencies of their status signals. More... | |
static ctre::phoenix::StatusCode | OptimizeBusUtilizationForAll (const std::vector< ParentDevice * > &devices) |
Optimizes the bus utilization of the provided devices by reducing the update frequencies of their status signals. More... | |
template<size_t N> | |
static ctre::phoenix::StatusCode | OptimizeBusUtilizationForAll (const std::array< ParentDevice *, N > &devices) |
Optimizes the bus utilization of the provided devices by reducing the update frequencies of their status signals. More... | |
template<typename... Devices, typename = std::enable_if_t<is_all_device_v<Devices...>>> | |
static ctre::phoenix::StatusCode | OptimizeBusUtilizationForAll (units::frequency::hertz_t optimizedFreqHz, Devices &... devices) |
Optimizes the bus utilization of the provided devices by reducing the update frequencies of their status signals. More... | |
static ctre::phoenix::StatusCode | OptimizeBusUtilizationForAll (units::frequency::hertz_t optimizedFreqHz, const std::vector< ParentDevice * > &devices) |
Optimizes the bus utilization of the provided devices by reducing the update frequencies of their status signals. More... | |
template<size_t N> | |
static ctre::phoenix::StatusCode | OptimizeBusUtilizationForAll (units::frequency::hertz_t optimizedFreqHz, const std::array< ParentDevice *, N > &devices) |
Optimizes the bus utilization of the provided devices by reducing the update frequencies of their status signals. More... | |
![]() | |
virtual ctre::phoenix::StatusCode | SetControlPrivate (controls::ControlRequest &request) |
template<typename T > | |
StatusSignal< T > & | LookupStatusSignal (uint16_t spn, std::string signalName, bool reportOnConstruction, bool refresh) |
template<typename T > | |
StatusSignal< T > & | LookupStatusSignal (uint16_t spn, uint16_t mapper_iter, std::function< std::map< int, StatusSignal< T > >()> map_filler, std::string signalName, bool reportOnConstruction, bool refresh) |
template<typename T , typename U > | |
StatusSignal< T > | LookupDimensionlessStatusSignal (uint16_t spn, std::string signalName, bool refresh) |
Returns a unitless version of the StatusSignal by value. More... | |
![]() | |
DeviceIdentifier | deviceIdentifier |
![]() | |
static controls::EmptyControl | _emptyControl {} |
template<typename... Devices> | |
static constexpr bool | is_all_device_v = is_all_device<Devices...>::value |
Whether all types passed in are subclasses of ParentDevice. More... | |
Class description for the Talon FX integrated motor controller.
ctre::phoenix6::hardware::core::CoreTalonFX::CoreTalonFX | ( | int | deviceId, |
std::string | canbus = "" |
||
) |
Constructs a new Talon FX motor controller object.
deviceId | ID of the device, as configured in Phoenix Tuner. |
canbus | Name of the CAN bus this device is on. Possible CAN bus strings are:
|
|
inline |
Constructs a new Talon FX motor controller object.
deviceId | ID of the device, as configured in Phoenix Tuner. |
canbus | The CAN bus this device is on. |
|
inline |
Clear sticky fault: Device boot while detecting the enable signal.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Device boot while detecting the enable signal.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Bridge was disabled most likely due to supply voltage dropping too low.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Bridge was disabled most likely due to supply voltage dropping too low.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Device temperature exceeded limit.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Device temperature exceeded limit.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Forward limit switch has been asserted.
Output is set to neutral.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Forward limit switch has been asserted.
Output is set to neutral.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Forward soft limit has been asserted.
Output is set to neutral.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Forward soft limit has been asserted.
Output is set to neutral.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: The remote sensor used for fusion has fallen out of sync to the local sensor.
A re-synchronization has occurred, which may cause a discontinuity. This typically happens if there is significant slop in the mechanism, or if the RotorToSensorRatio configuration parameter is incorrect.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: The remote sensor used for fusion has fallen out of sync to the local sensor.
A re-synchronization has occurred, which may cause a discontinuity. This typically happens if there is significant slop in the mechanism, or if the RotorToSensorRatio configuration parameter is incorrect.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Hardware fault occurred.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Hardware fault occurred.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: The remote Talon FX used for differential control is not present on CAN Bus.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: The remote Talon FX used for differential control is not present on CAN Bus.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: The remote limit switch device is not present on CAN Bus.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: The remote limit switch device is not present on CAN Bus.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: The remote soft limit device is not present on CAN Bus.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: The remote soft limit device is not present on CAN Bus.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Supply Voltage has exceeded the maximum voltage rating of device.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Supply Voltage has exceeded the maximum voltage rating of device.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Processor temperature exceeded limit.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Processor temperature exceeded limit.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: The remote sensor's data is no longer trusted.
This can happen if the remote sensor disappears from the CAN bus or if the remote sensor indicates its data is no longer valid, such as when a CANcoder's magnet strength falls into the "red" range.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: The remote sensor's data is no longer trusted.
This can happen if the remote sensor disappears from the CAN bus or if the remote sensor indicates its data is no longer valid, such as when a CANcoder's magnet strength falls into the "red" range.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: The remote sensor position has overflowed.
Because of the nature of remote sensors, it is possible for the remote sensor position to overflow beyond what is supported by the status signal frame. However, this is rare and cannot occur over the course of an FRC match under normal use.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: The remote sensor position has overflowed.
Because of the nature of remote sensors, it is possible for the remote sensor position to overflow beyond what is supported by the status signal frame. However, this is rare and cannot occur over the course of an FRC match under normal use.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: The remote sensor has reset.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: The remote sensor has reset.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Reverse limit switch has been asserted.
Output is set to neutral.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Reverse limit switch has been asserted.
Output is set to neutral.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Reverse soft limit has been asserted.
Output is set to neutral.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Reverse soft limit has been asserted.
Output is set to neutral.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Stator current limit occured.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Stator current limit occured.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Supply current limit occured.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Supply current limit occured.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Device supply voltage dropped to near brownout levels.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Device supply voltage dropped to near brownout levels.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear sticky fault: Supply Voltage is unstable.
Ensure you are using a battery and current limited power supply.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear sticky fault: Supply Voltage is unstable.
Ensure you are using a battery and current limited power supply.
timeoutSeconds | Maximum time to wait up to in seconds. |
|
inline |
Clear the sticky faults in the device.
This typically has no impact on the device functionality. Instead, it just clears telemetry faults that are accessible via API and Tuner Self-Test.
This will wait up to 0.100 seconds (100ms) by default.
|
inline |
Clear the sticky faults in the device.
This typically has no impact on the device functionality. Instead, it just clears telemetry faults that are accessible via API and Tuner Self-Test.
timeoutSeconds | Maximum time to wait up to in seconds. |
StatusSignal< units::angular_acceleration::turns_per_second_squared_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetAcceleration | ( | bool | refresh = true | ) |
Acceleration of the device in mechanism rotations per second².
This can be the acceleration of a remote sensor and is affected by the RotorToSensorRatio and SensorToMechanismRatio configs.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::temperature::celsius_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetAncillaryDeviceTemp | ( | bool | refresh = true | ) |
Temperature of device from second sensor.
Newer versions of Talon FX have multiple temperature measurement methods.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< signals::AppliedRotorPolarityValue > & ctre::phoenix6::hardware::core::CoreTalonFX::GetAppliedRotorPolarity | ( | bool | refresh = true | ) |
The applied rotor polarity as seen from the front of the motor.
This typically is determined by the Inverted config, but can be overridden if using Follower features.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< signals::BridgeOutputValue > & ctre::phoenix6::hardware::core::CoreTalonFX::GetBridgeOutput | ( | bool | refresh = true | ) |
The applied output of the bridge.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetClosedLoopDerivativeOutput | ( | bool | refresh = true | ) |
Closed loop derivative component.
The portion of the closed loop output that is the proportional to the deriviative the error. Alternatively, the d-Contribution of the closed loop output.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetClosedLoopError | ( | bool | refresh = true | ) |
The difference between target reference and current measurement.
This is the value that is treated as the error in the PID loop.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetClosedLoopFeedForward | ( | bool | refresh = true | ) |
Feedforward passed by the user.
This is the general feedforward that the user provides for the closed loop.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetClosedLoopIntegratedOutput | ( | bool | refresh = true | ) |
Closed loop integrated component.
The portion of the closed loop output that is proportional to the integrated error. Alternatively, the i-Contribution of the closed loop output.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetClosedLoopOutput | ( | bool | refresh = true | ) |
Closed loop total output.
The total output of the closed loop output.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetClosedLoopProportionalOutput | ( | bool | refresh = true | ) |
Closed loop proportional component.
The portion of the closed loop output that is the proportional to the error. Alternatively, the p-Contribution of the closed loop output.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetClosedLoopReference | ( | bool | refresh = true | ) |
Value that the closed loop is targeting.
This is the value that the closed loop PID controller targets.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetClosedLoopReferenceSlope | ( | bool | refresh = true | ) |
Derivative of the target that the 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Ā®.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< int > & ctre::phoenix6::hardware::core::CoreTalonFX::GetClosedLoopSlot | ( | bool | refresh = true | ) |
Closed loop slot in use.
This is the slot that the closed loop PID is using.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
|
inline |
StatusSignal< signals::ControlModeValue > & ctre::phoenix6::hardware::core::CoreTalonFX::GetControlMode | ( | bool | refresh = true | ) |
The active control mode of the motor controller.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< signals::DeviceEnableValue > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDeviceEnable | ( | bool | refresh = true | ) |
Indicates if device is actuator enabled.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::temperature::celsius_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDeviceTemp | ( | bool | refresh = true | ) |
Temperature of device.
This is the temperature that the device measures itself to be at. Similar to Processor Temperature.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::angle::turn_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialAveragePosition | ( | bool | refresh = true | ) |
Average component of the differential position of device.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::angular_velocity::turns_per_second_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialAverageVelocity | ( | bool | refresh = true | ) |
Average component of the differential velocity of device.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialClosedLoopDerivativeOutput | ( | bool | refresh = true | ) |
Differential closed loop derivative component.
The portion of the differential closed loop output that is the proportional to the deriviative the error. Alternatively, the d-Contribution of the closed loop output.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialClosedLoopError | ( | bool | refresh = true | ) |
The difference between target differential reference and current measurement.
This is the value that is treated as the error in the differential PID loop.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialClosedLoopFeedForward | ( | bool | refresh = true | ) |
Differential Feedforward passed by the user.
This is the general feedforward that the user provides for the differential closed loop.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialClosedLoopIntegratedOutput | ( | bool | refresh = true | ) |
Differential closed loop integrated component.
The portion of the differential closed loop output that is proportional to the integrated error. Alternatively, the i-Contribution of the closed loop output.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialClosedLoopOutput | ( | bool | refresh = true | ) |
Differential closed loop total output.
The total output of the differential closed loop output.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialClosedLoopProportionalOutput | ( | bool | refresh = true | ) |
Differential closed loop proportional component.
The portion of the differential closed loop output that is the proportional to the error. Alternatively, the p-Contribution of the closed loop output.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialClosedLoopReference | ( | bool | refresh = true | ) |
Value that the differential closed loop is targeting.
This is the value that the differential closed loop PID controller targets.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialClosedLoopReferenceSlope | ( | bool | refresh = true | ) |
Derivative of the target that the differential 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Ā®.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< int > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialClosedLoopSlot | ( | bool | refresh = true | ) |
Differential Closed loop slot in use.
This is the slot that the closed loop differential PID is using.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< signals::DifferentialControlModeValue > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialControlMode | ( | bool | refresh = true | ) |
The active control mode of the differential controller.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::angle::turn_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialDifferencePosition | ( | bool | refresh = true | ) |
Difference component of the differential position of device.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::angular_velocity::turns_per_second_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialDifferenceVelocity | ( | bool | refresh = true | ) |
Difference component of the differential velocity of device.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< double > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDifferentialOutput | ( | bool | refresh = true | ) |
The calculated motor output for differential followers.
This is a torque request when using the TorqueCurrentFOC control output type, and a duty cycle in all other control types.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::dimensionless::scalar_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetDutyCycle | ( | bool | refresh = true | ) |
The applied motor duty cycle.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_BootDuringEnable | ( | bool | refresh = true | ) |
Device boot while detecting the enable signal.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_BridgeBrownout | ( | bool | refresh = true | ) |
Bridge was disabled most likely due to supply voltage dropping too low.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_DeviceTemp | ( | bool | refresh = true | ) |
Device temperature exceeded limit.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_ForwardHardLimit | ( | bool | refresh = true | ) |
Forward limit switch has been asserted.
Output is set to neutral.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_ForwardSoftLimit | ( | bool | refresh = true | ) |
Forward soft limit has been asserted.
Output is set to neutral.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_FusedSensorOutOfSync | ( | bool | refresh = true | ) |
The remote sensor used for fusion has fallen out of sync to the local sensor.
A re-synchronization has occurred, which may cause a discontinuity. This typically happens if there is significant slop in the mechanism, or if the RotorToSensorRatio configuration parameter is incorrect.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_Hardware | ( | bool | refresh = true | ) |
Hardware fault occurred.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_MissingDifferentialFX | ( | bool | refresh = true | ) |
The remote Talon FX used for differential control is not present on CAN Bus.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_MissingHardLimitRemote | ( | bool | refresh = true | ) |
The remote limit switch device is not present on CAN Bus.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_MissingSoftLimitRemote | ( | bool | refresh = true | ) |
The remote soft limit device is not present on CAN Bus.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_OverSupplyV | ( | bool | refresh = true | ) |
Supply Voltage has exceeded the maximum voltage rating of device.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_ProcTemp | ( | bool | refresh = true | ) |
Processor temperature exceeded limit.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_RemoteSensorDataInvalid | ( | bool | refresh = true | ) |
The remote sensor's data is no longer trusted.
This can happen if the remote sensor disappears from the CAN bus or if the remote sensor indicates its data is no longer valid, such as when a CANcoder's magnet strength falls into the "red" range.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_RemoteSensorPosOverflow | ( | bool | refresh = true | ) |
The remote sensor position has overflowed.
Because of the nature of remote sensors, it is possible for the remote sensor position to overflow beyond what is supported by the status signal frame. However, this is rare and cannot occur over the course of an FRC match under normal use.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_RemoteSensorReset | ( | bool | refresh = true | ) |
The remote sensor has reset.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_ReverseHardLimit | ( | bool | refresh = true | ) |
Reverse limit switch has been asserted.
Output is set to neutral.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_ReverseSoftLimit | ( | bool | refresh = true | ) |
Reverse soft limit has been asserted.
Output is set to neutral.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_StaticBrakeDisabled | ( | bool | refresh = true | ) |
Static brake was momentarily disabled due to excessive braking current while disabled.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_StatorCurrLimit | ( | bool | refresh = true | ) |
Stator current limit occured.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_SupplyCurrLimit | ( | bool | refresh = true | ) |
Supply current limit occured.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_Undervoltage | ( | bool | refresh = true | ) |
Device supply voltage dropped to near brownout levels.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_UnlicensedFeatureInUse | ( | bool | refresh = true | ) |
An unlicensed feature is in use, device may not behave as expected.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_UnstableSupplyV | ( | bool | refresh = true | ) |
Supply Voltage is unstable.
Ensure you are using a battery and current limited power supply.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFault_UsingFusedCANcoderWhileUnlicensed | ( | bool | refresh = true | ) |
Using Fused CANcoder feature while unlicensed.
Device has fallen back to remote CANcoder.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< int > & ctre::phoenix6::hardware::core::CoreTalonFX::GetFaultField | ( | bool | refresh = true | ) |
Integer representing all faults.
This returns the fault flags reported by the device. These are device specific and are not used directly in typical applications. Use the signal specific GetFault_*() methods instead.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< signals::ForwardLimitValue > & ctre::phoenix6::hardware::core::CoreTalonFX::GetForwardLimit | ( | bool | refresh = true | ) |
Forward Limit Pin.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetIsProLicensed | ( | bool | refresh = true | ) |
Whether the device is Phoenix Pro licensed.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< signals::MotionMagicIsRunningValue > & ctre::phoenix6::hardware::core::CoreTalonFX::GetMotionMagicIsRunning | ( | bool | refresh = true | ) |
Check if Motion MagicĀ® is running.
This is equivalent to checking that the reported control mode is a Motion MagicĀ® based mode.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< signals::MotorOutputStatusValue > & ctre::phoenix6::hardware::core::CoreTalonFX::GetMotorOutputStatus | ( | bool | refresh = true | ) |
Assess the status of the motor output with respect to load and supply.
This routine can be used to determine the general status of motor commutation. Off means that motor output is disabled. StaticBraking typically means the motor is in neutral-brake. Motoring means motor is loaded in a typical fashion, drawing current from the supply, and successfully turning the rotor in the direction of applied voltage. Discordant Motoring is the same as Motoring, expect the rotor is being backdriven as the motor output is not enough to defeat load forces. RegenBraking means the motor is braking in such a way where motor current is traveling back to the supply (typically a battery).
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< signals::MotorTypeValue > & ctre::phoenix6::hardware::core::CoreTalonFX::GetMotorType | ( | bool | refresh = true | ) |
The type of motor attached to the Talon FX.
This can be used to determine what motor is attached to the Talon FX. Return will be "Unknown" if firmware is too old or device is not present.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::voltage::volt_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetMotorVoltage | ( | bool | refresh = true | ) |
The applied (output) motor voltage.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::angle::turn_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetPosition | ( | bool | refresh = true | ) |
Position of the device in mechanism rotations.
This can be the position of a remote sensor and is affected by the RotorToSensorRatio and SensorToMechanismRatio configs, as well as calls to setPosition.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::temperature::celsius_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetProcessorTemp | ( | bool | refresh = true | ) |
Temperature of the processor.
This is the temperature that the processor measures itself to be at. Similar to Device Temperature.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< signals::ReverseLimitValue > & ctre::phoenix6::hardware::core::CoreTalonFX::GetReverseLimit | ( | bool | refresh = true | ) |
Reverse Limit Pin.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::angle::turn_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetRotorPosition | ( | bool | refresh = true | ) |
Position of the motor rotor.
This position is only affected by the RotorOffset config and calls to setPosition.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::angular_velocity::turns_per_second_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetRotorVelocity | ( | bool | refresh = true | ) |
Velocity of the motor rotor.
This velocity is not affected by any feedback configs.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
Get the simulation state for this device.
This function reuses an allocated simulation state object, so it is safe to call this function multiple times in a robot loop.
StatusSignal< units::current::ampere_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStatorCurrent | ( | bool | refresh = true | ) |
Current corresponding to the stator windings.
Similar to TorqueCurrent. Users will likely prefer TorqueCurrent over StatorCurrent.
Stator current where Positive current indicates motoring regardless of direction. Negative current indicates regenerative braking regardless of direction.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_BootDuringEnable | ( | bool | refresh = true | ) |
Device boot while detecting the enable signal.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_BridgeBrownout | ( | bool | refresh = true | ) |
Bridge was disabled most likely due to supply voltage dropping too low.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_DeviceTemp | ( | bool | refresh = true | ) |
Device temperature exceeded limit.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_ForwardHardLimit | ( | bool | refresh = true | ) |
Forward limit switch has been asserted.
Output is set to neutral.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_ForwardSoftLimit | ( | bool | refresh = true | ) |
Forward soft limit has been asserted.
Output is set to neutral.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_FusedSensorOutOfSync | ( | bool | refresh = true | ) |
The remote sensor used for fusion has fallen out of sync to the local sensor.
A re-synchronization has occurred, which may cause a discontinuity. This typically happens if there is significant slop in the mechanism, or if the RotorToSensorRatio configuration parameter is incorrect.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_Hardware | ( | bool | refresh = true | ) |
Hardware fault occurred.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_MissingDifferentialFX | ( | bool | refresh = true | ) |
The remote Talon FX used for differential control is not present on CAN Bus.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_MissingHardLimitRemote | ( | bool | refresh = true | ) |
The remote limit switch device is not present on CAN Bus.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_MissingSoftLimitRemote | ( | bool | refresh = true | ) |
The remote soft limit device is not present on CAN Bus.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_OverSupplyV | ( | bool | refresh = true | ) |
Supply Voltage has exceeded the maximum voltage rating of device.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_ProcTemp | ( | bool | refresh = true | ) |
Processor temperature exceeded limit.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_RemoteSensorDataInvalid | ( | bool | refresh = true | ) |
The remote sensor's data is no longer trusted.
This can happen if the remote sensor disappears from the CAN bus or if the remote sensor indicates its data is no longer valid, such as when a CANcoder's magnet strength falls into the "red" range.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_RemoteSensorPosOverflow | ( | bool | refresh = true | ) |
The remote sensor position has overflowed.
Because of the nature of remote sensors, it is possible for the remote sensor position to overflow beyond what is supported by the status signal frame. However, this is rare and cannot occur over the course of an FRC match under normal use.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_RemoteSensorReset | ( | bool | refresh = true | ) |
The remote sensor has reset.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_ReverseHardLimit | ( | bool | refresh = true | ) |
Reverse limit switch has been asserted.
Output is set to neutral.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_ReverseSoftLimit | ( | bool | refresh = true | ) |
Reverse soft limit has been asserted.
Output is set to neutral.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_StaticBrakeDisabled | ( | bool | refresh = true | ) |
Static brake was momentarily disabled due to excessive braking current while disabled.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_StatorCurrLimit | ( | bool | refresh = true | ) |
Stator current limit occured.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_SupplyCurrLimit | ( | bool | refresh = true | ) |
Supply current limit occured.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_Undervoltage | ( | bool | refresh = true | ) |
Device supply voltage dropped to near brownout levels.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_UnlicensedFeatureInUse | ( | bool | refresh = true | ) |
An unlicensed feature is in use, device may not behave as expected.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_UnstableSupplyV | ( | bool | refresh = true | ) |
Supply Voltage is unstable.
Ensure you are using a battery and current limited power supply.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< bool > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFault_UsingFusedCANcoderWhileUnlicensed | ( | bool | refresh = true | ) |
Using Fused CANcoder feature while unlicensed.
Device has fallen back to remote CANcoder.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< int > & ctre::phoenix6::hardware::core::CoreTalonFX::GetStickyFaultField | ( | bool | refresh = true | ) |
Integer representing all sticky faults.
This returns the persistent "sticky" fault flags reported by the device. These are device specific and are not used directly in typical applications. Use the signal specific GetStickyFault_*() methods instead.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::current::ampere_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetSupplyCurrent | ( | bool | refresh = true | ) |
Measured supply side current.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::voltage::volt_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetSupplyVoltage | ( | bool | refresh = true | ) |
Measured supply voltage to the TalonFX.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::current::ampere_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetTorqueCurrent | ( | bool | refresh = true | ) |
Current corresponding to the torque output by the motor.
Similar to StatorCurrent. Users will likely prefer this current to calculate the applied torque to the rotor.
Stator current where positive current means torque is applied in the forward direction as determined by the Inverted setting
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< units::angular_velocity::turns_per_second_t > & ctre::phoenix6::hardware::core::CoreTalonFX::GetVelocity | ( | bool | refresh = true | ) |
Velocity of the device in mechanism rotations per second.
This can be the velocity of a remote sensor and is affected by the RotorToSensorRatio and SensorToMechanismRatio configs.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< int > & ctre::phoenix6::hardware::core::CoreTalonFX::GetVersion | ( | bool | refresh = true | ) |
Full Version.
The format is a four byte value.
Full Version of firmware in device. The format is a four byte value.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< int > & ctre::phoenix6::hardware::core::CoreTalonFX::GetVersionBugfix | ( | bool | refresh = true | ) |
App Bugfix Version number.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< int > & ctre::phoenix6::hardware::core::CoreTalonFX::GetVersionBuild | ( | bool | refresh = true | ) |
App Build Version number.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< int > & ctre::phoenix6::hardware::core::CoreTalonFX::GetVersionMajor | ( | bool | refresh = true | ) |
App Major Version number.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
StatusSignal< int > & ctre::phoenix6::hardware::core::CoreTalonFX::GetVersionMinor | ( | bool | refresh = true | ) |
App Minor Version number.
Default Rates:
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
|
inline |
Request coast neutral output of actuator.
The bridge is disabled and the rotor is allowed to coast.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::CoastOut & | request | ) |
Request coast neutral output of actuator.
The bridge is disabled and the rotor is allowed to coast.
request | Control object to request of the device |
|
inline |
Differential control with duty cycle average target and position difference target.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_DutyCycleOut_Position & | request | ) |
Differential control with duty cycle average target and position difference target.
request | Control object to request of the device |
|
inline |
Differential control with duty cycle average target and velocity difference target.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_DutyCycleOut_Velocity & | request | ) |
Differential control with duty cycle average target and velocity difference target.
request | Control object to request of the device |
|
inline |
Differential control with Motion MagicĀ® average target and position difference target using dutycycle control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_MotionMagicDutyCycle_Position & | request | ) |
Differential control with Motion MagicĀ® average target and position difference target using dutycycle control.
request | Control object to request of the device |
|
inline |
Differential control with Motion MagicĀ® average target and velocity difference target using dutycycle control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_MotionMagicDutyCycle_Velocity & | request | ) |
Differential control with Motion MagicĀ® average target and velocity difference target using dutycycle control.
request | Control object to request of the device |
|
inline |
Differential control with Motion MagicĀ® average target and position difference target using torque current control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_MotionMagicTorqueCurrentFOC_Position & | request | ) |
Differential control with Motion MagicĀ® average target and position difference target using torque current control.
request | Control object to request of the device |
|
inline |
Differential control with Motion MagicĀ® average target and velocity difference target using torque current control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_MotionMagicTorqueCurrentFOC_Velocity & | request | ) |
Differential control with Motion MagicĀ® average target and velocity difference target using torque current control.
request | Control object to request of the device |
|
inline |
Differential control with Motion MagicĀ® average target and position difference target using voltage control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_MotionMagicVoltage_Position & | request | ) |
Differential control with Motion MagicĀ® average target and position difference target using voltage control.
request | Control object to request of the device |
|
inline |
Differential control with Motion MagicĀ® average target and velocity difference target using voltage control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_MotionMagicVoltage_Velocity & | request | ) |
Differential control with Motion MagicĀ® average target and velocity difference target using voltage control.
request | Control object to request of the device |
|
inline |
Differential control with position average target and position difference target using dutycycle control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_PositionDutyCycle_Position & | request | ) |
Differential control with position average target and position difference target using dutycycle control.
request | Control object to request of the device |
|
inline |
Differential control with position average target and velocity difference target using dutycycle control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_PositionDutyCycle_Velocity & | request | ) |
Differential control with position average target and velocity difference target using dutycycle control.
request | Control object to request of the device |
|
inline |
Differential control with position average target and position difference target using torque current control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_PositionTorqueCurrentFOC_Position & | request | ) |
Differential control with position average target and position difference target using torque current control.
request | Control object to request of the device |
|
inline |
Differential control with position average target and velocity difference target using torque current control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_PositionTorqueCurrentFOC_Velocity & | request | ) |
Differential control with position average target and velocity difference target using torque current control.
request | Control object to request of the device |
|
inline |
Differential control with position average target and position difference target using voltage control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_PositionVoltage_Position & | request | ) |
Differential control with position average target and position difference target using voltage control.
request | Control object to request of the device |
|
inline |
Differential control with position average target and velocity difference target using voltage control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_PositionVoltage_Velocity & | request | ) |
Differential control with position average target and velocity difference target using voltage control.
request | Control object to request of the device |
|
inline |
Differential control with torque current average target and position difference target.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_TorqueCurrentFOC_Position & | request | ) |
Differential control with torque current average target and position difference target.
request | Control object to request of the device |
|
inline |
Differential control with torque current average target and velocity difference target.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_TorqueCurrentFOC_Velocity & | request | ) |
Differential control with torque current average target and velocity difference target.
request | Control object to request of the device |
|
inline |
Differential control with velocity average target and position difference target using dutycycle control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_VelocityDutyCycle_Position & | request | ) |
Differential control with velocity average target and position difference target using dutycycle control.
request | Control object to request of the device |
|
inline |
Differential control with velocity average target and velocity difference target using dutycycle control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_VelocityDutyCycle_Velocity & | request | ) |
Differential control with velocity average target and velocity difference target using dutycycle control.
request | Control object to request of the device |
|
inline |
Differential control with velocity average target and position difference target using torque current control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_VelocityTorqueCurrentFOC_Position & | request | ) |
Differential control with velocity average target and position difference target using torque current control.
request | Control object to request of the device |
|
inline |
Differential control with velocity average target and velocity difference target using torque current control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_VelocityTorqueCurrentFOC_Velocity & | request | ) |
Differential control with velocity average target and velocity difference target using torque current control.
request | Control object to request of the device |
|
inline |
Differential control with velocity average target and position difference target using voltage control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_VelocityVoltage_Position & | request | ) |
Differential control with velocity average target and position difference target using voltage control.
request | Control object to request of the device |
|
inline |
Differential control with velocity average target and velocity difference target using voltage control.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_VelocityVoltage_Velocity & | request | ) |
Differential control with velocity average target and velocity difference target using voltage control.
request | Control object to request of the device |
|
inline |
Differential control with voltage average target and position difference target.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_VoltageOut_Position & | request | ) |
Differential control with voltage average target and position difference target.
request | Control object to request of the device |
|
inline |
Differential control with voltage average target and velocity difference target.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::compound::Diff_VoltageOut_Velocity & | request | ) |
Differential control with voltage average target and velocity difference target.
request | Control object to request of the device |
|
inline |
Control motor with generic control request object.
User must make sure the specified object is castable to a valid control request, otherwise this function will fail at run-time and return the corresponding StatusCode
request | Control object to request of the device |
|
inline |
Control motor with generic control request object.
User must make sure the specified object is castable to a valid control request, otherwise this function will fail at run-time and return the NotSupported StatusCode
request | Control object to request of the device |
|
inline |
Request a specified motor duty cycle with a differential position closed-loop.
This control mode will output a proportion of the supplied voltage which is supplied by the user. It will also set the motor's differential position setpoint to the specified position.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DifferentialDutyCycle & | request | ) |
Request a specified motor duty cycle with a differential position closed-loop.
This control mode will output a proportion of the supplied voltage which is supplied by the user. It will also set the motor's differential position setpoint to the specified position.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Follow the differential motor output of another Talon.
If Talon is in torque control, the torque is copied - which will increase the total torque applied. If Talon is in percent supply output control, the duty cycle is matched. Motor direction either matches master's configured direction or opposes it based on OpposeMasterDirection.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DifferentialFollower & | request | ) |
Follow the differential motor output of another Talon.
If Talon is in torque control, the torque is copied - which will increase the total torque applied. If Talon is in percent supply output control, the duty cycle is matched. Motor direction either matches master's configured direction or opposes it based on OpposeMasterDirection.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final position using a motion profile, and PID to a differential position setpoint.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the Cruise Velocity, Acceleration, and Jerk value specified via the Motion MagicĀ® configuration values. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is duty cycle based, so relevant closed-loop gains will use fractional duty cycle for the numerator: +1.0 represents full forward output.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DifferentialMotionMagicDutyCycle & | request | ) |
Requests Motion MagicĀ® to target a final position using a motion profile, and PID to a differential position setpoint.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the Cruise Velocity, Acceleration, and Jerk value specified via the Motion MagicĀ® configuration values. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is duty cycle based, so relevant closed-loop gains will use fractional duty cycle for the numerator: +1.0 represents full forward output.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final position using a motion profile, and PID to a differential position setpoint.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the Cruise Velocity, Acceleration, and Jerk value specified via the Motion MagicĀ® configuration values. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is voltage-based, so relevant closed-loop gains will use Volts for the numerator.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DifferentialMotionMagicVoltage & | request | ) |
Requests Motion MagicĀ® to target a final position using a motion profile, and PID to a differential position setpoint.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the Cruise Velocity, Acceleration, and Jerk value specified via the Motion MagicĀ® configuration values. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is voltage-based, so relevant closed-loop gains will use Volts for the numerator.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Request PID to target position with a differential position setpoint.
This control mode will set the motor's position setpoint to the position specified by the user. It will also set the motor's differential position setpoint to the specified position.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DifferentialPositionDutyCycle & | request | ) |
Request PID to target position with a differential position setpoint.
This control mode will set the motor's position setpoint to the position specified by the user. It will also set the motor's differential position setpoint to the specified position.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Request PID to target position with a differential position setpoint.
This control mode will set the motor's position setpoint to the position specified by the user. It will also set the motor's differential position setpoint to the specified position.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DifferentialPositionVoltage & | request | ) |
Request PID to target position with a differential position setpoint.
This control mode will set the motor's position setpoint to the position specified by the user. It will also set the motor's differential position setpoint to the specified position.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Follow the differential motor output of another Talon while ignoring the master's invert setting.
If Talon is in torque control, the torque is copied - which will increase the total torque applied. If Talon is in percent supply output control, the duty cycle is matched. Motor direction is strictly determined by the configured invert and not the master. If you want motor direction to match or oppose the master, use FollowerRequest instead.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DifferentialStrictFollower & | request | ) |
Follow the differential motor output of another Talon while ignoring the master's invert setting.
If Talon is in torque control, the torque is copied - which will increase the total torque applied. If Talon is in percent supply output control, the duty cycle is matched. Motor direction is strictly determined by the configured invert and not the master. If you want motor direction to match or oppose the master, use FollowerRequest instead.
request | Control object to request of the device |
|
inline |
Request PID to target velocity with a differential position setpoint.
This control mode will set the motor's velocity setpoint to the velocity specified by the user. It will also set the motor's differential position setpoint to the specified position.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DifferentialVelocityDutyCycle & | request | ) |
Request PID to target velocity with a differential position setpoint.
This control mode will set the motor's velocity setpoint to the velocity specified by the user. It will also set the motor's differential position setpoint to the specified position.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Request PID to target velocity with a differential position setpoint.
This control mode will set the motor's velocity setpoint to the velocity specified by the user. It will also set the motor's differential position setpoint to the specified position.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DifferentialVelocityVoltage & | request | ) |
Request PID to target velocity with a differential position setpoint.
This control mode will set the motor's velocity setpoint to the velocity specified by the user. It will also set the motor's differential position setpoint to the specified position.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Request a specified voltage with a differential position closed-loop.
This control mode will attempt to apply the specified voltage to the motor. If the supply voltage is below the requested voltage, the motor controller will output the supply voltage. It will also set the motor's differential position setpoint to the specified position.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DifferentialVoltage & | request | ) |
Request a specified voltage with a differential position closed-loop.
This control mode will attempt to apply the specified voltage to the motor. If the supply voltage is below the requested voltage, the motor controller will output the supply voltage. It will also set the motor's differential position setpoint to the specified position.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Request a specified motor duty cycle.
This control mode will output a proportion of the supplied voltage which is supplied by the user.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DutyCycleOut & | request | ) |
Request a specified motor duty cycle.
This control mode will output a proportion of the supplied voltage which is supplied by the user.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final position using a motion profile.
This dynamic request allows runtime changes to Cruise Velocity, Acceleration, and Jerk. Users can optionally provide a duty cycle feedforward. This control requires use of a CANivore.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the specified Cruise Velocity, Acceleration, and Jerk value. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is duty cycle based, so relevant closed-loop gains will use fractional duty cycle for the numerator: +1.0 represents full forward output.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DynamicMotionMagicDutyCycle & | request | ) |
Requests Motion MagicĀ® to target a final position using a motion profile.
This dynamic request allows runtime changes to Cruise Velocity, Acceleration, and Jerk. Users can optionally provide a duty cycle feedforward. This control requires use of a CANivore.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the specified Cruise Velocity, Acceleration, and Jerk value. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is duty cycle based, so relevant closed-loop gains will use fractional duty cycle for the numerator: +1.0 represents full forward output.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final position using a motion profile.
This dynamic request allows runtime changes to Cruise Velocity, Acceleration, and Jerk. Users can optionally provide a torque current feedforward. This control requires use of a CANivore.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the specified Cruise Velocity, Acceleration, and Jerk value. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is based on torque current, so relevant closed-loop gains will use Amperes for the numerator.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DynamicMotionMagicTorqueCurrentFOC & | request | ) |
Requests Motion MagicĀ® to target a final position using a motion profile.
This dynamic request allows runtime changes to Cruise Velocity, Acceleration, and Jerk. Users can optionally provide a torque current feedforward. This control requires use of a CANivore.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the specified Cruise Velocity, Acceleration, and Jerk value. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is based on torque current, so relevant closed-loop gains will use Amperes for the numerator.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final position using a motion profile.
This dynamic request allows runtime changes to Cruise Velocity, Acceleration, and Jerk. Users can optionally provide a voltage feedforward. This control requires use of a CANivore.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the specified Cruise Velocity, Acceleration, and Jerk value. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is voltage-based, so relevant closed-loop gains will use Volts for the numerator.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::DynamicMotionMagicVoltage & | request | ) |
Requests Motion MagicĀ® to target a final position using a motion profile.
This dynamic request allows runtime changes to Cruise Velocity, Acceleration, and Jerk. Users can optionally provide a voltage feedforward. This control requires use of a CANivore.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the specified Cruise Velocity, Acceleration, and Jerk value. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is voltage-based, so relevant closed-loop gains will use Volts for the numerator.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Follow the motor output of another Talon.
If Talon is in torque control, the torque is copied - which will increase the total torque applied. If Talon is in percent supply output control, the duty cycle is matched. Motor direction either matches master's configured direction or opposes it based on OpposeMasterDirection.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::Follower & | request | ) |
Follow the motor output of another Talon.
If Talon is in torque control, the torque is copied - which will increase the total torque applied. If Talon is in percent supply output control, the duty cycle is matched. Motor direction either matches master's configured direction or opposes it based on OpposeMasterDirection.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final position using a motion profile.
Users can optionally provide a duty cycle feedforward.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the Cruise Velocity, Acceleration, and Jerk value specified via the Motion MagicĀ® configuration values. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is duty cycle based, so relevant closed-loop gains will use fractional duty cycle for the numerator: +1.0 represents full forward output.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::MotionMagicDutyCycle & | request | ) |
Requests Motion MagicĀ® to target a final position using a motion profile.
Users can optionally provide a duty cycle feedforward.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the Cruise Velocity, Acceleration, and Jerk value specified via the Motion MagicĀ® configuration values. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is duty cycle based, so relevant closed-loop gains will use fractional duty cycle for the numerator: +1.0 represents full forward output.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final position using an exponential motion profile.
Users can optionally provide a duty cycle feedforward.
Motion MagicĀ® Expo produces a motion profile in real-time while attempting to honor the Cruise Velocity (optional) and the mechanism kV and kA, specified via the Motion MagicĀ® configuration values. Note that unlike the slot gains, the Expo_kV and Expo_kA configs are always in output units of Volts.
Setting Cruise Velocity to 0 will allow the profile to run to the max possible velocity based on Expo_kV. This control mode does not use the Acceleration or Jerk configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is duty cycle based, so relevant closed-loop gains will use fractional duty cycle for the numerator: +1.0 represents full forward output.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::MotionMagicExpoDutyCycle & | request | ) |
Requests Motion MagicĀ® to target a final position using an exponential motion profile.
Users can optionally provide a duty cycle feedforward.
Motion MagicĀ® Expo produces a motion profile in real-time while attempting to honor the Cruise Velocity (optional) and the mechanism kV and kA, specified via the Motion MagicĀ® configuration values. Note that unlike the slot gains, the Expo_kV and Expo_kA configs are always in output units of Volts.
Setting Cruise Velocity to 0 will allow the profile to run to the max possible velocity based on Expo_kV. This control mode does not use the Acceleration or Jerk configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is duty cycle based, so relevant closed-loop gains will use fractional duty cycle for the numerator: +1.0 represents full forward output.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final position using an exponential motion profile.
Users can optionally provide a torque current feedforward.
Motion MagicĀ® Expo produces a motion profile in real-time while attempting to honor the Cruise Velocity (optional) and the mechanism kV and kA, specified via the Motion MagicĀ® configuration values. Note that unlike the slot gains, the Expo_kV and Expo_kA configs are always in output units of Volts.
Setting Cruise Velocity to 0 will allow the profile to run to the max possible velocity based on Expo_kV. This control mode does not use the Acceleration or Jerk configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is based on torque current, so relevant closed-loop gains will use Amperes for the numerator.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::MotionMagicExpoTorqueCurrentFOC & | request | ) |
Requests Motion MagicĀ® to target a final position using an exponential motion profile.
Users can optionally provide a torque current feedforward.
Motion MagicĀ® Expo produces a motion profile in real-time while attempting to honor the Cruise Velocity (optional) and the mechanism kV and kA, specified via the Motion MagicĀ® configuration values. Note that unlike the slot gains, the Expo_kV and Expo_kA configs are always in output units of Volts.
Setting Cruise Velocity to 0 will allow the profile to run to the max possible velocity based on Expo_kV. This control mode does not use the Acceleration or Jerk configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is based on torque current, so relevant closed-loop gains will use Amperes for the numerator.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final position using an exponential motion profile.
Users can optionally provide a voltage feedforward.
Motion MagicĀ® Expo produces a motion profile in real-time while attempting to honor the Cruise Velocity (optional) and the mechanism kV and kA, specified via the Motion MagicĀ® configuration values. Note that unlike the slot gains, the Expo_kV and Expo_kA configs are always in output units of Volts.
Setting Cruise Velocity to 0 will allow the profile to run to the max possible velocity based on Expo_kV. This control mode does not use the Acceleration or Jerk configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is voltage-based, so relevant closed-loop gains will use Volts for the numerator.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::MotionMagicExpoVoltage & | request | ) |
Requests Motion MagicĀ® to target a final position using an exponential motion profile.
Users can optionally provide a voltage feedforward.
Motion MagicĀ® Expo produces a motion profile in real-time while attempting to honor the Cruise Velocity (optional) and the mechanism kV and kA, specified via the Motion MagicĀ® configuration values. Note that unlike the slot gains, the Expo_kV and Expo_kA configs are always in output units of Volts.
Setting Cruise Velocity to 0 will allow the profile to run to the max possible velocity based on Expo_kV. This control mode does not use the Acceleration or Jerk configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is voltage-based, so relevant closed-loop gains will use Volts for the numerator.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final position using a motion profile.
Users can optionally provide a torque current feedforward.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the Cruise Velocity, Acceleration, and Jerk value specified via the Motion MagicĀ® configuration values. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is based on torque current, so relevant closed-loop gains will use Amperes for the numerator.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::MotionMagicTorqueCurrentFOC & | request | ) |
Requests Motion MagicĀ® to target a final position using a motion profile.
Users can optionally provide a torque current feedforward.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the Cruise Velocity, Acceleration, and Jerk value specified via the Motion MagicĀ® configuration values. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is based on torque current, so relevant closed-loop gains will use Amperes for the numerator.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final velocity using a motion profile.
This allows smooth transitions between velocity set points. Users can optionally provide a duty cycle feedforward.
Motion MagicĀ® Velocity produces a motion profile in real-time while attempting to honor the specified Acceleration and Jerk value. This control mode does not use the CruiseVelocity, Expo_kV, or Expo_kA configs.
If the specified acceleration is zero, the Acceleration under Motion MagicĀ® configuration parameter is used instead. This allows for runtime adjustment of acceleration for advanced users. Jerk is also specified in the Motion MagicĀ® persistent configuration values. If Jerk is set to zero, Motion MagicĀ® will produce a trapezoidal acceleration profile.
Target velocity can also be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is duty cycle based, so relevant closed-loop gains will use fractional duty cycle for the numerator: +1.0 represents full forward output.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::MotionMagicVelocityDutyCycle & | request | ) |
Requests Motion MagicĀ® to target a final velocity using a motion profile.
This allows smooth transitions between velocity set points. Users can optionally provide a duty cycle feedforward.
Motion MagicĀ® Velocity produces a motion profile in real-time while attempting to honor the specified Acceleration and Jerk value. This control mode does not use the CruiseVelocity, Expo_kV, or Expo_kA configs.
If the specified acceleration is zero, the Acceleration under Motion MagicĀ® configuration parameter is used instead. This allows for runtime adjustment of acceleration for advanced users. Jerk is also specified in the Motion MagicĀ® persistent configuration values. If Jerk is set to zero, Motion MagicĀ® will produce a trapezoidal acceleration profile.
Target velocity can also be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is duty cycle based, so relevant closed-loop gains will use fractional duty cycle for the numerator: +1.0 represents full forward output.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final velocity using a motion profile.
This allows smooth transitions between velocity set points. Users can optionally provide a torque feedforward.
Motion MagicĀ® Velocity produces a motion profile in real-time while attempting to honor the specified Acceleration and Jerk value. This control mode does not use the CruiseVelocity, Expo_kV, or Expo_kA configs.
If the specified acceleration is zero, the Acceleration under Motion MagicĀ® configuration parameter is used instead. This allows for runtime adjustment of acceleration for advanced users. Jerk is also specified in the Motion MagicĀ® persistent configuration values. If Jerk is set to zero, Motion MagicĀ® will produce a trapezoidal acceleration profile.
Target velocity can also be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is based on torque current, so relevant closed-loop gains will use Amperes for the numerator.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::MotionMagicVelocityTorqueCurrentFOC & | request | ) |
Requests Motion MagicĀ® to target a final velocity using a motion profile.
This allows smooth transitions between velocity set points. Users can optionally provide a torque feedforward.
Motion MagicĀ® Velocity produces a motion profile in real-time while attempting to honor the specified Acceleration and Jerk value. This control mode does not use the CruiseVelocity, Expo_kV, or Expo_kA configs.
If the specified acceleration is zero, the Acceleration under Motion MagicĀ® configuration parameter is used instead. This allows for runtime adjustment of acceleration for advanced users. Jerk is also specified in the Motion MagicĀ® persistent configuration values. If Jerk is set to zero, Motion MagicĀ® will produce a trapezoidal acceleration profile.
Target velocity can also be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is based on torque current, so relevant closed-loop gains will use Amperes for the numerator.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final velocity using a motion profile.
This allows smooth transitions between velocity set points. Users can optionally provide a voltage feedforward.
Motion MagicĀ® Velocity produces a motion profile in real-time while attempting to honor the specified Acceleration and Jerk value. This control mode does not use the CruiseVelocity, Expo_kV, or Expo_kA configs.
If the specified acceleration is zero, the Acceleration under Motion MagicĀ® configuration parameter is used instead. This allows for runtime adjustment of acceleration for advanced users. Jerk is also specified in the Motion MagicĀ® persistent configuration values. If Jerk is set to zero, Motion MagicĀ® will produce a trapezoidal acceleration profile.
Target velocity can also be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is voltage-based, so relevant closed-loop gains will use Volts for the numerator.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::MotionMagicVelocityVoltage & | request | ) |
Requests Motion MagicĀ® to target a final velocity using a motion profile.
This allows smooth transitions between velocity set points. Users can optionally provide a voltage feedforward.
Motion MagicĀ® Velocity produces a motion profile in real-time while attempting to honor the specified Acceleration and Jerk value. This control mode does not use the CruiseVelocity, Expo_kV, or Expo_kA configs.
If the specified acceleration is zero, the Acceleration under Motion MagicĀ® configuration parameter is used instead. This allows for runtime adjustment of acceleration for advanced users. Jerk is also specified in the Motion MagicĀ® persistent configuration values. If Jerk is set to zero, Motion MagicĀ® will produce a trapezoidal acceleration profile.
Target velocity can also be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is voltage-based, so relevant closed-loop gains will use Volts for the numerator.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Requests Motion MagicĀ® to target a final position using a motion profile.
Users can optionally provide a voltage feedforward.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the Cruise Velocity, Acceleration, and Jerk value specified via the Motion MagicĀ® configuration values. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is voltage-based, so relevant closed-loop gains will use Volts for the numerator.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::MotionMagicVoltage & | request | ) |
Requests Motion MagicĀ® to target a final position using a motion profile.
Users can optionally provide a voltage feedforward.
Motion MagicĀ® produces a motion profile in real-time while attempting to honor the Cruise Velocity, Acceleration, and Jerk value specified via the Motion MagicĀ® configuration values. This control mode does not use the Expo_kV or Expo_kA configs.
Target position can be changed on-the-fly and Motion MagicĀ® will do its best to adjust the profile. This control mode is voltage-based, so relevant closed-loop gains will use Volts for the numerator.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Plays a single tone at the user specified frequency.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::MusicTone & | request | ) |
Plays a single tone at the user specified frequency.
request | Control object to request of the device |
|
inline |
Request neutral output of actuator.
The applied brake type is determined by the NeutralMode configuration.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::NeutralOut & | request | ) |
Request neutral output of actuator.
The applied brake type is determined by the NeutralMode configuration.
request | Control object to request of the device |
|
inline |
Request PID to target position with duty cycle feedforward.
This control mode will set the motor's position setpoint to the position specified by the user. In addition, it will apply an additional duty cycle as an arbitrary feedforward value.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::PositionDutyCycle & | request | ) |
Request PID to target position with duty cycle feedforward.
This control mode will set the motor's position setpoint to the position specified by the user. In addition, it will apply an additional duty cycle as an arbitrary feedforward value.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Request PID to target position with torque current feedforward.
This control mode will set the motor's position setpoint to the position specified by the user. In addition, it will apply an additional torque current as an arbitrary feedforward value.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::PositionTorqueCurrentFOC & | request | ) |
Request PID to target position with torque current feedforward.
This control mode will set the motor's position setpoint to the position specified by the user. In addition, it will apply an additional torque current as an arbitrary feedforward value.
request | Control object to request of the device |
|
inline |
Request PID to target position with voltage feedforward.
This control mode will set the motor's position setpoint to the position specified by the user. In addition, it will apply an additional voltage as an arbitrary feedforward value.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::PositionVoltage & | request | ) |
Request PID to target position with voltage feedforward.
This control mode will set the motor's position setpoint to the position specified by the user. In addition, it will apply an additional voltage as an arbitrary feedforward value.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Applies full neutral-brake by shorting motor leads together.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::StaticBrake & | request | ) |
Applies full neutral-brake by shorting motor leads together.
request | Control object to request of the device |
|
inline |
Follow the motor output of another Talon while ignoring the master's invert setting.
If Talon is in torque control, the torque is copied - which will increase the total torque applied. If Talon is in percent supply output control, the duty cycle is matched. Motor direction is strictly determined by the configured invert and not the master. If you want motor direction to match or oppose the master, use FollowerRequest instead.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::StrictFollower & | request | ) |
Follow the motor output of another Talon while ignoring the master's invert setting.
If Talon is in torque control, the torque is copied - which will increase the total torque applied. If Talon is in percent supply output control, the duty cycle is matched. Motor direction is strictly determined by the configured invert and not the master. If you want motor direction to match or oppose the master, use FollowerRequest instead.
request | Control object to request of the device |
|
inline |
Request a specified motor current (field oriented control).
This control request will drive the motor to the requested motor (stator) current value. This leverages field oriented control (FOC), which means greater peak power than what is documented. This scales to torque based on Motor's kT constant.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::TorqueCurrentFOC & | request | ) |
Request a specified motor current (field oriented control).
This control request will drive the motor to the requested motor (stator) current value. This leverages field oriented control (FOC), which means greater peak power than what is documented. This scales to torque based on Motor's kT constant.
request | Control object to request of the device |
|
inline |
Request PID to target velocity with duty cycle feedforward.
This control mode will set the motor's velocity setpoint to the velocity specified by the user. In addition, it will apply an additional voltage as an arbitrary feedforward value.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::VelocityDutyCycle & | request | ) |
Request PID to target velocity with duty cycle feedforward.
This control mode will set the motor's velocity setpoint to the velocity specified by the user. In addition, it will apply an additional voltage as an arbitrary feedforward value.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Request PID to target velocity with torque current feedforward.
This control mode will set the motor's velocity setpoint to the velocity specified by the user. In addition, it will apply an additional torque current as an arbitrary feedforward value.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::VelocityTorqueCurrentFOC & | request | ) |
Request PID to target velocity with torque current feedforward.
This control mode will set the motor's velocity setpoint to the velocity specified by the user. In addition, it will apply an additional torque current as an arbitrary feedforward value.
request | Control object to request of the device |
|
inline |
Request PID to target velocity with voltage feedforward.
This control mode will set the motor's velocity setpoint to the velocity specified by the user. In addition, it will apply an additional voltage as an arbitrary feedforward value.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::VelocityVoltage & | request | ) |
Request PID to target velocity with voltage feedforward.
This control mode will set the motor's velocity setpoint to the velocity specified by the user. In addition, it will apply an additional voltage as an arbitrary feedforward value.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Request a specified voltage.
This control mode will attempt to apply the specified voltage to the motor. If the supply voltage is below the requested voltage, the motor controller will output the supply voltage.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
ctre::phoenix::StatusCode ctre::phoenix6::hardware::core::CoreTalonFX::SetControl | ( | controls::VoltageOut & | request | ) |
Request a specified voltage.
This control mode will attempt to apply the specified voltage to the motor. If the supply voltage is below the requested voltage, the motor controller will output the supply voltage.
EnableFOC: Set to true to use FOC commutation (requires Phoenix Pro), which increases peak power by ~15%. Set to false to use trapezoidal commutation.
FOC improves motor performance by leveraging torque (current) control. However, this may be inconvenient for applications that require specifying duty cycle or voltage. CTR-Electronics has developed a hybrid method that combines the performances gains of FOC while still allowing applications to provide duty cycle or voltage demand. This not to be confused with simple sinusoidal control or phase voltage control which lacks the performance gains.
request | Control object to request of the device |
|
inline |
Sets the mechanism position of the device in mechanism rotations.
This will wait up to 0.100 seconds (100ms) by default.
newValue | Value to set to. Units are in rotations. |
|
inline |
Sets the mechanism position of the device in mechanism rotations.
newValue | Value to set to. Units are in rotations. |
timeoutSeconds | Maximum time to wait up to in seconds. |