TalonFXControlMode
- class phoenix5.TalonFXControlMode(value: int)
Bases:
pybind11_object
Choose the control mode for a TalonFX / Falcon 500.
If the Phoenix 5 API must be used for this device, the device must have 22.X firmware. This firmware is available in Tuner X after selecting Phoenix 5 in the firmware year dropdown.
- Deprecated:
This device’s Phoenix 5 API is deprecated for removal in the 2025 season. Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API. A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html.
Members:
PercentOutput : Percent output [-1,1]
Position : Position closed loop
Velocity : Velocity closed loop
Current : Input current closed loop
Follower : Follow other motor controller
MotionProfile : Motion Profile
MotionMagic : Motion Magic
MotionProfileArc : Motion Profile with auxiliary output
MusicTone : Plays a single tone. Frequency (hz) is passed into set.
Disabled : Disable Motor Controller
- Current = <TalonFXControlMode.Current: 3>
- Disabled = <TalonFXControlMode.Disabled: 15>
- Follower = <TalonFXControlMode.Follower: 5>
- MotionMagic = <TalonFXControlMode.MotionMagic: 7>
- MotionProfile = <TalonFXControlMode.MotionProfile: 6>
- MotionProfileArc = <TalonFXControlMode.MotionProfileArc: 10>
- MusicTone = <TalonFXControlMode.MusicTone: 13>
- PercentOutput = <TalonFXControlMode.PercentOutput: 0>
- Position = <TalonFXControlMode.Position: 1>
- Velocity = <TalonFXControlMode.Velocity: 2>
- property name
- property value