CTRE Phoenix C++ 5.33.1
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
41
42#ifdef Phoenix_WPI
50#endif
51
52/*
53 * In general it is bad-practice to include namespaces in a C++ header, as this
54 * can cause a name conflict with other types in other modules.
55 *
56 * However doing so allows users to quickly start developing with the Phoenix class library
57 * with a single include "Phoenix.h", without having to learn the various namespaces.
58 * This is particularly useful for aspiring student-programmers who may not understand all of the language features yet.
59 *
60 * Those who understand the benefits of namespaces can instead include the core headers (above)
61 * or modify this header if proper namespace-scoping is required.
62 */
63using namespace ctre;
64using namespace ctre::phoenix;
65using namespace ctre::phoenix::led;
66using namespace ctre::phoenix::motion;
67using namespace ctre::phoenix::motorcontrol;
69using namespace ctre::phoenix::music;
70using namespace ctre::phoenix::sensors;
71using namespace ctre::phoenix::signals;
72using namespace ctre::phoenix::tasking;
Definition: CANdleFaults.h:8
Definition: MotionProfileStatus.h:9
namespace can
Definition: PigeonIMU.h:34
namespace motorcontrol
Definition: StickyFaults.h:6
Definition: Orchestra.h:11
sensors namespace
Definition: CANCoderFaults.h:6
signals namespace
Definition: IInvertable.h:7
schedulers namespace
Definition: ConcurrentScheduler.h:13
tasking namespace
Definition: ConcurrentScheduler.h:11
namespace phoenix
Definition: paramEnum.h:6
namespace ctre
Definition: paramEnum.h:5