Esempio n. 1
0
        /// <summary>
        /// Turns the L2 Bot approximately 3 degrees left. This used used to 
        /// correct the L2 Bot's angle.
        /// </summary>
        public void turn3DegreesLeft()
        {
            LoCoMoCo.LoCoMoCo motorController = new LoCoMoCo.LoCoMoCo(PORT);

            motorController.move(LoCoMoCo.LoCoMoCo.BACKWARD, LoCoMoCo.LoCoMoCo.FORWARD);

            Thread.Sleep(DEGREE_3_MOTOR_SECONDS);

            motorController.stop();
            motorController.close();
        }
Esempio n. 2
0
        /// <summary>
        /// Move the L2 Bot forward a small amount when the robot has not 
        /// been able to move forward enough to be centered on the column.
        /// </summary>
        public void driveForwardCorrection()
        {
            LoCoMoCo.LoCoMoCo motorController = new LoCoMoCo.LoCoMoCo(PORT);

            motorController.forward();

            Thread.Sleep(MOTOR_FORWARD_CORRECTION_SECONDS);

            motorController.stop();
            motorController.close();
        }