CTRE Phoenix C++ 5.35.1
Loading...
Searching...
No Matches
ControlMode.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
4namespace ctre {
5 namespace phoenix {
6 namespace motorcontrol {
7 /**
8 * Choose the control mode for a motor controller.
9 * Consult product specific documentation to determine what is available/supported.
10 */
11 enum class ControlMode {
12 /**
13 * Percent output [-1,1]
14 */
15 PercentOutput = 0,
16 /**
17 * Position closed loop
18 */
19 Position = 1,
20 /**
21 * Velocity closed loop
22 */
23 Velocity = 2,
24 /**
25 * Input current closed loop
26 */
27 Current = 3,
28 /**
29 * Follow other motor controller
30 */
31 Follower = 5,
32 /**
33 * Motion Profile
34 */
35 MotionProfile = 6,
36 /**
37 * Motion Magic
38 */
39 MotionMagic = 7,
40 /**
41 * Motion Profile with auxiliary output
42 */
44 /**
45 * Plays a single tone. Frequency (hz) is passed into set.
46 */
47 MusicTone = 13,
48 /**
49 * Disable Motor Controller
50 */
51 Disabled = 15,
52 };
53
54 /**
55 * Choose the control mode for a Talon SRX.
56 */
58 /**
59 * Percent output [-1,1]
60 */
61 PercentOutput = 0,
62 /**
63 * Position closed loop
64 */
65 Position = 1,
66 /**
67 * Velocity closed loop
68 */
69 Velocity = 2,
70 /**
71 * Input current closed loop
72 */
73 Current = 3,
74 /**
75 * Follow other motor controller
76 */
77 Follower = 5,
78 /**
79 * Motion Profile
80 */
81 MotionProfile = 6,
82 /**
83 * Motion Magic
84 */
85 MotionMagic = 7,
86 /**
87 * Motion Profile with auxiliary output
88 */
90 /**
91 * Disable Motor Controller
92 */
93 Disabled = 15,
94 };
95
96 /**
97 * Choose the control mode for a Victor SPX.
98 */
100 /**
101 * Percent output [-1,1]
102 */
103 PercentOutput = 0,
104 /**
105 * Position closed loop
106 */
107 Position = 1,
108 /**
109 * Velocity closed loop
110 */
111 Velocity = 2,
112 /**
113 * Follow other motor controller
114 */
115 Follower = 5,
116 /**
117 * Motion Profile
118 */
119 MotionProfile = 6,
120 /**
121 * Motion Magic
122 */
123 MotionMagic = 7,
124 /**
125 * Motion Profile with auxiliary output
126 */
127 MotionProfileArc = 10,
128 /**
129 * Disable Motor Controller
130 */
131 Disabled = 15,
132 };
133 }
134 }
135}
ControlMode
Choose the control mode for a motor controller.
Definition ControlMode.h:11
@ Current
Input current closed loop.
@ MotionProfileArc
Motion Profile with auxiliary output.
@ Follower
Follow other motor controller.
@ PercentOutput
Percent output [-1,1].
@ Disabled
Disable Motor Controller.
TalonSRXControlMode
Choose the control mode for a Talon SRX.
Definition ControlMode.h:57
VictorSPXControlMode
Choose the control mode for a Victor SPX.
Definition ControlMode.h:99
WPI Compliant CANcoder class.
Definition CANCoderStatusFrame.h:4