/// <summary> /// Move the buggy forward. /// </summary> public void Forward() { Stop(); FrontLeftWheel.Forward(); FrontRightWheel.Forward(); RearLeftWheel.Forward(); RearRightWheel.Forward(); Direction = Directions.Forward; Start(); }
/// <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(); }
/// <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(); }
/// <summary> /// Move the buggy left. /// </summary> public void ShuffleLeft() { Stop(); FrontLeftWheel.Reverse(); RearLeftWheel.Forward(); FrontRightWheel.Forward(); RearRightWheel.Reverse(); Direction = Directions.ShufflingLeft; Start(); }