001/* Copyright (C) Cross The Road Electronics 2024 */
002package com.ctre.phoenix.motorcontrol;
003
004/**
005 * Choose the invert type of the motor controller.
006 * None is the equivalent of SetInverted(false), where positive request yields positive voltage on M+.
007 * InvertMotorOutput is the equivelant of SetInverted(true), where positive request yields positive voltage on M-.
008 * FollowMaster/OpposeMaster will match/oppose a master Talon/Victor.  This requires device to be configured as a follower.
009 */
010public enum InvertType {
011        /** Same as SetInverted(false) */
012        None(0),
013        /** Same as SetInverted(true) */
014        InvertMotorOutput(1),
015        /** Follow the invert of the master this MC is following */
016        FollowMaster(2),
017        /** Oppose the invert of the master this MC is following */
018    OpposeMaster(3);
019        
020        /**
021         * Value of Invert Type
022         */
023        public int value;
024        /**
025         * Create InvertType of specified value
026         * @param value Value of Invert Type
027         */
028        InvertType(int value)
029        {
030                this.value = value;
031        }
032};