/// <summary> /// Put the buggy in reverse. /// </summary> public void Reverse() { Stop(); FrontLeftWheel.Reverse(); FrontRightWheel.Reverse(); RearLeftWheel.Reverse(); RearRightWheel.Reverse(); Direction = Directions.Reverse; 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 right. /// </summary> public void ShuffleRight() { Stop(); FrontLeftWheel.Forward(); RearLeftWheel.Reverse(); FrontRightWheel.Reverse(); RearRightWheel.Forward(); Direction = Directions.ShufflingRight; Start(); }