Loading [MathJax]/extensions/tex2jax.js
CTRE Phoenix C++
5.35.1
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
Enumerations
a
c
d
e
f
g
i
l
m
n
p
r
s
t
v
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
z
Enumerations
Enumerator
a
b
c
f
g
i
l
m
n
o
p
q
r
s
t
u
Related Symbols
Files
File List
File Members
All
c
d
g
i
j
k
l
m
p
s
t
w
Functions
c
j
p
t
Variables
Macros
▼
CTRE Phoenix C++
Deprecated List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
ctre
►
phoenix
►
Phoenix.h
►
ctre
►
ctre
►
ctre
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
Phoenix.h
Go to the documentation of this file.
1
/* Copyright (C) Cross The Road Electronics 2024 */
2
#pragma once
3
4
/* If you are linking Phoenix on a platform that is *not* the NI RoboRIO,
5
* define Phoenix_No_WPI before the Phoenix.h include.
6
* The Phoenix WPI extensions are only available on roboRIO.
7
* This is necessary if compiling on RaspberryPi, Jetson, Linux-Desktop, etc.
8
*/
9
#ifndef Phoenix_No_WPI
10
#define Phoenix_WPI
11
#endif
12
13
#include "
ctre/phoenix/CANifier.h
"
14
#include "
ctre/phoenix/ErrorCode.h
"
15
#include "
ctre/phoenix/paramEnum.h
"
16
#include "
ctre/phoenix/HsvToRgb.h
"
17
#include "
ctre/phoenix/LinearInterpolation.h
"
18
#include "
ctre/phoenix/led/CANdle.h
"
19
#include "
ctre/phoenix/motion/BufferedTrajectoryPointStream.h
"
20
#include "
ctre/phoenix/motion/MotionProfileStatus.h
"
21
#include "
ctre/phoenix/motion/TrajectoryPoint.h
"
22
#include "
ctre/phoenix/motorcontrol/can/TalonSRX.h
"
23
#include "
ctre/phoenix/motorcontrol/can/VictorSPX.h
"
24
#include "
ctre/phoenix/motorcontrol/DemandType.h
"
25
#include "
ctre/phoenix/motorcontrol/Faults.h
"
26
#include "
ctre/phoenix/motorcontrol/FollowerType.h
"
27
#include "
ctre/phoenix/motorcontrol/IMotorController.h
"
28
#include "
ctre/phoenix/motorcontrol/IMotorControllerEnhanced.h
"
29
#include "
ctre/phoenix/motorcontrol/InvertType.h
"
30
#include "
ctre/phoenix/motorcontrol/SensorCollection.h
"
31
#include "
ctre/phoenix/sensors/CANCoder.h
"
32
#include "
ctre/phoenix/sensors/PigeonIMU.h
"
33
#include "
ctre/phoenix/signals/MovingAverage.h
"
34
#include "
ctre/phoenix/tasking/Schedulers/ConcurrentScheduler.h
"
35
#include "
ctre/phoenix/tasking/ILoopable.h
"
36
#include "
ctre/phoenix/tasking/IProcessable.h
"
37
#include "
ctre/phoenix/Utilities.h
"
38
39
#ifdef Phoenix_WPI
40
#include "
ctre/phoenix/motorcontrol/can/WPI_TalonSRX.h
"
41
#include "
ctre/phoenix/motorcontrol/can/WPI_VictorSPX.h
"
42
#include "
ctre/phoenix/sensors/WPI_CANCoder.h
"
43
#include "
ctre/phoenix/sensors/WPI_PigeonIMU.h
"
44
#include "
ctre/phoenix/tasking/ButtonMonitor.h
"
45
#endif
46
47
/*
48
* In general it is bad-practice to include namespaces in a C++ header, as this
49
* can cause a name conflict with other types in other modules.
50
*
51
* However doing so allows users to quickly start developing with the Phoenix class library
52
* with a single include "Phoenix.h", without having to learn the various namespaces.
53
* This is particularly useful for aspiring student-programmers who may not understand all of the language features yet.
54
*
55
* Those who understand the benefits of namespaces can instead include the core headers (above)
56
* or modify this header if proper namespace-scoping is required.
57
*/
58
using namespace
ctre
;
59
using namespace
ctre::phoenix
;
60
using namespace
ctre::phoenix::led
;
61
using namespace
ctre::phoenix::motion
;
62
using namespace
ctre::phoenix::motorcontrol
;
63
using namespace
ctre::phoenix::motorcontrol::can
;
64
using namespace
ctre::phoenix::sensors
;
65
using namespace
ctre::phoenix::signals
;
66
using namespace
ctre::phoenix::tasking
;
67
using namespace
ctre::phoenix::tasking::schedulers
;
BufferedTrajectoryPointStream.h
ButtonMonitor.h
CANCoder.h
CANdle.h
CANifier.h
ConcurrentScheduler.h
DemandType.h
ErrorCode.h
Faults.h
FollowerType.h
HsvToRgb.h
ILoopable.h
IMotorController.h
IMotorControllerEnhanced.h
IProcessable.h
InvertType.h
LinearInterpolation.h
MotionProfileStatus.h
MovingAverage.h
PigeonIMU.h
SensorCollection.h
TalonSRX.h
TrajectoryPoint.h
Utilities.h
VictorSPX.h
WPI_CANCoder.h
WPI_PigeonIMU.h
WPI_TalonSRX.h
WPI_VictorSPX.h
ctre::phoenix::led
Definition
CANdleConfigUtil.h:8
ctre::phoenix::motion
Definition
MotionProfileStatus.h:9
ctre::phoenix::motorcontrol::can
namespace can
Definition
WPI_TalonSRX.h:31
ctre::phoenix::motorcontrol
namespace motorcontrol
Definition
NeutralMode.h:6
ctre::phoenix::sensors
sensors namespace
Definition
CANCoderStatusFrame.h:6
ctre::phoenix::signals
signals namespace
Definition
MovingAverage.h:27
ctre::phoenix::tasking::schedulers
schedulers namespace
Definition
ConcurrentScheduler.h:13
ctre::phoenix::tasking
tasking namespace
Definition
ButtonMonitor.h:15
ctre::phoenix
namespace phoenix
Definition
CANCoderStatusFrame.h:5
ctre
WPI Compliant CANcoder class.
Definition
CANCoderStatusFrame.h:4
paramEnum.h
ctre
Phoenix.h
Generated by
1.12.0