twog crashes in the first 10 seconds #2

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

twog crashes in the first 10 seconds #2

Chris
UPDATE:
No it wasn't the deletion of the aircraft directories.
For a strange reason when i load the full flight plan it works fine but
as soon i load the light version it hangs totally.
  Here is the flight plan that works and the light one:

<!DOCTYPE flight_plan SYSTEM "../flight_plan.dtd">

<flight_plan alt="600." ground_alt="142" lat0="38.023889"
lon0="23.303550" max_dist_from_home="5500"
name="Cessna_182_Dounis_testing" qfu="0" security_height="200.">
   <header>
#include "my_code.h"
#include "subsystems/ins/ins_alt_float.h"
#include "subsystems/datalink/datalink.h"
#include "subsystems/datalink/datalink.h"
</header>
   <waypoints>
     <waypoint height="100" name="HOME" x="0" y="0"/>
     <waypoint height="40" lat="38.025883" lon="23.303767" name="AF_NORTH"/>
     <waypoint height="40" lat="38.022280" lon="23.303402" name="AF_SOUTH"/>
     <waypoint height="40" name="BASELEG" x="-53.7" y="227.4"/>
     <waypoint height="0" lat="38.024057" lon="23.303581" name="TD"/>
     <waypoint height="0" lat="38.025066" lon="23.303685" name="TD_NORTH"/>
     <waypoint height="0" lat="38.023043" lon="23.303487" name="TD_SOUTH"/>
     <waypoint height="0" name="CAM_POINT" x="-42.2" y="-70.0"/>
     <waypoint height="50" name="RELEASE" x="3.0" y="39.7"/>
     <waypoint alt="600" name="RIGHT_HERE" x="104.9" y="-21.1"/>
     <waypoint alt="600" name="MOB" x="200" y="0"/>
     <waypoint alt="600.0" lat="38.030090" lon="23.305073" name="W1"/>
     <waypoint alt="600.0" lat="38.038230" lon="23.306207" name="W2"/>
     <waypoint alt="600.0" lat="38.047309" lon="23.307306" name="W3"/>
     <waypoint alt="600.0" lat="38.057152" lon="23.308619" name="W4"/>
     <waypoint alt="600.0" lat="38.065004" lon="23.309716" name="TARGET"/>
     <waypoint alt="600.0" lat="38.024769" lon="23.304771" name="END"/>
   </waypoints>
   <sectors/>
   <exceptions/>
   <blocks>
     <block name="Wait GPS">
       <set value="0" var="kill_throttle"/>
       <call fun="Flaps(0.5)"/>
       <set value="WP_TARGET" var="cam_target_wp"/>
       <set value="CAM_MODE_MANUAL" var="cam_mode"/>
       <while cond="!GpsFixValid()"/>
       <set value="FALSE" var="cam_lock"/>
       <set value="WP_HOME" var="cam_target_wp"/>
     </block>
     <block name="Geo init">
       <while cond="LessThan(NavBlockTime(), 10)"/>
       <call fun="NavSetGroundReferenceHere()"/>
       <call fun="NavSetWaypointHere(WP_HOME)"/>
       <set value="GetPosAlt()" var="WaypointAlt(WP_CAM_POINT)"/>
     </block>
     <block name="Holding point">
       <exception cond="GetPosAlt() > ground_alt+20" deroute="standby"/>
       <call fun="Flaps(0.0)"/>
       <attitude roll="0" throttle="0" vmode="throttle"/>
     </block>
     <block name="Takeoff_to_North" strip_button="Takeoff_N"
strip_icon="takeoff.png">
       <exception cond="GetPosAlt() > ground_alt+50" deroute="standby"/>
       <set value="TRUE" var="launch"/>
       <set value="0" var="h_ctl_disabled"/>
       <set value="0" var="kill_throttle"/>
       <go alt="ground_alt+100" from="TD_SOUTH" hmode="route"
wp="TD_NORTH"/>
     </block>
     <block name="Takeoff_to_South" strip_button="Takeoff_S"
strip_icon="takeoff.png">
       <exception cond="GetPosAlt() > ground_alt+50" deroute="standby"/>
       <set value="TRUE" var="launch"/>
       <set value="0" var="h_ctl_disabled"/>
       <set value="0" var="kill_throttle"/>
       <go alt="ground_alt+100" from="TD_NORTH" hmode="route"
wp="TD_SOUTH"/>
     </block>
     <block name="standby" strip_button="standby" strip_icon="home.png">
       <exception cond="datalink_time > 120" deroute="land_North"/>
       <set value="TRUE" var="launch"/>
       <set value="0" var="h_ctl_disabled"/>
       <set value="0" var="kill_throttle"/>
        <set value="ground_alt" var="WaypointAlt(WP_CAM_POINT)"/>
       <set value="CAM_MODE_STABILIZED" var="cam_mode"/>
       <set value="DEFAULT_CIRCLE_RADIUS" var="nav_radius"/>
       <circle alt="ground_alt+100" radius="nav_radius" wp="HOME"/>
     </block>
     <block name="TARGET" strip_button="Go to TARGET" strip_icon="kill.png">
       <exception cond="datalink_time > 30" deroute="RETURN_HOME"/>
        <set value="ground_alt" var="WaypointAlt(WP_CAM_POINT)"/>
       <set value="CAM_MODE_STABILIZED" var="cam_mode"/>
       <go alt="600" from="HOME" hmode="route" wp="W1"/>
       <go alt="600" from="W1" hmode="route" wp="W2"/>
        <go alt="600" from="W2" hmode="route" pitch="auto"
throttle="0.5" wp="W3"/>
        <go alt="600" from="W3" hmode="route" pitch="auto"
throttle="0.5" wp="W4"/>
       <set value="226" var="WaypointAlt(WP_CAM_POINT)"/>
       <set value="WP_TARGET" var="cam_target_wp"/>
       <set value="CAM_MODE_WP_TARGET" var="cam_mode"/>
       <go alt="600" from="W4" hmode="route" pitch="auto" throttle="0.5"
wp="TARGET"/>
     </block>
     <block name="RETURN_HOME" strip_button="Return Home"
strip_icon="home.png">
       <set value="CAM_MODE_WP_HOME" var="cam_mode"/>
        <call fun="NavSetWaypointHere(WP_RIGHT_HERE)"/>
       <set value="GetPosAlt()" var="WaypointAlt(WP_RIGHT_HERE)"/>
       <go alt="WaypointAlt(WP_RIGHT_HERE)" from="RIGHT_HERE"
hmode="route" wp="W1"/>
       <deroute block="standby"/>
     </block>
     <block name="GO_TO_CAM" strip_button="Follow camera"
strip_icon="cam_lock.png">
        <call fun="NavSetWaypointHere(WP_RIGHT_HERE)"/>
       <set value="GetPosAlt()" var="WaypointAlt(WP_RIGHT_HERE)"/>
       <call fun="NavCopyWaypoint(WP_MOB, WP_CAM_POINT)"/>
       <set value="GetPosAlt()" var="WaypointAlt(WP_MOB)"/>
       <set value="WP_MOB" var="cam_target_wp"/>
       <set value="CAM_MODE_WP_TARGET" var="cam_mode"/>
       <go alt="WaypointAlt(WP_MOB)" from="RIGHT_HERE" hmode="route"
wp="MOB"/>
       <circle radius="nav_radius" until="NavCircleCount() > 2" wp="HOME"/>
       <set value="CAM_MODE_STABILIZED" var="cam_mode"/>
       <deroute block="RETURN_HOME"/>
     </block>
     <block name="CIRCLE_HERE" strip_button="Circle here"
strip_icon="observe.png">
       <set value="CAM_MODE_STABILIZED" var="cam_mode"/>
        <call fun="NavSetWaypointHere(WP_RIGHT_HERE)"/>
       <set value="GetPosAlt()" var="WaypointAlt(WP_RIGHT_HERE)"/>
       <circle radius="nav_radius" until="NavCircleCount() > 2"
wp="RIGHT_HERE"/>
       <deroute block="RETURN_HOME"/>
     </block>
     <block name="EMERGENCY" strip_button="Emergency return"
strip_icon="home_emergency.png">
       <exception cond="stateGetSpeedEnu_f()->z > 2" deroute="emergency1"/>
       <exception cond="block_time > 10" deroute="emergency1"/>
       <call fun="NavSetWaypointHere(WP_RIGHT_HERE)"/>
       <set value="(sqrt(dist2_to_home)/GLIDE_RATIO) + ground_alt"
var="WaypointAlt(WP_RIGHT_HERE)"/>
       <go alt="WaypointAlt(WP_RIGHT_HERE)" from="RIGHT_HERE"
hmode="route" wp="W1"/>
     </block>
     <block name="emergency1">
       <exception cond="1.5 > stateGetSpeedEnu_f()->z || GetPosAlt() >
4000 || GetPosAlt() > fabs(WaypointAlt(WP_RIGHT_HERE) - 10)"
deroute="emergency2"/>
       <set value="CAM_MODE_WP_HOME" var="cam_mode"/>
       <set value="ground_alt+100" var="WaypointAlt(WP_W1)"/>
       <go alt="WaypointAlt(WP_RIGHT_HERE)" from="RIGHT_HERE"
hmode="route" wp="W1"/>
     </block>
     <block name="emergency2">
       <exception cond="WaypointAlt(WP_W1) > GetPosAlt()"
deroute="standby"/>
        <set value="CAM_MODE_WP_HOME" var="cam_mode"/>
       <call fun="NavSetWaypointHere(WP_RIGHT_HERE)"/>
       <set value="GetPosAlt()" var="WaypointAlt(WP_RIGHT_HERE)"/>
       <go approaching_time="0" climb="-(STALL_AIRSPEED/GLIDE_RATIO)"
from="RIGHT_HERE" hmode="route" pitch="auto" throttle="0.0"
vmode="climb" wp="W1"/>
       <deroute block="standby"/>
     </block>
     <block name="land_North" strip_button="Land_N"
strip_icon="land-right.png">
        <call fun="nav_compute_baseleg(WP_AF_NORTH, WP_TD_NORTH,
WP_BASELEG, nav_radius)"/>
       <circle radius="nav_radius" until="NavCircleCount() > 0.5"
wp="BASELEG"/>
       <set value="V_CTL_AUTO_THROTTLE_MIN_CRUISE_THROTTLE"
var="v_ctl_auto_throttle_cruise_throttle"/>
       <circle radius="nav_radius"
until="NavQdrCloseTo(DegOfRad(baseleg_out_qdr)-(nav_radius/fabs(nav_radius))*10)
&& 10 > fabs(GetPosAlt() - WaypointAlt(WP_BASELEG))" wp="BASELEG"/>
     </block>
     <block name="final_N">
       <exception cond="ground_alt + 10 > GetPosAlt()" deroute="flare_N1"/>
        <call fun="Flaps(0.3)"/>
       <go from="AF_NORTH" hmode="route" vmode="glide" wp="TD_NORTH"/>
     </block>
     <block name="flare_N1">
       <exception cond="ground_alt + 1 > GetPosAlt()" deroute="flare_N2"/>
        <go approaching_time="0" from="AF_NORTH" hmode="route"
throttle="0.0" vmode="throttle" wp="TD_NORTH"/>
       <call fun="Flaps(1.0)"/>
       <go from="TD_NORTH" hmode="route" throttle="0.0" vmode="throttle"
wp="TD_SOUTH"/>
       <attitude roll="0.0" throttle="0.0" until="FALSE" vmode="throttle"/>
     </block>
     <block name="flare_N2">
        <call fun="Flaps(1.0)"/>
       <go approaching_time="0" climb="-0.1" from="TD_NORTH"
hmode="route" pitch="auto" throttle="0.0" vmode="climb" wp="TD_SOUTH"/>
       <attitude roll="0.0" throttle="0.0" until="FALSE" vmode="throttle"/>
     </block>
     <block name="land_South" strip_button="Land_S"
strip_icon="land-left.png">
        <call fun="nav_compute_baseleg(WP_AF_SOUTH, WP_TD_SOUTH,
WP_BASELEG, nav_radius)"/>
       <circle radius="nav_radius" until="NavCircleCount() > 0.5"
wp="BASELEG"/>
       <set value="V_CTL_AUTO_THROTTLE_MIN_CRUISE_THROTTLE"
var="v_ctl_auto_throttle_cruise_throttle"/>
       <circle radius="nav_radius"
until="NavQdrCloseTo(DegOfRad(baseleg_out_qdr)-(nav_radius/fabs(nav_radius))*10)
&& 10 > fabs(GetPosAlt() - WaypointAlt(WP_BASELEG))" wp="BASELEG"/>
     </block>
     <block name="final_S">
       <exception cond="ground_alt + 10 > GetPosAlt()" deroute="flare_S1"/>
        <call fun="Flaps(0.3)"/>
       <go from="AF_SOUTH" hmode="route" vmode="glide" wp="TD_SOUTH"/>
     </block>
     <block name="flare_S1">
       <exception cond="ground_alt + 1 > GetPosAlt()" deroute="flare_S2"/>
        <go approaching_time="0" from="AF_SOUTH" hmode="route"
throttle="0.0" vmode="throttle" wp="TD_SOUTH"/>
       <call fun="Flaps(1.0)"/>
       <go from="TD_SOUTH" hmode="route" throttle="0.0" vmode="throttle"
wp="TD_NORTH"/>
       <attitude roll="0.0" throttle="0.0" until="FALSE" vmode="throttle"/>
     </block>
     <block name="flare_S2">
        <call fun="Flaps(1.0)"/>
       <go approaching_time="0" climb="-0.1" from="TD_SOUTH"
hmode="route" pitch="auto" throttle="0.0" vmode="climb" wp="TD_NORTH"/>
       <attitude roll="0.0" throttle="0.0" until="FALSE" vmode="throttle"/>
     </block>
   </blocks>
</flight_plan>

NOW THE LIGHT ONE:

<!DOCTYPE flight_plan SYSTEM "../flight_plan.dtd">

<flight_plan alt="600." ground_alt="142" lat0="38.023889"
lon0="23.303550" max_dist_from_home="5500"
name="Cessna_182_Dounis_testing" qfu="0" security_height="200.">
   <header>
#include "my_code.h"
#include "subsystems/ins/ins_alt_float.h"
#include "subsystems/datalink/datalink.h"
#include "subsystems/datalink/datalink.h"
</header>
   <waypoints>
     <waypoint height="100" name="HOME" x="0" y="0"/>
     <waypoint height="40" lat="38.025883" lon="23.303767" name="AF_NORTH"/>
     <waypoint height="40" lat="38.022280" lon="23.303402" name="AF_SOUTH"/>
     <waypoint height="40" name="BASELEG" x="-53.7" y="227.4"/>
     <waypoint height="0" lat="38.024057" lon="23.303581" name="TD"/>
     <waypoint height="0" lat="38.025066" lon="23.303685" name="TD_NORTH"/>
     <waypoint height="0" lat="38.023043" lon="23.303487" name="TD_SOUTH"/>
     <waypoint height="0" name="CAM_POINT" x="-42.2" y="-70.0"/>
     <waypoint height="50" name="RELEASE" x="3.0" y="39.7"/>
     <waypoint alt="600" name="RIGHT_HERE" x="104.9" y="-21.1"/>
     <waypoint alt="600" name="MOB" x="200" y="0"/>
     <waypoint alt="600.0" lat="38.030090" lon="23.305073" name="W1"/>
     <waypoint alt="600.0" lat="38.038230" lon="23.306207" name="W2"/>
     <waypoint alt="600.0" lat="38.047309" lon="23.307306" name="W3"/>
     <waypoint alt="600.0" lat="38.057152" lon="23.308619" name="W4"/>
     <waypoint alt="600.0" lat="38.065004" lon="23.309716" name="TARGET"/>
     <waypoint alt="600.0" lat="38.024769" lon="23.304771" name="END"/>
   </waypoints>
   <sectors/>
   <exceptions/>
   <blocks>
     <block name="Wait GPS">
       <set value="0" var="kill_throttle"/>
       <call fun="Flaps(0.5)"/>
       <set value="WP_TARGET" var="cam_target_wp"/>
       <set value="CAM_MODE_MANUAL" var="cam_mode"/>
       <while cond="!GpsFixValid()"/>
       <set value="FALSE" var="cam_lock"/>
       <set value="WP_HOME" var="cam_target_wp"/>
     </block>
     <block name="Geo init">
       <while cond="LessThan(NavBlockTime(), 10)"/>
       <call fun="NavSetGroundReferenceHere()"/>
       <call fun="NavSetWaypointHere(WP_HOME)"/>
       <set value="GetPosAlt()" var="WaypointAlt(WP_CAM_POINT)"/>
     </block>
     <block name="Holding point">
       <exception cond="GetPosAlt() > ground_alt+20" deroute="standby"/>
       <call fun="Flaps(0.0)"/>
       <attitude roll="0" throttle="0" vmode="throttle"/>
     </block>

     <block name="standby" strip_button="standby" strip_icon="home.png">
       <exception cond="datalink_time > 120" deroute="land_North"/>
       <set value="TRUE" var="launch"/>
       <set value="0" var="h_ctl_disabled"/>
       <set value="0" var="kill_throttle"/>
        <set value="ground_alt" var="WaypointAlt(WP_CAM_POINT)"/>
       <set value="CAM_MODE_STABILIZED" var="cam_mode"/>
       <set value="DEFAULT_CIRCLE_RADIUS" var="nav_radius"/>
       <circle alt="ground_alt+100" radius="nav_radius" wp="HOME"/>
     </block>
     <block name="TARGET" strip_button="Go to TARGET" strip_icon="kill.png">
       <exception cond="datalink_time > 30" deroute="RETURN_HOME"/>
        <set value="ground_alt" var="WaypointAlt(WP_CAM_POINT)"/>
       <set value="CAM_MODE_STABILIZED" var="cam_mode"/>
       <go alt="600" from="HOME" hmode="route" wp="W1"/>
       <go alt="600" from="W1" hmode="route" wp="W2"/>
        <go alt="600" from="W2" hmode="route" pitch="auto"
throttle="0.5" wp="W3"/>
        <go alt="600" from="W3" hmode="route" pitch="auto"
throttle="0.5" wp="W4"/>
       <set value="226" var="WaypointAlt(WP_CAM_POINT)"/>
       <set value="WP_TARGET" var="cam_target_wp"/>
       <set value="CAM_MODE_WP_TARGET" var="cam_mode"/>
       <go alt="600" from="W4" hmode="route" pitch="auto" throttle="0.5"
wp="TARGET"/>
     </block>
     <block name="RETURN_HOME" strip_button="Return Home"
strip_icon="home.png">
       <set value="CAM_MODE_WP_HOME" var="cam_mode"/>
        <call fun="NavSetWaypointHere(WP_RIGHT_HERE)"/>
       <set value="GetPosAlt()" var="WaypointAlt(WP_RIGHT_HERE)"/>
       <go alt="WaypointAlt(WP_RIGHT_HERE)" from="RIGHT_HERE"
hmode="route" wp="W1"/>
       <deroute block="standby"/>
     </block>
     <block name="GO_TO_CAM" strip_button="Follow camera"
strip_icon="cam_lock.png">
        <call fun="NavSetWaypointHere(WP_RIGHT_HERE)"/>
       <set value="GetPosAlt()" var="WaypointAlt(WP_RIGHT_HERE)"/>
       <call fun="NavCopyWaypoint(WP_MOB, WP_CAM_POINT)"/>
       <set value="GetPosAlt()" var="WaypointAlt(WP_MOB)"/>
       <set value="WP_MOB" var="cam_target_wp"/>
       <set value="CAM_MODE_WP_TARGET" var="cam_mode"/>
       <go alt="WaypointAlt(WP_MOB)" from="RIGHT_HERE" hmode="route"
wp="MOB"/>
       <circle radius="nav_radius" until="NavCircleCount() > 2" wp="HOME"/>
       <set value="CAM_MODE_STABILIZED" var="cam_mode"/>
       <deroute block="RETURN_HOME"/>
     </block>
     <block name="CIRCLE_HERE" strip_button="Circle here"
strip_icon="observe.png">
       <set value="CAM_MODE_STABILIZED" var="cam_mode"/>
        <call fun="NavSetWaypointHere(WP_RIGHT_HERE)"/>
       <set value="GetPosAlt()" var="WaypointAlt(WP_RIGHT_HERE)"/>
       <circle radius="nav_radius" until="NavCircleCount() > 2"
wp="RIGHT_HERE"/>
       <deroute block="RETURN_HOME"/>
     </block>

     <block name="land_North" strip_button="Land_N"
strip_icon="land-right.png">
        <call fun="nav_compute_baseleg(WP_AF_NORTH, WP_TD_NORTH,
WP_BASELEG, nav_radius)"/>
       <circle radius="nav_radius" until="NavCircleCount() > 0.5"
wp="BASELEG"/>
       <set value="V_CTL_AUTO_THROTTLE_MIN_CRUISE_THROTTLE"
var="v_ctl_auto_throttle_cruise_throttle"/>
       <circle radius="nav_radius"
until="NavQdrCloseTo(DegOfRad(baseleg_out_qdr)-(nav_radius/fabs(nav_radius))*10)
&& 10 > fabs(GetPosAlt() - WaypointAlt(WP_BASELEG))" wp="BASELEG"/>
     </block>
     <block name="final_N">
       <exception cond="ground_alt + 10 > GetPosAlt()" deroute="flare_N1"/>
        <call fun="Flaps(0.3)"/>
       <go from="AF_NORTH" hmode="route" vmode="glide" wp="TD_NORTH"/>
     </block>
     <block name="flare_N1">
       <exception cond="ground_alt + 1 > GetPosAlt()" deroute="flare_N2"/>
        <go approaching_time="0" from="AF_NORTH" hmode="route"
throttle="0.0" vmode="throttle" wp="TD_NORTH"/>
       <call fun="Flaps(1.0)"/>
       <go from="TD_NORTH" hmode="route" throttle="0.0" vmode="throttle"
wp="TD_SOUTH"/>
       <attitude roll="0.0" throttle="0.0" until="FALSE" vmode="throttle"/>
     </block>
     <block name="flare_N2">
        <call fun="Flaps(1.0)"/>
       <go approaching_time="0" climb="-0.1" from="TD_NORTH"
hmode="route" pitch="auto" throttle="0.0" vmode="climb" wp="TD_SOUTH"/>
       <attitude roll="0.0" throttle="0.0" until="FALSE" vmode="throttle"/>
     </block>
     <block name="land_South" strip_button="Land_S"
strip_icon="land-left.png">
        <call fun="nav_compute_baseleg(WP_AF_SOUTH, WP_TD_SOUTH,
WP_BASELEG, nav_radius)"/>
       <circle radius="nav_radius" until="NavCircleCount() > 0.5"
wp="BASELEG"/>
       <set value="V_CTL_AUTO_THROTTLE_MIN_CRUISE_THROTTLE"
var="v_ctl_auto_throttle_cruise_throttle"/>
       <circle radius="nav_radius"
until="NavQdrCloseTo(DegOfRad(baseleg_out_qdr)-(nav_radius/fabs(nav_radius))*10)
&& 10 > fabs(GetPosAlt() - WaypointAlt(WP_BASELEG))" wp="BASELEG"/>
     </block>
     <block name="final_S">
       <exception cond="ground_alt + 10 > GetPosAlt()" deroute="flare_S1"/>
        <call fun="Flaps(0.3)"/>
       <go from="AF_SOUTH" hmode="route" vmode="glide" wp="TD_SOUTH"/>
     </block>
     <block name="flare_S1">
       <exception cond="ground_alt + 1 > GetPosAlt()" deroute="flare_S2"/>
        <go approaching_time="0" from="AF_SOUTH" hmode="route"
throttle="0.0" vmode="throttle" wp="TD_SOUTH"/>
       <call fun="Flaps(1.0)"/>
       <go from="TD_SOUTH" hmode="route" throttle="0.0" vmode="throttle"
wp="TD_NORTH"/>
       <attitude roll="0.0" throttle="0.0" until="FALSE" vmode="throttle"/>
     </block>
     <block name="flare_S2">
        <call fun="Flaps(1.0)"/>
       <go approaching_time="0" climb="-0.1" from="TD_SOUTH"
hmode="route" pitch="auto" throttle="0.0" vmode="climb" wp="TD_NORTH"/>
       <attitude roll="0.0" throttle="0.0" until="FALSE" vmode="throttle"/>
     </block>
   </blocks>
</flight_plan>

_______________________________________________
Paparazzi-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
Loading...