CTRE Phoenix C++ 5.33.1
MagnetFieldStrength.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3namespace ctre {
4 namespace phoenix {
5 namespace sensors {
6 /**
7 * Indicates the magnet field strength of a magnet-based sensor
8 *
9 * @deprecated This device's Phoenix 5 API is deprecated for removal in the
10 * 2025 season. Users should update to Phoenix 6 firmware and migrate to the
11 * Phoenix 6 API. A migration guide is available at
12 * https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html.
13 *
14 * If the Phoenix 5 API must be used for this device, the device must have 22.X
15 * firmware. This firmware is available in Tuner X after selecting Phoenix 5 in
16 * the firmware year dropdown.
17 */
18 enum [[deprecated("This device's Phoenix 5 API is deprecated for removal in the 2025 season."
19 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
20 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
22 /** Magnet Field strength cannot be determined */
24 /** Magnet field is far too low (too far) or far too high (too close). */
26 /** Magnet field is adequate, sensor can be used in this range with slightly reduced accuracy. */
28 /** Magnet field is ideal */
30 };
31 } // namespace sensors
32 } // namespace phoenix
33} // namespace ctre
MagnetFieldStrength
Indicates the magnet field strength of a magnet-based sensor.
Definition: MagnetFieldStrength.h:21
@ Adequate_OrangeLED
Magnet field is adequate, sensor can be used in this range with slightly reduced accuracy.
Definition: MagnetFieldStrength.h:27
@ BadRange_RedLED
Magnet field is far too low (too far) or far too high (too close).
Definition: MagnetFieldStrength.h:25
@ Invalid_Unknown
Magnet Field strength cannot be determined.
Definition: MagnetFieldStrength.h:23
@ Good_GreenLED
Magnet field is ideal.
Definition: MagnetFieldStrength.h:29
namespace ctre
Definition: paramEnum.h:5