Difference between revisions of "Advanced Navigation Routines"

From PaparazziUAV
Jump to navigation Jump to search
Line 15: Line 15:
     <define name="Height" value="30" unit="m"/>
     <define name="Height" value="30" unit="m"/>
     <define name="Speed" value="15" unit="m/s"/>
     <define name="Speed" value="15" unit="m/s"/>
     <define name="Distance" value="10" unit="m"/>
     <define name="Distance" value="5" unit="m"/>
   </section>
   </section>
To use this routine include OSAM

Revision as of 18:42, 6 December 2008

OSAM Team Navigation Routines

Flower

The flower navigation routine flies the aircraft in a flower pattern defined by two waypoints. The center waypoint defines the center of the flower and the altitude the plane flies at. The edge waypoint defines the radius of the flower. To use this navigation routine, you need to include OSAMNav.h in your flight plane and OSAMNav.c to your airframe file. Then you can add flower to your flight plan like so...

   <block name="Flower">
     <call fun="InitializeFlower(WP_Center,WP_Edge)"/>
     <call fun="FlowerNav()"/>
   </block>

Bungee Takeoff

The bungee takeoff routine helps to automate takeoff by turning the throttle on after the bungee has been release from the hook. The only waypoint you need for this routine is the position of where the bungee is pegged to the ground. Using this waypoint, a line is drawn from the position of the aircraft (when the routine is initialized) to the bungee waypoint called the launch line. When the plane is released, it follows the launch line with the throttle off until it crosses the throttle line. The throttle line is a line perpendicular to the launch line at a distance d from the bungee waypoint. When the plane crosses the throttle line, the throttle comes on. After the throttle comes on, the plane keeps going straight until it reaches a specified speed and altitude above the bungee waypoint altitude. When it reaches the takeoff speed and takeoff altitude, the next block in the flight plan is executed. The takeoff speed, takeoff altitude and the distance d from the bungee waypoint are specified in the airframe file.

 <section name="Takeoff" prefix="Takeoff_">
   <define name="Height" value="30" unit="m"/>
   <define name="Speed" value="15" unit="m/s"/>
   <define name="Distance" value="5" unit="m"/>
 </section>

To use this routine include OSAM