Loading [MathJax]/jax/input/TeX/config.js
CTRE Phoenix C++ 5.34.0-beta-4
All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Pages
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
38
39#ifdef Phoenix_WPI
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 */
58using namespace ctre;
59using namespace ctre::phoenix;
60using namespace ctre::phoenix::led;
61using namespace ctre::phoenix::motion;
62using namespace ctre::phoenix::motorcontrol;
64using namespace ctre::phoenix::sensors;
65using namespace ctre::phoenix::signals;
66using namespace ctre::phoenix::tasking;
Definition: CANdleFaults.h:8
Definition: TrajectoryPoint.h:6
namespace can
Definition: PigeonIMU.h:34
namespace motorcontrol
Definition: StickyFaults.h:6
sensors namespace
Definition: PigeonIMU_StickyFaults.h:8
signals namespace
Definition: IInvertable.h:7
schedulers namespace
Definition: SequentialScheduler.h:8
tasking namespace
Definition: ILoopable.h:4
namespace phoenix
Definition: CANdleFaults.h:7
namespace ctre
Definition: CANdleFaults.h:6