001package com.ctre.phoenix.motorcontrol; 002 003/** 004 * Choose the neutral mode for a motor controller 005 */ 006public enum NeutralMode { 007 /** Use the NeutralMode that is set in the MC's persistent storage. */ 008 EEPROMSetting(0), 009 /** When commanded to neutral, motor leads are set to high-impedance, allowing mechanism to coast. */ 010 Coast(1), 011 /** When commanded to neutral, motor leads are commonized electrically to reduce motion. */ 012 Brake(2); 013 014 /** 015 * Value of NeutralMode 016 */ 017 public int value; 018 /** 019 * Create NeutralMode from specified value 020 * @param value Value of NeutralMode 021 */ 022 NeutralMode(int value) 023 { 024 this.value = value; 025 } 026};