CTRE Phoenix C++ 5.35.1
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
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 CANdleConfigUtil.h:8
Definition MotionProfileStatus.h:9
namespace can
Definition WPI_TalonSRX.h:31
namespace motorcontrol
Definition NeutralMode.h:6
sensors namespace
Definition CANCoderStatusFrame.h:6
signals namespace
Definition MovingAverage.h:27
schedulers namespace
Definition ConcurrentScheduler.h:13
tasking namespace
Definition ButtonMonitor.h:15
namespace phoenix
Definition CANCoderStatusFrame.h:5
WPI Compliant CANcoder class.
Definition CANCoderStatusFrame.h:4