Skip to content

Commit

Permalink
flightplans
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed Sep 9, 2023
1 parent 0c686f6 commit c66bde0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
6 changes: 3 additions & 3 deletions conf/flight_plans/tudelft/nederdrone_terschelling.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@
<set value="FALSE" var="force_forward"/>
<call_once fun="NavResurrect()"/>
<call_once fun="nav_set_heading_current()"/>
<attitude pitch="-60" roll="0" throttle="0" until="stage_time>1" vmode="throttle"/>
<attitude pitch="-45" roll="0" throttle="0" until="stage_time>1" vmode="throttle"/>
</block>
<block name="TakeoffLow" strip_button="Takeoff" strip_icon="takeoff.png">
<exception cond="GetPosHeight() @GT 18.0" deroute="Takeoff"/>
<call_once fun="nav_set_heading_current()"/>
<attitude pitch="-40." roll="0" throttle="0.8" vmode="throttle"/>
<call_once fun="autopilot_set_in_flight(true)"/>
<attitude pitch="-45." roll="0" throttle="0.8" vmode="throttle"/>
</block>
<block name="Takeoff" strip_button="Takeoff" strip_icon="takeoff.png">
<exception cond="GetPosHeight() @GT 40.0" deroute="Standby"/>
Expand All @@ -89,7 +90,6 @@
</block>
<block name="go_p2">
<set value="TRUE" var="force_forward"/>
<call_once fun="nav_set_heading_deg(90)"/>
<go wp="p2"/>
<deroute block="stay_p1"/>
</block>
Expand Down
11 changes: 6 additions & 5 deletions conf/flight_plans/tudelft/nederdrone_troia.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<waypoint lat="38.474472222222225" lon="-8.871222222222222" name="HOME"/>
<waypoint lat="38.476515" lon="-8.868380" name="CLIMB"/>
<waypoint lat="38.476331" lon="-8.869787" name="STDBY"/>
<waypoint lat="38.476331" lon="-8.865787" name="CIRCLE"/>
<waypoint lat="38.476940" lon="-8.867501" name="p1"/>
<waypoint lat="38.481886" lon="-8.856215" name="p2"/>
<!-- <waypoint lat="38.478809" lon="-8.851799" name="p3"/> -->
Expand Down Expand Up @@ -136,12 +137,13 @@
<set value="FALSE" var="force_forward"/>
<call_once fun="NavResurrect()"/>
<call_once fun="nav_set_heading_current()"/>
<attitude pitch="-50" roll="0" throttle="0.8" until="stage_time>0" vmode="throttle"/>
<attitude pitch="-45" roll="0" throttle="0.0" until="stage_time>1" vmode="throttle"/>
</block>
<block name="TakeoffLow">
<exception cond="GetPosHeight() @GT 18.0" deroute="Takeoff"/>
<call_once fun="autopilot_set_in_flight(true)"/>
<call_once fun="nav_set_heading_current()"/>
<attitude pitch="-45." roll="0" throttle="0.9" vmode="throttle"/>
<attitude pitch="-45." roll="0" throttle="0.8" vmode="throttle"/>
</block>
<block name="Takeoff">
<exception cond="GetPosHeight() @GT 70.0" deroute="GO NORTH"/>
Expand Down Expand Up @@ -178,7 +180,6 @@
</block>
<block name="go_p2">
<set value="TRUE" var="force_forward"/>
<call_once fun="nav_set_heading_deg(90)"/>
<go wp="p2"/>
<deroute block="stay_p1"/>
</block>
Expand All @@ -192,9 +193,9 @@
<exception cond="GpsFixValid()" deroute="GO NORTH"/>
<attitude pitch="0" roll="0" climb="-1.0" vmode="climb"/>
</block>
<block name="Oval">
<block name="Circle">
<set value="TRUE" var="force_forward"/>
<oval p1="p1" p2="p2" radius="nav.radius"/>
<circle radius="nav.radius" wp="CIRCLE"/>
</block>
<block name="land here">
<set value="FALSE" var="force_forward"/>
Expand Down
8 changes: 4 additions & 4 deletions conf/flight_plans/tudelft/nederdrone_valkenburg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@
<call_once fun="NavKillThrottle()"/>
<attitude pitch="0" roll="0" throttle="0" until="FALSE" vmode="throttle"/>
</block>
<block name="Start Engine">
<block name="Start Engine" strip_button="Takeoff" strip_icon="takeoff.png">
<set value="FALSE" var="force_forward"/>
<call_once fun="NavResurrect()"/>
<call_once fun="nav_set_heading_current()"/>
<attitude pitch="-65" roll="0" throttle="0" until="stage_time>1" vmode="throttle"/>
<attitude pitch="-45" roll="0" throttle="0.0" until="stage_time>1" vmode="throttle"/>
</block>
<block name="TakeoffLow" strip_button="Takeoff" strip_icon="takeoff.png">
<block name="TakeoffLow">
<exception cond="GetPosHeight() @GT 18.0" deroute="Takeoff"/>
<call_once fun="autopilot_set_in_flight(true)"/>
<call_once fun="nav_set_heading_current()"/>
<attitude pitch="-45." roll="0" throttle="0.8" vmode="throttle"/>
</block>
Expand Down Expand Up @@ -106,7 +107,6 @@
</block>
<block name="go_p2">
<set value="TRUE" var="force_forward"/>
<call_once fun="nav_set_heading_deg(90)"/>
<go wp="p2"/>
<deroute block="stay_p1"/>
</block>
Expand Down

0 comments on commit c66bde0

Please sign in to comment.