001package com.ctre.phoenix.motorcontrol;
002
003/**
004 * The different status frames available to motor controllers
005 */
006public enum StatusFrame {
007        /** 
008         * General Status
009         */
010        Status_1_General(0x1400),
011        /**
012         * Feedback for selected sensor on primary PID[0].
013         */
014        Status_2_Feedback0(0x1440),
015        /**
016         * Analog sensor, motor controller 
017         * temperature, and voltage at input leads
018         */
019        Status_4_AinTempVbat(0x14C0),
020        /**
021         * Miscellaneous signals
022         */
023        Status_6_Misc(0x1540),
024        /**
025         * Communication status
026         */
027        Status_7_CommStatus(0x1580),
028        /**
029         * Motion profile buffer status
030         */
031        Status_9_MotProfBuffer(0x1600),
032
033        /**
034         * Old name for Status 10
035         * @see #Status_10_Targets Use Status_10_Targets instead.
036         */
037        Status_10_MotionMagic(0x1640),
038        /**
039         * Correct name for Status 10
040         * @see #Status_10_MotionMagic Functionally equivalent to Status_10_MotionMagic
041         */
042        Status_10_Targets(0x1640),
043
044        /**
045         * Feedback for selected sensor on aux PID[1].
046         */
047        Status_12_Feedback1(0x16C0),
048        /**
049         * Primary PID
050         */
051        Status_13_Base_PIDF0(0x1700),
052        /**
053         * Auxiliary PID
054         */
055        Status_14_Turn_PIDF1(0x1740),
056        /**
057         * Firmware & API status information
058         */
059        Status_15_FirmwareApiStatus(0x1780),
060
061
062        /** MotionProfile Targets for Auxiliary PID1. */
063        Status_17_Targets1(0x1C00);
064
065        /**
066         * Value of StatusFrame
067         */
068        public int value;
069        /**
070         * Create StatusFrame of specified value
071         * @param value Value of StatusFrame
072         */
073        StatusFrame(int value)
074        {
075                this.value = value;
076        }
077};