Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Logo600 flight on Kalamos in belgium
- Loading branch information
1 parent
b2c7f59
commit 828e0b5
Showing
5 changed files
with
108 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<!DOCTYPE flight_plan SYSTEM "../flight_plan.dtd"> | ||
|
||
<flight_plan alt="180" ground_alt="150" lat0="51 24 20.2212" lon0="4 27 33.192" max_dist_from_home="150" name="Logo600_Belgie" security_height="2"> | ||
<header> | ||
#include "autopilot.h" | ||
</header> | ||
<waypoints> | ||
<waypoint name="HOME" x="0.0" y="0.0"/> | ||
<waypoint name="CLIMB" x="0.0" y="5.0"/> | ||
<waypoint name="STDBY" x="-2.0" y="-5.0"/> | ||
<waypoint name="p1" x="3.6" y="-13.9"/> | ||
<waypoint name="p2" x="27.5" y="-48.2"/> | ||
<waypoint name="p3" x="16.7" y="-19.6"/> | ||
<waypoint name="p4" x="13.7" y="-40.7"/> | ||
<waypoint name="CAM" x="-20" y="-50" height="2."/> | ||
<waypoint name="TD" x="5.6" y="-10.9"/> | ||
<waypoint name="KALAMOS" x="0.0" y="120.0"/> | ||
</waypoints> | ||
<blocks> | ||
<block name="Wait GPS"> | ||
<call fun="NavKillThrottle()"/> | ||
<while cond="!GpsFixValid()"/> | ||
</block> | ||
<block name="Geo init"> | ||
<while cond="LessThan(NavBlockTime(), 10)"/> | ||
<call fun="NavSetGroundReferenceHere()"/> | ||
<!--<call fun="NavSetAltitudeReferenceHere()"/>--> | ||
</block> | ||
<block name="Holding point"> | ||
<call fun="NavKillThrottle()"/> | ||
<attitude pitch="0" roll="0" throttle="0" vmode="throttle" until="FALSE"/> | ||
</block> | ||
<block name="Start Engine"> | ||
<call fun="NavResurrect()"/> | ||
<attitude pitch="0" roll="0" throttle="0" vmode="throttle" until="FALSE"/> | ||
</block> | ||
<block name="Takeoff" strip_button="Takeoff" strip_icon="takeoff.png"> | ||
<exception cond="stateGetPositionEnu_f()->z > 2.0" deroute="Standby"/> | ||
<call fun="NavSetWaypointHere(WP_CLIMB)"/> | ||
<stay vmode="climb" climb="nav_climb_vspeed" wp="CLIMB"/> | ||
</block> | ||
<block name="Standby" strip_button="Standby" strip_icon="home.png"> | ||
<stay wp="STDBY"/> | ||
</block> | ||
<block name="stay_kalamos"> | ||
<stay wp="KALAMOS"/> | ||
</block> | ||
<block name="go_p2"> | ||
<call fun="nav_set_heading_deg(90)"/> | ||
<go wp="p2"/> | ||
<deroute block="stay_kalamos"/> | ||
</block> | ||
<block name="line_p1_p2"> | ||
<go from="p1" hmode="route" wp="p2"/> | ||
<stay wp="p2" until="stage_time>10"/> | ||
<go from="p2" hmode="route" wp="p1"/> | ||
<deroute block="stay_kalamos"/> | ||
</block> | ||
<block name="route"> | ||
<go from="p1" hmode="route" wp="p3"/> | ||
<go from="p3" hmode="route" wp="p4"/> | ||
<go from="p4" hmode="route" wp="p1"/> | ||
<deroute block="stay_kalamos"/> | ||
</block> | ||
<block name="Oval"> | ||
<oval p1="p1" p2="p2" radius="-1"/> | ||
</block> | ||
<block name="test yaw"> | ||
<go wp="p1"/> | ||
<for var="i" from="1" to="16"> | ||
<heading alt="WaypointAlt(WP_p1)" course="90 * $i" until="stage_time > 3"/> | ||
</for> | ||
<deroute block="Standby"/> | ||
</block> | ||
<block name="circle CAM" pre_call="nav_set_heading_towards_waypoint(WP_CAM)"> | ||
<circle radius="nav_radius" wp="CAM"/> | ||
</block> | ||
<block name="land here" strip_button="Land Here" strip_icon="land-right.png"> | ||
<call fun="NavSetWaypointHere(WP_TD)"/> | ||
</block> | ||
<block name="land"> | ||
<go wp="TD"/> | ||
</block> | ||
<block name="flare"> | ||
<exception cond="NavDetectGround()" deroute="Holding point"/> | ||
<exception cond="!nav_is_in_flight()" deroute="landed"/> | ||
<call fun="NavStartDetectGround()"/> | ||
<stay climb="nav_descend_vspeed" vmode="climb" wp="TD"/> | ||
</block> | ||
<block name="landed"> | ||
<attitude pitch="0" roll="0" throttle="0" vmode="throttle" until="FALSE"/> | ||
</block> | ||
</blocks> | ||
</flight_plan> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters