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