CTRE Phoenix C++ 5.33.1
ControlFrame.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 * Control Frames for motor controllers
10 */
12 /**
13 * Control
14 */
16 /**
17 * Advanced Control
18 */
20 /**
21 * Trajectory points
22 */
24};
25
26/**
27 * Control Frames for enhanced motor controllers
28 */
30 /**
31 * Control
32 */
34 /**
35 * Advanced Control
36 */
38 /**
39 * Override feedback output
40 */
42 /**
43 * Trajectory points
44 */
46};
47
48/**
49 * Class to handle promotion of controlFrame to controlFrameEnhanced
50 */
52 /**
53 * Promotes a ControlFrame to a ControlFrameEnhanced
54 * @param controlFrame frame to promote
55 * @return promoted ControlFrame
56 */
57 static ControlFrameEnhanced Promote(ControlFrame controlFrame) {
58 return (ControlFrameEnhanced) controlFrame;
59 }
60};
61
62}
63}
64}
65
Class to handle promotion of controlFrame to controlFrameEnhanced.
Definition: ControlFrame.h:51
ControlFrameEnhanced
Control Frames for enhanced motor controllers.
Definition: ControlFrame.h:29
@ Control_5_FeedbackOutputOverride_
Override feedback output.
Definition: ControlFrame.h:41
@ Control_3_General_
Control.
Definition: ControlFrame.h:33
@ Control_6_MotProfAddTrajPoint_
Trajectory points.
Definition: ControlFrame.h:45
@ Control_4_Advanced_
Advanced Control.
Definition: ControlFrame.h:37
ControlFrame
Control Frames for motor controllers.
Definition: ControlFrame.h:11
@ Control_4_Advanced
Advanced Control.
Definition: ControlFrame.h:19
@ Control_3_General
Control.
Definition: ControlFrame.h:15
@ Control_6_MotProfAddTrajPoint
Trajectory points.
Definition: ControlFrame.h:23
namespace ctre
Definition: paramEnum.h:5