Exemplo n.º 1
0
        // constructor
        public FRCMatchTrack()
        {
            InitializeComponent();

            // Maps physical buttons to scoring counts
            //	Auton buttons 0x00-0x07
            //	Teleop buttons 0x10-0x17
            _buttonToScoreMap = new Dictionary <int, int>
            {
                { 0x00, 0 },                    // Auton HAB Level
                { 0x02, 1 },                    // Auton Cargo
                { 0x05, 2 },                    // Auton Hatch
                { 0x03, 5 },                    // Dropped Cargo
                { 0x06, 6 },                    // Dropped Hatch

                { 0x14, 3 },                    // Teleop Cargo
                { 0x17, 4 },                    // Teleop Hatch
                //{ 0x13, 5 },    // Dropped Cargo
                //{ 0x16, 6 },    // Dropped Hatch
                { 0x11, 7 }                             // Teleop HAB Level
            };

            _dataCollector = new CDataCollector();
            _dataCollector.SetMode(MatchMode.Reset);
        }