Esempio n. 1
0
        /// <summary>
        /// Move the buggy forward.
        /// </summary>
        public void Forward()
        {
            Stop();

            FrontLeftWheel.Forward();
            FrontRightWheel.Forward();
            RearLeftWheel.Forward();
            RearRightWheel.Forward();

            Direction = Directions.Forward;
            Start();
        }
Esempio n. 2
0
        /// <summary>
        /// Move the buggy forward and turn to the left.
        /// </summary>
        public void TurnLeft()
        {
            Stop();

            FrontLeftWheel.Stop();
            FrontRightWheel.Forward();
            RearLeftWheel.Stop();
            RearRightWheel.Forward();
            Direction = Directions.TurningLeft;

            Start();
        }
Esempio n. 3
0
        /// <summary>
        /// Rotate the buggy left (on the spot).
        /// </summary>
        public void RotateLeft()
        {
            Stop();

            FrontLeftWheel.Reverse();
            RearLeftWheel.Reverse();

            FrontRightWheel.Forward();
            RearRightWheel.Forward();
            Direction = Directions.RotatingLeft;

            Start();
        }
Esempio n. 4
0
        /// <summary>
        /// Move the buggy left.
        /// </summary>
        public void ShuffleLeft()
        {
            Stop();

            FrontLeftWheel.Reverse();
            RearLeftWheel.Forward();

            FrontRightWheel.Forward();
            RearRightWheel.Reverse();
            Direction = Directions.ShufflingLeft;

            Start();
        }