Take Off and Land

To take off and land, we need to understand two maneuver functions.

 

FlySet

FlySet( int MotorPower, int Rudder, int Elevator ) ;

This is your main maneuver function.  It takes three inputs:

  1. int MotorPower
    – Put a number here (0 to 100) to control the overall speed of the Wing
  2. int Rudder
    – This input (-100 to 100) will control the yaw (left and right turning) of the Wing.  +100 will turn right, -100 will turn left.
  3. int Elevator
    – This input (-100 to 100) will control the pitch (up and down angle) of the Wing.  +100 will pitch up, -100 will pitch down.

 

delay_ms

delay_ms( int milliseconds);

This function will determine how long the previous FlySet is performed for.  Works as a  delay() .

  1. int milliseconds
    – This input determines how long (in milliseconds) the previous FlySet is performed for.

 

Take Off and Land

To take off and land, you will increase speed and pitch upwards, then decrease speed and pitch slightly down.  Rudder will not be used, since we do not want to turn at all.