ControlMode

class phoenix5.ControlMode(value: int)

Bases: pybind11_object

Choose the control mode for a motor controller. Consult product specific documentation to determine what is available/supported.

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 = <ControlMode.Current: 3>
Disabled = <ControlMode.Disabled: 15>
Follower = <ControlMode.Follower: 5>
MotionMagic = <ControlMode.MotionMagic: 7>
MotionProfile = <ControlMode.MotionProfile: 6>
MotionProfileArc = <ControlMode.MotionProfileArc: 10>
MusicTone = <ControlMode.MusicTone: 13>
PercentOutput = <ControlMode.PercentOutput: 0>
Position = <ControlMode.Position: 1>
Velocity = <ControlMode.Velocity: 2>
property name
property value