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