67 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
68 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
69 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
84 std::string
toString(std::string prependString) {
103struct [[deprecated("This device's Phoenix 5 API is deprecated for removal in the 2025 season."
104 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
105 "A migration guide is available at https:
116 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
117 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
118 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
120 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
121 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
122 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
124 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
125 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
126 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
128 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
129 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
130 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
132 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
133 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
134 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
136 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
137 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
138 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
140 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
141 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
142 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
144 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
145 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
146 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
148 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
149 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
150 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
152 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
153 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
154 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
156 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
157 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
158 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
176enum class [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
177 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
178 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
225class [[deprecated("This device's Phoenix 5 API is deprecated for removal in the 2025 season."
226 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
227 "A migration guide is available at https:
238 Pigeon2(
int deviceNumber, std::string
const &canbus =
"");
246 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
247 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
248 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
257 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
258 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
259 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
272 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
273 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
274 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
415 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
416 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
417 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
428 [[deprecated(
"This device's Phoenix 5 API is deprecated for removal in the 2025 season."
429 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
430 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
Pigeon IMU Class.
Definition: BasePigeon.h:101
Pigeon 2 Class.
Definition: Pigeon2.h:228
ErrorCode ConfigZAxisGyroError(double err, int timeoutMs=0)
Configures the Z Axis Gyroscope Error for 1 rotation.
ErrorCode GetGravityVector(double gravVector[3]) const
Get the Gravity Vector.
ErrorCode ConfigEnableCompass(bool enable, int timeoutMs=0)
Enables the magnetometer fusion for Pigeon2.
ErrorCode ConfigDisableTemperatureCompensation(bool disable, int timeoutMs=0)
Disables temperature compensation from Pigeon2.
ErrorCode ZeroGyroBiasNow(int timeoutMs=0)
Performs an offset calibration on gyro bias.
ErrorCode ConfigDisableNoMotionCalibration(bool disable, int timeoutMs=0)
Disables the no-motion calibration from Pigeon2.
ErrorCode GetFaults(Pigeon2_Faults &toFill)
Gets the fault status.
ErrorCode ConfigYAxisGyroError(double err, int timeoutMs=0)
Configures the Y Axis Gyroscope Error for 1 rotation.
ErrorCode GetStickyFaults(Pigeon2_StickyFaults &toFill)
Gets the sticky fault status.
void GetAllConfigs(Pigeon2Configuration &allConfigs, int timeoutMs=50)
Gets all persistant settings.
ErrorCode ConfigXAxisGyroError(double err, int timeoutMs=0)
Configures the X Axis Gyroscope Error for 1 rotation.
ErrorCode ConfigMountPosePitch(double pitch, int timeoutMs=0)
Configure the mounting pose Pitch of the Pigeon2.
Pigeon2(int deviceNumber, std::string const &canbus="")
Create a Pigeon object that communicates with Pigeon on CAN Bus.
ErrorCode ConfigAllSettings(Pigeon2Configuration &settings, int timeoutMs=50)
Configures all persistent settings.
ErrorCode ConfigMountPose(AxisDirection forward, AxisDirection up, int timeoutMs=50)
Configure the Mount Pose using the primary axis.
ErrorCode ConfigMountPoseYaw(double yaw, int timeoutMs=0)
Configure the mounting pose Yaw of the Pigeon2.
ErrorCode ConfigMountPoseRoll(double roll, int timeoutMs=0)
Configure the mounting pose Roll of the Pigeon2.
ErrorCode ConfigMountPose(double yaw, double pitch, double roll, int timeoutMs=0)
Configure the mounting pose of the Pigeon2.
AxisDirection
Enumerations for what primary axis to talk about Positive indicates in n the direction,...
Definition: Pigeon2.h:179
ErrorCode
Definition: ErrorCode.h:13
namespace ctre
Definition: paramEnum.h:5
Configurables for any custom param configs.
Definition: CustomParamConfiguration.h:11
int customParam1
Custom Param 1.
Definition: CustomParamConfiguration.h:19
bool enableOptimizations
Enable optimizations for ConfigAll (defaults true)
Definition: CustomParamConfiguration.h:23
int customParam0
Custom Param 0.
Definition: CustomParamConfiguration.h:15
std::string toString()
Definition: CustomParamConfiguration.h:34
Sticky faults available to Pigeon.
Definition: Pigeon2_Faults.h:25
Sticky faults available to Pigeon.
Definition: Pigeon2_StickyFaults.h:25
Util class to help with Pigeon configurations.
Definition: Pigeon2.h:106
static bool DisableTemperatureCompensationDifferent(const Pigeon2Configuration &settings)
Definition: Pigeon2.h:135
static bool CustomParam1Different(const Pigeon2Configuration &settings)
Definition: Pigeon2.h:159
static bool ZAxisGyroErrorDifferent(Pigeon2Configuration settings)
Definition: Pigeon2.h:151
static bool MountPoseYawDifferent(const Pigeon2Configuration &settings)
Determine if specified value is different from default.
Definition: Pigeon2.h:119
static bool YAxisGyroErrorDifferent(Pigeon2Configuration settings)
Definition: Pigeon2.h:147
static bool EnableCompassDifferent(const Pigeon2Configuration &settings)
Definition: Pigeon2.h:131
static bool DisableNoMotionCalibrationDifferent(const Pigeon2Configuration &settings)
Definition: Pigeon2.h:139
static bool MountPosePitchDifferent(const Pigeon2Configuration &settings)
Definition: Pigeon2.h:123
static bool CustomParam0Different(const Pigeon2Configuration &settings)
Definition: Pigeon2.h:155
static bool XAxisGyroErrorDifferent(Pigeon2Configuration settings)
Definition: Pigeon2.h:143
static bool MountPoseRollDifferent(const Pigeon2Configuration &settings)
Definition: Pigeon2.h:127
Configurables available to Pigeon.
Definition: Pigeon2.h:56
bool EnableCompass
Definition: Pigeon2.h:60
bool DisableNoMotionCalibration
Definition: Pigeon2.h:62
std::string toString(std::string prependString)
Definition: Pigeon2.h:84
double ZAxisGyroError
Definition: Pigeon2.h:65
double YAxisGyroError
Definition: Pigeon2.h:64
std::string toString()
Definition: Pigeon2.h:75
Pigeon2Configuration()
Definition: Pigeon2.h:70
double XAxisGyroError
Definition: Pigeon2.h:63
bool DisableTemperatureCompensation
Definition: Pigeon2.h:61
double MountPoseYaw
Definition: Pigeon2.h:57
double MountPoseRoll
Definition: Pigeon2.h:59
double MountPosePitch
Definition: Pigeon2.h:58