Skip to content

Commit

Permalink
Fix while forever kalamos init problem
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindehecker committed Sep 24, 2016
1 parent aebe2d4 commit dfe8ca7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions conf/flight_plans/TUDELFT/outback_dalby.xml
Expand Up @@ -42,7 +42,7 @@
<module name="nav" type="heli_spinup"/>
</modules>
<exceptions>
<exception cond="(!InsideSafety(GetPosX(), GetPosY()) && !(nav_block == IndexOfBlock('Wait GPS')) && !(nav_block == IndexOfBlock('Geo init')) )" deroute="HoldingPoint"/>
<exception cond="(!InsideSafety(GetPosX(), GetPosY()) && !(nav_block == IndexOfBlock('Wait GPS')) && !(nav_block == IndexOfBlock('Geo init')) && !(nav_block == IndexOfBlock('SLAMDunk init')) )" deroute="HoldingPoint"/>
<exception cond="(!GpsFixValid() &&
!(nav_block == IndexOfBlock('Hold Attitude')) &&
!(nav_block == IndexOfBlock('Takeoff')) &&
Expand All @@ -63,10 +63,8 @@
<call fun="NavSetAltitudeReferenceHere()"/>
<call fun="nav_set_heading_current()"/>
</block>
<block name="Delft tah Kopter SLAM dunk init">
<while cond="!getKalamosReady()">
<manual pitch="0" roll="0" throttle="0" vmode="throttle" yaw="0"/>
</while>
<block name="SLAMDunk init">
<manual pitch="0" roll="0" throttle="0" vmode="throttle" until="getKalamosReady()" yaw="0"/>
<call fun="enableKalamosAttCalib(true)" until="stage_time>15" />
<call fun="enableKalamosAttCalib(false)" loop="false"/>
<set var="opa_controller_vision_power" value="false"/>
Expand Down

0 comments on commit dfe8ca7

Please sign in to comment.