CTRE Phoenix C++ 5.35.1
Loading...
Searching...
No Matches
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 } // namespace motorcontrol
21 } // namespace phoenix
22} // namespace ctre
InvertType
Choose the invert type of the motor controller.
Definition InvertType.h:14
@ InvertMotorOutput
Same as SetInverted(true)
@ FollowMaster
Follow the invert of the master this MC is following.
@ OpposeMaster
Opposite of the invert of the master this MC is following.
@ None
Position and velocity will read 0.
WPI Compliant CANcoder class.
Definition CANCoderStatusFrame.h:4