Ejemplo n.º 1
0
        private void cbMatchMode_SelectedIndexChanged(object sender, EventArgs e)
        {
            var index = cbMatchMode.SelectedIndex;

            btnNextMode.Enabled = index < cbMatchMode.Items.Count - 1;
            _dataCollector.SetMode((MatchMode)index);
        }
Ejemplo n.º 2
0
        private void cbMatchMode_SelectedIndexChanged(object sender, EventArgs e)
        {
            var index = MatchModeCombo.SelectedIndex;

            btnNextMode.Enabled = index < MatchModeCombo.Items.Count - 1;
            _dataCollector.SetMode((MatchMode)index);
            EditGroup.Enabled = MatchModeCombo.Text == "Edit";
        }
Ejemplo n.º 3
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);
        }