CTRE Phoenix C++ 5.33.1
StatusFrame.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
4namespace ctre {
5namespace phoenix {
6namespace motorcontrol {
7
8/**
9 * The different status frames available to enhanced motor controllers
10 */
12 /**
13 * General Status
14 */
16 /**
17 * Feedback for selected sensor on primary PID[0].
18 */
20 /**
21 * Analog sensor, motor controller
22 * temperature, and voltage at input leads
23 */
25 /**
26 * Miscellaneous signals
27 */
28 Status_6_Misc = 0x1540,
29 /**
30 * Communication status
31 */
33 /**
34 * Motion profile buffer status
35 */
37 /**
38 * Old name for Status 10.
39 * Use @see #Status_10_Targets instead.
40 */
42 /**
43 * Correct name for Status 10.
44 * Functionally equivalent to @see #Status_10_MotionMagic
45 */
47 /**
48 * Feedback for selected sensor on aux PID[1].
49 */
51 /**
52 * Primary PID
53 */
55 /**
56 * Auxiliary PID
57 */
59 /**
60 * Firmware & API status information
61 */
63 /**
64 * Firmware & API status information
65 * [[deprecated("Use Status_15_FirmwareApiStatus instead.")]]
66 */
68 /**
69 * MotionProfile Targets for Auxiliary PID1.
70 */
72
73 /**
74 * Quadrature sensor
75 */
77 /**
78 * Pulse width sensor
79 */
81 /**
82 * Gadgeteer status
83 */
85 /**
86 * Brushless Current Status.
87 * Includes Stator and Supply Current for Talon FX.
88 */
90 /**
91 * FX Integrated sensor
92 */
94};
95
96/**
97 * The different status frames available to motor controllers
98 */
100 /**
101 * General Status
102 */
104 /**
105 * Main controller feedback
106 */
108 /**
109 * Analog sensor, motor controller
110 * temperature, and voltage at input leads
111 */
113 /**
114 * Miscellaneous signals
115 */
117 /**
118 * Communication status to controller
119 */
121 /**
122 * Motion profile buffer status
123 */
125 /**
126 * Old name for Status 10.
127 * Use @see #Status_10_Targets instead.
128 */
130 /**
131 * Correct name for Status 10.
132 * Functionally equivalent to @see #Status_10_MotionMagic
133 */
135 /**
136 * Secondary controller feedback
137 */
139 /**
140 * Base PID
141 */
143 /**
144 * Auxiliary PID
145 */
147 /**
148 * Firmware & API status information
149 */
151 /**
152 * Firmware & API status information
153 * [[deprecated("Use Status_15_FirmwareApiStatus_ instead.")]]
154 */
156 /**
157 * MotionProfile Targets for Auxiliary PID1.
158 */
160};
161
162/**
163 * Class to allow conversion from StatusFrame to EnhancedStatusFrame
164 */
166public:
167 /**
168 * Converts a status frame to an enhanced status frame
169 * @param statusFrame frame to convert
170 * @return enhanced status frame version of statusFrame
171 */
173 return (StatusFrameEnhanced) statusFrame;
174 }
175};
176} // namespace motorcontrol
177} // namespace phoenix
178} // namespace ctre
Class to allow conversion from StatusFrame to EnhancedStatusFrame.
Definition: StatusFrame.h:165
StatusFrameEnhanced Promote(StatusFrame statusFrame)
Converts a status frame to an enhanced status frame.
Definition: StatusFrame.h:172
StatusFrameEnhanced
The different status frames available to enhanced motor controllers.
Definition: StatusFrame.h:11
@ Status_2_Feedback0
Feedback for selected sensor on primary PID[0].
Definition: StatusFrame.h:19
@ Status_10_MotionMagic
Old name for Status 10.
Definition: StatusFrame.h:41
@ Status_10_Targets
Correct name for Status 10.
Definition: StatusFrame.h:46
@ Status_14_Turn_PIDF1
Auxiliary PID.
Definition: StatusFrame.h:58
@ Status_15_FirmareApiStatus
Firmware & API status information [[deprecated("Use Status_15_FirmwareApiStatus instead....
Definition: StatusFrame.h:67
@ Status_17_Targets1
MotionProfile Targets for Auxiliary PID1.
Definition: StatusFrame.h:71
@ Status_21_FeedbackIntegrated
FX Integrated sensor.
Definition: StatusFrame.h:93
@ Status_4_AinTempVbat
Analog sensor, motor controller temperature, and voltage at input leads.
Definition: StatusFrame.h:24
@ Status_12_Feedback1
Feedback for selected sensor on aux PID[1].
Definition: StatusFrame.h:50
@ Status_11_UartGadgeteer
Gadgeteer status.
Definition: StatusFrame.h:84
@ Status_7_CommStatus
Communication status.
Definition: StatusFrame.h:32
@ Status_3_Quadrature
Quadrature sensor.
Definition: StatusFrame.h:76
@ Status_6_Misc
Miscellaneous signals.
Definition: StatusFrame.h:28
@ Status_9_MotProfBuffer
Motion profile buffer status.
Definition: StatusFrame.h:36
@ Status_8_PulseWidth
Pulse width sensor.
Definition: StatusFrame.h:80
@ Status_13_Base_PIDF0
Primary PID.
Definition: StatusFrame.h:54
@ Status_1_General
General Status.
Definition: StatusFrame.h:15
@ Status_Brushless_Current
Brushless Current Status.
Definition: StatusFrame.h:89
@ Status_15_FirmwareApiStatus
Firmware & API status information.
Definition: StatusFrame.h:62
StatusFrame
The different status frames available to motor controllers.
Definition: StatusFrame.h:99
@ Status_14_Turn_PIDF1_
Auxiliary PID.
Definition: StatusFrame.h:146
@ Status_10_Targets_
Correct name for Status 10.
Definition: StatusFrame.h:134
@ Status_4_AinTempVbat_
Analog sensor, motor controller temperature, and voltage at input leads.
Definition: StatusFrame.h:112
@ Status_17_Targets1_
MotionProfile Targets for Auxiliary PID1.
Definition: StatusFrame.h:159
@ Status_10_MotionMagic_
Old name for Status 10.
Definition: StatusFrame.h:129
@ Status_1_General_
General Status.
Definition: StatusFrame.h:103
@ Status_12_Feedback1_
Secondary controller feedback.
Definition: StatusFrame.h:138
@ Status_15_FirmwareApiStatus_
Firmware & API status information.
Definition: StatusFrame.h:150
@ Status_6_Misc_
Miscellaneous signals.
Definition: StatusFrame.h:116
@ Status_7_CommStatus_
Communication status to controller.
Definition: StatusFrame.h:120
@ Status_15_FirmareApiStatus_
Firmware & API status information [[deprecated("Use Status_15_FirmwareApiStatus_ instead....
Definition: StatusFrame.h:155
@ Status_13_Base_PIDF0_
Base PID.
Definition: StatusFrame.h:142
@ Status_9_MotProfBuffer_
Motion profile buffer status.
Definition: StatusFrame.h:124
@ Status_2_Feedback0_
Main controller feedback.
Definition: StatusFrame.h:107
namespace ctre
Definition: paramEnum.h:5