CTRE Phoenix C++ 5.33.1
InvertType.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
4#include <string>
5namespace ctre {
6 namespace phoenix {
7 namespace motorcontrol {
8 /**
9 * Choose the invert type of the motor controller.
10 * None is the equivalent of SetInverted(false), where positive request yields positive voltage on M+.
11 * InvertMotorOutput is the equivelant of SetInverted(true), where positive request yields positive voltage on M-.
12 * FollowMaster/OpposeMaster will match/oppose a master Talon/Victor. This requires device to be configured as a follower.
13 */
14 enum class InvertType {
15 None = 0, //!< Same as SetInverted(false)
16 InvertMotorOutput = 1, //!< Same as SetInverted(true)
17 FollowMaster = 2, //!< Follow the invert of the master this MC is following.
18 OpposeMaster = 3, //!< Opposite of the invert of the master this MC is following.
19 };
20 /**
21 * Choose the invert type for a Talon FX based integrated motor controller.
22 * CCW is the equivalent of SetInverted(false), CW is the equivalent of SetInverted(true).
23 * FollowMaster/OpposeMaster will match/oppose a master Talon/Victor. This requires device to be configured as a follower.
24 *
25 * @deprecated This device's Phoenix 5 API is deprecated for removal in the
26 * 2025 season. Users should update to Phoenix 6 firmware and migrate to the
27 * Phoenix 6 API. A migration guide is available at
28 * https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html.
29 *
30 * If the Phoenix 5 API must be used for this device, the device must have 22.X
31 * firmware. This firmware is available in Tuner X after selecting Phoenix 5 in
32 * the firmware year dropdown.
33 */
34 enum class [[deprecated("This device's Phoenix 5 API is deprecated for removal in the 2025 season."
35 "Users should update to Phoenix 6 firmware and migrate to the Phoenix 6 API."
36 "A migration guide is available at https://v6.docs.ctr-electronics.com/en/stable/docs/migration/migration-guide/index.html")]]
38 CounterClockwise = 0, //!< Same as SetInverted(false)
39 Clockwise = 1, //!< Same as SetInverted(true)
40 FollowMaster = 2, //!< Follow the invert of the master this MC is following.
41 OpposeMaster = 3, //!< Opposite of the invert of the master this MC is following.
42 };
43 } // namespace motorcontrol
44 } // namespace phoenix
45} // namespace ctre
InvertType
Choose the invert type of the motor controller.
Definition: InvertType.h:14
@ InvertMotorOutput
Same as SetInverted(true)
@ None
Same as SetInverted(false)
@ FollowMaster
Follow the invert of the master this MC is following.
@ OpposeMaster
Opposite of the invert of the master this MC is following.
TalonFXInvertType
Choose the invert type for a Talon FX based integrated motor controller.
Definition: InvertType.h:37
@ CounterClockwise
Same as SetInverted(false)
namespace ctre
Definition: paramEnum.h:5