Пример #1
0
        private static void userCode(Helicopter helicopter)
        {
            helicopter.TakeOff();

            helicopter.ChangeThrottle(600);

            //put your commands here:
            //type 'helicopter.' and then see the list of commands you can do.
            helicopter.MoveForward(2000);

            helicopter.TurnRight();

            helicopter.MoveForward(2000);
            
            helicopter.Land();
        }
Пример #2
0
        private static void demo(Helicopter helicopter)
        {
            //Takeoff command - FLY!
            helicopter.TakeOff();

            //Throttle command - LIFT
            helicopter.ChangeThrottle(500);

            //Move forward - watch out im moving forward
            helicopter.MoveForward();

            //Move backward - backing up!
            helicopter.MoveBackward(2000);

            //Turn Left - Think about looking out of the helicopter window
            //helicopter.TurnLeft();

            //Turn right - Think about looking out of the helicopter window
            //helicopter.TurnRight();

            //Landing command
            helicopter.Land();
        }