On Wednesday 13 October 2010 10:46:46 Ron Jensen wrote:
> On Wednesday 13 October 2010 04:02:10 fiers...@zonnet.nl wrote:
> > Hmmm,
> >
> > The GIT version of yesterday is generating core dumps. Reproducable when
> > I use the 747-400 made by Gijs and Ivan. It crashes while loading the
> > models.
> >
> > The console log shows:
> >
> > error binding to port 5505
> > Processing command line arguments
> > NoaaMetarRwalWxController::update() received METAR 2010/10/13 08:53 KOAK
> > 130853Z 00000KT 10SM CLR 17/09 A3002 RMK AO2 SLP165 T01670094 57003
> > [31m In condition: /accelerations/pilot-gdamped GT 3. Unknown property
> > /accelerations/pilot-gdamped referenced.
> > Creating property. Check usage.[0m
> > [31m In condition: /controls/fuel/tank[7]/pump == 1. Unknown property
> > /controls/fuel/tank[7]/pump referenced.
> > Creating property. Check usage.[0m
> > [31m In condition: propulsion/total-fuel-lbs gt
> > /controls/fuel/fuel-to-remain. Unknown property
> > /controls/fuel/fuel-to-remain referenced.
> > Creating property. Check usage.[0m
> > Failed to tie property propulsion/tank[0]/new-contents-lbs to object
> > methods [36mThe property aero/coefficient/CLalpha is initially
> > undefined.[0m [36mThe property aero/coefficient/CLalpha is initially
> > undefined.[0m [36mThe property aero/coefficient/CLalpha is initially
> > undefined.[0m [36mThe property aero/coefficient/CLalpha is initially
> > undefined.[0m
> >
> > Sadly, I cannot generate a stack backtrace at the moment, because I did
> > not compile with the symbols.
> >
> > m
>
> JSBSim now requires all properties to be declared before use. There are
> several properties in the 747-400 that are not declared, so JSBSim aborts.
>
> I will look at generating a suggested fix for Gjis.
>
> Ron
I changed a few things around, but it never did fail for me before I started.
See how it does now?
Thanks,
Ron
PS. This patch is against yesterday's SVN version of the 747-400
--- ../../flightgear747-400-read-only/747-400.xml 2010-10-13 13:23:06.000000000 -0600
+++ 747-400/747-400.xml 2010-10-14 07:04:17.000000000 -0600
@@ -569,6 +569,7 @@
<flight_control name="747-400">
<property>fcs/LE-flap-cmd-norm</property>
+ <property>/controls/flight/flaps</property>
<channel name="Pitch">
@@ -647,11 +648,11 @@
<switch name="fcs/outboard-ailerons-lockout">
<default value="1"/>
<test logic="AND" value="0">
- /velocities/airspeed-kt > 238
+ velocities/vc-kts > 238
/controls/flight/flaps == 0
</test>
<test logic="AND" value="0">
- /velocities/mach > 0.53
+ velocities/mach > 0.53
/controls/flight/flaps == 0
</test>
<output>fcs/outboard-ailerons-unlocked</output>
@@ -964,15 +965,15 @@
<property>/autopilot/autobrake/right-brake-output</property>
<channel name="Brakes">
- <fcs_function name="fcs/left-brake-cmd">
- <function>
+ <fcs_function name="left brake">
+ <function name="fcs/left-brake-cmd">
<property>/autopilot/autobrake/left-brake-output</property>
</function>
<output>fcs/left-brake-cmd-norm</output>
</fcs_function>
- <fcs_function name="fcs/right-brake-cmd">
- <function>
+ <fcs_function name="right brake">
+ <function name="fcs/right-brake-cmd">
<property>/autopilot/autobrake/right-brake-output</property>
</function>
<output>fcs/right-brake-cmd-norm</output>
--- ../../flightgear747-400-read-only/Systems/failures.xml 2010-10-13 13:20:56.000000000 -0600
+++ 747-400/Systems/failures.xml 2010-10-14 07:04:17.000000000 -0600
@@ -4,6 +4,7 @@
# by Gijs de Rooy # -->
<system name="failures">
+ <property>/accelerations/pilot-gdamped</property>
<channel name="gear">
@@ -11,7 +12,7 @@
<default value="/controls/failures/gear/broken"/>
<test logic="AND" value="1">
gear/gear-cmd-norm GT 0
- /velocities/airspeed-kt GT 270
+ velocities/vc-kts GT 270
</test>
<output>/controls/failures/gear/broken</output>
</switch>
--- ../../flightgear747-400-read-only/Systems/flaps.xml 2010-10-13 13:20:56.000000000 -0600
+++ 747-400/Systems/flaps.xml 2010-10-14 07:04:17.000000000 -0600
@@ -10,12 +10,12 @@
<switch name="fcs/autoflap-cmd-norm">
<default value="fcs/flap-cmd-norm"/>
<test logic="AND" value="0.667">
- /velocities/airspeed-kt gt 205
+ velocities/vc-kts gt 205
fcs/flap-pos-norm GT 0.667
fcs/flap-pos-norm LT 0.833
</test>
<test logic="AND" value="0.833">
- /velocities/airspeed-kt GT 180
+ velocities/vc-kts GT 180
fcs/flap-pos-norm GT 0.833
</test>
<output>fcs/flap-cmd-norm</output>
--- ../../flightgear747-400-read-only/Systems/fuel.xml 2010-10-13 13:20:56.000000000 -0600
+++ 747-400/Systems/fuel.xml 2010-10-14 07:04:17.000000000 -0600
@@ -1,6 +1,14 @@
<?xml version="1.0"?>
<system name="fuel">
+ <property>/controls/fuel/tank[1]/x-feed</property>
+ <property>/controls/fuel/tank[2]/x-feed</property>
+ <property>/controls/fuel/tank[3]/x-feed</property>
+ <property>/controls/fuel/tank[4]/x-feed</property>
+ <property>/controls/fuel/tank[7]/pump</property>
+ <property>/controls/fuel/dump-valve</property>
+ <property>/controls/fuel/fuel-to-remain</property>
+ <property></property>
<channel name="fuel">
@@ -235,7 +243,7 @@
<!-- transfer fuel from stabilitzer tank to CWT -->
- <summer name="propulsion/tank[0]/new-contents-lbs">
+ <summer name="propulsion/tank[0]/new-contents-from-stab-lbs">
<input>propulsion/tank[0]/contents-lbs</input>
<input>propulsion/systems/transfer-0-7-qty</input>
<input>-propulsion/systems/jettison-qty</input>
--- ../../flightgear747-400-read-only/Systems/gear.xml 2010-10-13 13:20:56.000000000 -0600
+++ 747-400/Systems/gear.xml 2010-10-14 07:04:17.000000000 -0600
@@ -4,13 +4,14 @@
# by Gijs de Rooy # -->
<system name="gear">
+ <property>/controls/gear/brake-left</property>
<channel name="gear">
<!-- GEAR 1 -->
<summer name="gear/unit[0]/tyre-speed-dif-switch">
- <input>-/velocities/uBody-fps</input>
+ <input>-velocities/u-aero-fps</input>
<input>gear/unit[0]/wheel-speed-fps</input>
<output>gear/unit[0]/tyre-speed-dif</output>
</summer>
@@ -19,7 +20,7 @@
<default value="0"/>
<test logic="AND" value="1">
gear/unit[0]/tyre-speed-dif lt -2
- /gear/gear[0]/wow == 1
+ gear/unit[0]/WOW == 1
</test>
<output>/gear/gear[0]/tyre-smoke</output>
</switch>
@@ -27,7 +28,7 @@
<!-- GEAR 2 -->
<summer name="gear/unit[1]/tyre-speed-dif-switch">
- <input>-/velocities/uBody-fps</input>
+ <input>-velocities/u-aero-fps</input>
<input>gear/unit[1]/wheel-speed-fps</input>
<output>gear/unit[1]/tyre-speed-dif</output>
</summer>
@@ -36,7 +37,7 @@
<default value="0"/>
<test logic="AND" value="1">
gear/unit[1]/tyre-speed-dif lt -2
- /gear/gear[1]/wow == 1
+ gear/unit[1]/WOW == 1
</test>
<output>/gear/gear[1]/tyre-smoke</output>
</switch>
@@ -48,7 +49,7 @@
</test>
<test logic="AND" value="1">
gear/unit[1]/wheel-speed-fps gt 50
- /gear/gear[1]/wow == 1
+ gear/unit[1]/WOW == 1
/controls/gear/brake-left gt 0.5
</test>
<test logic="AND" value="1">
@@ -74,7 +75,7 @@
<!-- GEAR 3 -->
<summer name="gear/unit[2]/tyre-speed-dif-switch">
- <input>-/velocities/uBody-fps</input>
+ <input>-velocities/u-aero-fps</input>
<input>gear/unit[2]/wheel-speed-fps</input>
<output>gear/unit[2]/tyre-speed-dif</output>
</summer>
@@ -83,7 +84,7 @@
<default value="0"/>
<test logic="AND" value="1">
gear/unit[2]/tyre-speed-dif lt -2
- /gear/gear[2]/wow == 1
+ gear/unit[2]/WOW == 1
</test>
<output>/gear/gear[2]/tyre-smoke</output>
</switch>
@@ -95,7 +96,7 @@
</test>
<test logic="AND" value="1">
gear/unit[2]/wheel-speed-fps gt 50
- /gear/gear[2]/wow == 1
+ gear/unit[2]/WOW == 1
/controls/gear/brake-left gt 0.5
</test>
<test logic="AND" value="1">
@@ -121,7 +122,7 @@
<!-- GEAR 4 -->
<summer name="gear/unit[3]/tyre-speed-dif-switch">
- <input>-/velocities/uBody-fps</input>
+ <input>-velocities/u-aero-fps</input>
<input>gear/unit[3]/wheel-speed-fps</input>
<output>gear/unit[3]/tyre-speed-dif</output>
</summer>
@@ -130,7 +131,7 @@
<default value="0"/>
<test logic="AND" value="1">
gear/unit[3]/tyre-speed-dif lt -2
- /gear/gear[3]/wow == 1
+ gear/unit[3]/WOW == 1
</test>
<output>/gear/gear[3]/tyre-smoke</output>
</switch>
@@ -142,7 +143,7 @@
</test>
<test logic="AND" value="1">
gear/unit[3]/wheel-speed-fps gt 50
- /gear/gear[3]/wow == 1
+ gear/unit[3]/WOW == 1
/controls/gear/brake-left gt 0.5
</test>
<test logic="AND" value="1">
@@ -168,7 +169,7 @@
<!-- GEAR 5 -->
<summer name="gear/unit[4]/tyre-speed-dif-switch">
- <input>-/velocities/uBody-fps</input>
+ <input>-velocities/u-aero-fps</input>
<input>gear/unit[4]/wheel-speed-fps</input>
<output>gear/unit[4]/tyre-speed-dif</output>
</summer>
@@ -177,7 +178,7 @@
<default value="0"/>
<test logic="AND" value="1">
gear/unit[4]/tyre-speed-dif lt -2
- /gear/gear[4]/wow == 1
+ gear/unit[4]/WOW == 1
</test>
<output>/gear/gear[4]/tyre-smoke</output>
</switch>
@@ -189,7 +190,7 @@
</test>
<test logic="AND" value="1">
gear/unit[4]/wheel-speed-fps gt 50
- /gear/gear[4]/wow == 1
+ gear/unit[4]/WOW == 1
/controls/gear/brake-left gt 0.5
</test>
<test logic="AND" value="1">
--- ../../flightgear747-400-read-only/Systems/pushback.xml 2010-10-13 13:20:56.000000000 -0600
+++ 747-400/Systems/pushback.xml 2010-10-14 07:04:17.000000000 -0600
@@ -1,13 +1,17 @@
<?xml version='1.0' encoding='UTF-8' ?>
<system name="pushback">
<property>/sim/model/pushback/target-speed-fps</property>
+ <property>/sim/model/pushback/kp</property>
+ <property>/sim/model/pushback/ki</property>
+ <property>/sim/model/pushback/kd</property>
+ <property>/sim/model/pushback/position-norm</property>
<channel name="Pushback">
<switch name="systems/pushback/linked">
<default value="-1"/>
<test value="0">
/sim/model/pushback/position-norm gt 0.95
- /gear/gear/wow == 1
+ gear/unit[0]/WOW == 1
gear/unit[0]/wheel-speed-fps lt 50
</test>
</switch>
--- ../../flightgear747-400-read-only/Systems/wingflex.xml 2010-10-13 13:20:56.000000000 -0600
+++ 747-400/Systems/wingflex.xml 2010-10-14 07:04:17.000000000 -0600
@@ -4,11 +4,9 @@
# by Gijs de Rooy # -->
<system name="wingflex">
-
<channel name="wingflex">
-
<fcs_function name="Wing 1 flex">
- <function name="forces/wing[1]-flex">
+ <function name="forces/wing-flex[1]">
<description>Wing_one_flex</description>
<sum>
<product>
@@ -16,7 +14,7 @@
<value>-0.15</value>
</product>
<product>
- <property>aero/coefficient/CLalpha</property>
+ <property>forces/fbz-aero-lbs</property>
<value>0.05</value>
</product>
</sum>
@@ -25,7 +23,7 @@
</fcs_function>
<fcs_function name="Wing 2 flex">
- <function name="forces/wing[2]-flex">
+ <function name="forces/wing-flex[2]">
<description>Wing_two_flex</description>
<sum>
<product>
@@ -33,7 +31,7 @@
<value>-0.1</value>
</product>
<product>
- <property>aero/coefficient/CLalpha</property>
+ <property>forces/fbz-aero-lbs</property>
<value>0.05</value>
</product>
</sum>
@@ -42,7 +40,7 @@
</fcs_function>
<fcs_function name="Wing 3 flex">
- <function name="forces/wing[3]-flex">
+ <function name="forces/wing-flex[3]">
<description>Wing_three_flex</description>
<sum>
<product>
@@ -50,7 +48,7 @@
<value>-0.1</value>
</product>
<product>
- <property>aero/coefficient/CLalpha</property>
+ <property>forces/fbz-aero-lbs</property>
<value>0.05</value>
</product>
</sum>
@@ -59,7 +57,7 @@
</fcs_function>
<fcs_function name="Wing 4 flex">
- <function name="forces/wing[4]-flex">
+ <function name="forces/wing-flex[4]">
<description>Wing_four_flex</description>
<sum>
<product>
@@ -67,14 +65,13 @@
<value>-0.15</value>
</product>
<product>
- <property>aero/coefficient/CLalpha</property>
+ <property>forces/fbz-aero-lbs</property>
<value>0.05</value>
</product>
</sum>
</function>
<output>forces/wing[4]</output>
</fcs_function>
-
</channel>
</system>
\ No newline at end of file
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel