Commit 7a6c01c5 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #227 from thomasgubler/hil_flightgear

Hil flightgear
parents b628a522 c9f5a02a
<?xml version="1.0"?>
<!--
************************************************************************
Rascal 110 R/C airplane config. This files ties together all the components
used by FGFS to represent the Rascal 110 (by Sig Mfg) including the flight
dynamics model, and external 3D model.
************************************************************************
-->
<PropertyList>
<sim>
<description>Easy Star (R/C)</description>
<author>Ken Northup, 3d model </author>
<author>Ron Jensen, 3d model, FDM</author>
<aircraft-version>0.0</aircraft-version>
<flight-model>jsb</flight-model>
<aero>easystar</aero>
<!--
<systems>
<autopilot>
<path>Aircraft/Malolo1/Systems/110-autopilot.xml</path>
</autopilot>
<electrical>
<path>Aircraft/Malolo1/Systems/electrical.xml</path>
</electrical>
</systems> -->
<sound>
<path>Aircraft/Generic/generic-sound.xml</path>
</sound>
<panel>
<visibility archive="n">false</visibility>
</panel>
<model>
<path archive="y">Aircraft/EasyStar/Models/easystar.xml</path>
</model>
<view>
<internal archive="y">true</internal>
<config>
<x-offset-m archive="y">0.0</x-offset-m>
<y-offset-m archive="y">0.15</y-offset-m>
<z-offset-m archive="y">0.40</z-offset-m>
<pitch-offset-deg>0</pitch-offset-deg>
</config>
</view>
<view n="101">
<name>News Camera</name>
<type>lookat</type>
<internal type="bool">true</internal>
<config>
<eye-lat-deg-path>/position/latitude-deg</eye-lat-deg-path>
<eye-lon-deg-path>/position/longitude-deg</eye-lon-deg-path>
<eye-alt-ft-path>/position/altitude-ft</eye-alt-ft-path>
<eye-heading-deg-path>/orientation/heading-deg</eye-heading-deg-path>
<target-lat-deg-path>/sim/tower/latitude-deg</target-lat-deg-path>
<target-lon-deg-path>/sim/tower/longitude-deg</target-lon-deg-path>
<target-alt-ft-path>/sim/tower/altitude-ft</target-alt-ft-path>
<!--
<target-heading-deg-path></target-heading-deg-path>
<target-pitch-deg-path></target-pitch-deg-path>
<target-roll-deg-path></target-roll-deg-path>
-->
</config>
</view>
<chase-distance-m archive="y" type="double">-7.5</chase-distance-m>
<help>
<title>Easy Star R/C</title>
<line>Cruise speed: mph</line>
<line>Never-exceed (Vne): mph</line>
<line>Best Glide (Vglide): mph</line>
<line>Maneuvering (Va): mph</line>
<line>Approach speed: mph</line>
<line>Stall speed (Vs): mph</line>
</help>
</sim>
<controls>
<flight>
<elevator-trim>0.00</elevator-trim> <!-- controllable -->
</flight>
</controls>
</PropertyList>
<?xml version="1.0"?>
<!-- Calculated from http://brantuas.com/ezcalc/dma1.asp using a Speed 400 motor, 5.5x4.5 prop and 8 KAN 950 cells -->
<electric_engine name="ElecMot400">
<power unit="WATTS"> 70.0 </power>
</electric_engine>
<?xml version="1.0"?>
<!-- Generated by Javaprop
-->
<propeller name="prop">
<ixx> 1e-4 </ixx>
<diameter unit="IN"> 5.5 </diameter>
<numblades> 2 </numblades>
<gearratio>1.0 </gearratio>
<ct_factor>1.0 </ct_factor>
<cp_factor>1.0 </cp_factor>
<table name="C_THRUST" type="internal">
<tableData>
0.00 0.088784
0.05 0.091205
0.10 0.090752
0.15 0.089925
0.20 0.088593
0.25 0.086674
0.30 0.084053
0.35 0.080709
0.40 0.076332
0.45 0.070568
0.50 0.063187
0.55 0.055458
0.60 0.047475
0.65 0.039233
0.70 0.030741
0.71 0.029014
0.72 0.027279
0.73 0.025533
0.74 0.023780
0.75 0.022018
0.76 0.020248
0.77 0.018470
0.78 0.016683
0.79 0.014887
0.80 0.013086
0.81 0.011274
0.82 0.009459
0.83 0.007626
0.84 0.005791
0.85 0.003949
0.86 0.002076
0.87 0.000208
0.88 -0.001676
0.89 -0.003521
0.90 -0.005448
0.91 -0.007298
0.92 -0.009234
</tableData>
</table>
<table name="C_POWER" type="internal">
<tableData>
0.00 0.048163
0.05 0.047685
0.10 0.047684
0.15 0.047603
0.20 0.048065
0.25 0.048509
0.30 0.049003
0.35 0.049322
0.40 0.049003
0.45 0.047900
0.50 0.045619
0.55 0.042672
0.60 0.039115
0.65 0.034900
0.70 0.029989
0.71 0.028920
0.72 0.027823
0.73 0.026695
0.74 0.025539
0.75 0.024353
0.76 0.023136
0.77 0.021891
0.78 0.020614
0.79 0.019306
0.80 0.017969
0.81 0.016598
0.82 0.015201
0.83 0.013764
0.84 0.012300
0.85 0.010804
0.86 0.009257
0.87 0.007688
0.88 0.006079
0.89 0.004477
0.90 0.002777
0.91 0.001121
0.92 -0.000641
</tableData>
</table>
</propeller>
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0"?>
<PropertyList>
<path>easystar.ac</path>
</PropertyList>
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sourceforge.net/JSBSim.xsl"?>
<fdm_config name="EasyStar" version="2.0" release="ALPHA"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
<fileheader>
<author> Ron Jensen Aeromatic v 0.91 </author>
<filecreationdate> 2010-03-28 </filecreationdate>
<version>$Revison: $</version>
<description> Models a EasyStar. </description>
</fileheader>
<!--
File: EasyStar.xml
Inputs:
name: EasyStar
type: glider
max weight: 1.5 lb
wing span: 4.5 ft
length: 2.92 ft
wing area: 2.57 sq-ft
gear type: tricycle
retractable?: no
# engines: 1
engine type: electric
engine layout: middle fuselage
yaw damper? no
Outputs:
wing loading: 0.58 lb/sq-ft
CL-alpha: 5.5 per radian
CL-0: 0.25
CL-max: 1.4
CD-0: 0.012
K: 0.023
-->
<metrics>
<wingarea unit="FT2"> 2.570 </wingarea>
<wingspan unit="FT" > 4.500 </wingspan>
<wing_incidence> 0.000 </wing_incidence>
<chord unit="FT" > 0.571 </chord>
<htailarea unit="FT2"> 0.384 </htailarea>
<htailarm unit="FT" > 1.752 </htailarm>
<vtailarea unit="FT2"> 0.257 </vtailarea>
<vtailarm unit="FT" > 1.752 </vtailarm>
<location name="AERORP" unit="M"><!-- 1/4 chord is ~ 0.6 -->
<x> 0.080 </x>
<y> 0.00 </y>
<z> 0.00 </z>
</location>
<location name="EYEPOINT" unit="M">
<x> -0.1 </x>
<y> 0.00 </y>
<z> 0.00 </z>
</location>
<location name="VRP" unit="M">
<x>0</x>
<y>0</y>
<z>0</z>
</location>
</metrics>
<mass_balance>
<ixx unit="SLUG*FT2"> 1.636 </ixx>
<iyy unit="SLUG*FT2"> 0.649 </iyy>
<izz unit="SLUG*FT2"> 2.125 </izz>
<emptywt unit="LBS" > 0.9 </emptywt>
<location name="CG" unit="M">
<x> 0.078</x>
<y> 0.00 </y>
<z> -0.035 </z>
</location>
</mass_balance>
<ground_reactions>
<contact type="BOGEY" name="MAIN">
<location unit="M">
<x> 0.1 </x>
<y> 0.0 </y>
<z> -0.1 </z>
</location>
<static_friction> 0.800 </static_friction>
<dynamic_friction> 0.500 </dynamic_friction>
<rolling_friction> 0.500 </rolling_friction>
<spring_coeff unit="LBS/FT"> 20.0 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 7.0 </damping_coeff>
<damping_coeff_rebound unit="LBS/FT/SEC"> 4.0 </damping_coeff_rebound>
<max_steer unit="DEG">0</max_steer>
<brake_group>NONE</brake_group>
<retractable>FIXED</retractable>
</contact>
<contact type="BOGEY" name="NOSE">
<location unit="M">
<x> -0.26 </x>
<y> 0.00 </y>
<z> -0.06 </z>
</location>
<static_friction> 0.800 </static_friction>
<dynamic_friction> 0.500 </dynamic_friction>
<rolling_friction> 0.500 </rolling_friction>
<spring_coeff unit="LBS/FT"> 20.0 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 7.0 </damping_coeff>
<damping_coeff_rebound unit="LBS/FT/SEC"> 4.0 </damping_coeff_rebound>
<max_steer unit="DEG">0</max_steer>
<brake_group>NONE</brake_group>
<retractable>FIXED</retractable>
</contact>
<contact type="STRUCTURE" name="TAIL">
<location unit="M">
<x> 0.6 </x>
<y> 0.0 </y>
<z> -0.082 </z>
</location>
<static_friction> 0.80 </static_friction>
<dynamic_friction> 0.50 </dynamic_friction>
<spring_coeff unit="LBS/FT"> 20.0 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 7.0 </damping_coeff>
<damping_coeff_rebound unit="LBS/FT/SEC"> 4.0 </damping_coeff_rebound>
</contact>
<contact type="STRUCTURE" name="LEFT_WING">
<location unit="M">
<x> 0.14 </x>
<y> -0.707 </y>
<z> 0.08 </z>
</location>
<static_friction> 0.80 </static_friction>
<dynamic_friction> 0.50 </dynamic_friction>
<spring_coeff unit="LBS/FT"> 20.0 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 7.0 </damping_coeff>
<damping_coeff_rebound unit="LBS/FT/SEC"> 4.0 </damping_coeff_rebound>
</contact>
<contact type="STRUCTURE" name="RIGHT_WING">
<location unit="M">
<x> 0.14 </x>
<y> 0.707 </y>
<z> -0.08 </z>
</location>
<static_friction> 0.80 </static_friction>
<dynamic_friction> 0.50 </dynamic_friction>
<spring_coeff unit="LBS/FT"> 20.0 </spring_coeff>
<damping_coeff unit="LBS/FT/SEC"> 7.0 </damping_coeff>
<damping_coeff_rebound unit="LBS/FT/SEC"> 4.0 </damping_coeff_rebound>
</contact>
</ground_reactions>
<propulsion>
<engine file="ElecMot400">
<location unit="M">
<x> 0.216 </x>
<y> 0.00 </y>
<z> 0.040 </z>
</location>
<orient unit="DEG">
<pitch>-10.00 </pitch>
<roll> 0.00 </roll>
<yaw> 0.00 </yaw>
</orient>
<feed>0</feed>
<thruster file="prop6x5">
<location unit="M">
<x> 0.238 </x>
<y> 0.00 </y>
<z> 0.042 </z>
</location>
<orient unit="DEG">
<pitch>-10.00 </pitch>
<roll> 0.00 </roll>
<yaw> 0.00 </yaw>
</orient>
</thruster>
</engine>
<tank type="FUEL" number="0">
<location unit="M">
<x> 0.078 </x>
<y> 0.00 </y>
<z>-0.04 </z>
</location>
<capacity unit="LBS"> .60 </capacity>
<contents unit="LBS"> .60 </contents>
</tank>
</propulsion>
<flight_control name="FCS: EasyStar">
<channel name="Pitch">
<summer name="Pitch Trim Sum">
<input>fcs/elevator-cmd-norm</input>
<input>fcs/pitch-trim-cmd-norm</input>
<clipto>
<min> -1 </min>
<max> 1 </max>
</clipto>
</summer>
<aerosurface_scale name="Elevator Control">
<input>fcs/pitch-trim-sum</input>
<range>
<min> -0.35 </min>
<max> 0.35 </max>
</range>
<output>fcs/elevator-pos-rad</output>
</aerosurface_scale>
<aerosurface_scale name="elevator normalization">
<input>fcs/elevator-pos-rad</input>
<domain>
<min> -0.35 </min>
<max> 0.35 </max>
</domain>
<range>
<min> -1 </min>
<max> 1 </max>
</range>
<output>fcs/elevator-pos-norm</output>
</aerosurface_scale>
</channel>
<channel name="Yaw">
<summer name="Rudder Command Sum">
<input>-fcs/aileron-cmd-norm</input>
<input>fcs/yaw-trim-cmd-norm</input>
<clipto>
<min> -1.0 </min>
<max> 1.0 </max>
</clipto>
</summer>
<aerosurface_scale name="Rudder Control">
<input>fcs/rudder-command-sum</input>
<range>
<min> -0.35 </min>
<max> 0.35 </max>
</range>
<output>fcs/rudder-pos-rad</output>
</aerosurface_scale>
<aerosurface_scale name="rudder normalization">
<input>fcs/rudder-pos-rad</input>
<domain>
<min> -0.35 </min>
<max> 0.35 </max>
</domain>
<range>
<min> -1 </min>
<max> 1 </max>
</range>
<output>fcs/rudder-pos-norm</output>
</aerosurface_scale>
</channel>
<channel name="Throttle">
<aerosurface_scale name="throttle cook">
<input>fcs/throttle-cmd-norm</input>
<zero_centered>0</zero_centered>
<domain>
<min> 0.0 </min>
<max> 1.0 </max>
</domain>
<range>
<min> -0.1 </min>
<max> 1.0 </max>
</range>
<output>fcs/throttle-pos-norm</output>
</aerosurface_scale>
</channel>
</flight_control>
<aerodynamics>
<function name="aero/function/ground-effect-factor-lift">
<description>Change in lift due to ground effect factor</description>
<product>
<table>
<independentVar lookup="row">aero/h_b-mac-ft</independentVar>
<tableData>
0.0 1.203
0.1 1.127
0.15 1.090
0.2 1.073
0.3 1.046
0.4 1.055
0.5 1.019
0.6 1.013
0.7 1.008
0.8 1.006
0.9 1.003
1.0 1.002
1.1 1.0
</tableData>
</table>
</product>
</function>
<function name="aero/function/ground-effect-factor-drag">
<description>Change in drag due to ground effect</description>
<product>
<table>
<independentVar lookup="row">aero/h_b-mac-ft</independentVar>
<tableData>
0.0 0.480
0.1 0.515
0.15 0.629
0.2 0.709
0.3 0.815
0.4 0.882
0.5 0.928
0.6 0.962
0.7 0.988
0.8 1.0
0.9 1.0
1.0 1.0
1.1 1.0
</tableData>
</table>
</product>
</function>
<axis name="LIFT">
<function name="aero/coefficient/CLalpha">
<description>Lift_due_to_alpha</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>aero/function/ground-effect-factor-lift</property>
<table>
<independentVar lookup="row">aero/alpha-rad</independentVar>
<tableData>
-3.1416 0.0
-2.62 0.86
-2.36 1.0
-2.09 0.86
-1.57 -0.00
-1.05 -0.86
-0.79 -1.0
-0.52 -0.50
-0.39 -0.38
-0.20 -0.850
0.00 0.250
0.21 1.400
0.60 0.710
0.79 1.0
1.05 0.86
1.57 0.00
2.09 -0.86
2.36 -1.0
2.62 -0.86
3.1416 0.0
</tableData>
</table>
</product>
</function>
<function name="aero/coefficient/CLde">
<description>Lift_due_to_Elevator_Deflection</description>
<product>
<property>aero/function/ground-effect-factor-lift</property>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>fcs/elevator-pos-rad</property>
<value>0.2</value>
</product>
</function>
</axis>
<axis name="DRAG">
<function name="aero/coefficient/CD0">
<description>Drag_at_zero_lift</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>aero/function/ground-effect-factor-drag</property>
<table>
<independentVar lookup="row">aero/alpha-rad</independentVar>
<tableData>
-3.1416 0.012
-1.57 1.500
-0.21 0.016
0.00 0.012
0.21 0.016
1.57 1.500
3.1416 0.012
</tableData>
</table>
</product>
</function>
<function name="aero/coefficient/CDi">
<description>Induced_drag</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>aero/cl-squared</property>
<value>0.023</value>
</product>
</function>
<function name="aero/coefficient/CDmach">
<description>Drag_due_to_mach</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<table>
<independentVar lookup="row">velocities/mach</independentVar>
<tableData>
0.00 0.000
0.7 0.000
1.10 0.023
1.80 0.015
</tableData>
</table>
</product>
</function>
<function name="aero/coefficient/CDbeta">
<description>Drag_due_to_sideslip</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<table>
<independentVar lookup="row">aero/beta-rad</independentVar>
<tableData>
-3.1416 0.0
-1.57 1.230
-0.26 0.050
0.00 0.000
0.26 0.050
1.57 1.230
3.1416 0.0
</tableData>
</table>
</product>
</function>
<function name="aero/coefficient/CDde">
<description>Drag_due_to_Elevator_Deflection</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<abs><property>fcs/elevator-pos-rad</property></abs>
<value>0.04</value>
</product>
</function>
</axis>
<axis name="SIDE">
<function name="aero/coefficient/CYb">
<description>Side_force_due_to_beta</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>aero/beta-rad</property>
<value>-1</value>
</product>
</function>
</axis>
<axis name="ROLL">
<function name="aero/coefficient/Clb">
<description>Roll_moment_due_to_beta</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/beta-rad</property>
<value> -0.1</value>
</product>
</function>
<function name="aero/coefficient/Clp">
<description>Roll_moment_due_to_roll_rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/bi2vel</property>
<property>velocities/p-aero-rad_sec</property>
<value>-0.4</value>
</product>
</function>
<function name="aero/coefficient/Clr">
<description>Roll_moment_due_to_yaw_rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/bi2vel</property>
<property>velocities/r-aero-rad_sec</property>
<value>0.15</value>
</product>
</function>
<function name="aero/coefficient/Cldr">
<description>Roll_moment_due_to_rudder</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>fcs/rudder-pos-rad</property>
<value>0.01</value>
</product>
</function>
</axis>
<axis name="PITCH">
<function name="aero/coefficient/Cmalpha">
<description>Pitch_moment_due_to_alpha</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<table >
<independentVar lookup="row">aero/alpha-rad</independentVar>
<tableData>
-3.14 0.0
-2.62 0.2252
-2.36 0.26
-2.09 0.2252
-1.57 0.0
-1.05 -0.2252
-0.79 -0.26
-0.52 -0.2252
-0.39 -0.1838
-0.26 -0.2588
0.0 0.0
0.26 0.2588
0.39 0.1838
0.52 0.2252
0.79 0.26
1.05 0.2252
1.57 0.0
2.09 -0.2252
2.36 -0.26
2.62 -0.2252
3.14 0.0
</tableData>
</table>
<value>-0.5</value>
</product>
</function>
<function name="aero/coefficient/Cmde">
<description>Pitch_moment_due_to_elevator</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>fcs/elevator-pos-rad</property>
<table>
<independentVar lookup="row">velocities/mach</independentVar>
<tableData>
0.0 -0.800
2.0 -0.200
</tableData>
</table>
</product>
</function>
<function name="aero/coefficient/Cmq">
<description>Pitch_moment_due_to_pitch_rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>aero/ci2vel</property>
<property>velocities/q-aero-rad_sec</property>
<value>-9</value>
</product>
</function>
<function name="aero/coefficient/Cmadot">
<description>Pitch_moment_due_to_alpha_rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/cbarw-ft</property>
<property>aero/ci2vel</property>
<property>aero/alphadot-rad_sec</property>
<value>-12</value>
</product>
</function>
</axis>
<axis name="YAW">
<function name="aero/coefficient/Cnb">
<description>Yaw_moment_due_to_beta</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/beta-rad</property>
<value>0.12</value>
</product>
</function>
<function name="aero/coefficient/Cnr">
<description>Yaw_moment_due_to_yaw_rate</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>aero/bi2vel</property>
<property>velocities/r-aero-rad_sec</property>
<value>-0.15</value>
</product>
</function>
<function name="aero/coefficient/Cndr">
<description>Yaw_moment_due_to_rudder</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>metrics/bw-ft</property>
<property>fcs/rudder-pos-rad</property>
<value>-0.03</value>
</product>
</function>
</axis>
</aerodynamics>
</fdm_config>
Origional readme:
************************************************************************
* MULTIPLEX Modellsport GmbH & Co. KG *
* Neuer Weg 2, D-75223 Niefern, Germany *
************************************************************************
Wir haben die Flugeigenschaften so genau wie mglich
dem realen Modell angenhert. In extremen Flugsituationen sind jedoch Ab-
weichungen mglich.
This Model was created for FMS and now modified by Ken Northup using AC3D and is freely distributed. Please feel free to modify as you wish using AC3D. If you modify and make a better paint scheme, feel free to contact me via email, as I would love to see different versions created for Clearview RC Simulator. To Install, simply extract the file and put the folder under the models in the Clearview RC Simulator. The next time you run Clearview, it will appear under the Airplane selections.
Ken Northup
Helos360@bellsouth.net
\ No newline at end of file
The EasyStar model is from http://gitorious.org/ron-s-hanger/easystar-rc (fork at https://gitorious.org/~thomasgubler/ron-s-hanger/thomasgublers-easystar-rc)
I slightly adapted some files in order to make the model work when it's not located in the default flightgear aircraft folder.
-Thomas Gubler
<?xml version="1.0"?>
<initialize name="reset00">
<!--
This file sets up the aircraft to start off
from the runway in preparation for takeoff.
-->
<ubody> 0.0 </ubody>
<vbody> 0.0 </vbody>
<wbody> 0.0 </wbody>
<latitude> 47.0 </latitude>
<longitude> 122.0 </longitude>
<phi> 0.0 </phi>
<theta> 0.0 </theta>
<psi> 150.0 </psi>
<altitude> 4.7 </altitude>
</initialize>
<?xml version="1.0"?>
<initialize name="reset01">
<!--
This file drops the aircraft from 1000 ft to see what happens.
-->
<ubody> 0.0 </ubody>
<vbody> 0.0 </vbody>
<wbody> 0.0 </wbody>
<latitude> 47.0 </latitude>
<longitude> 122.0 </longitude>
<phi> 0.0 </phi>
<theta> 0.0 </theta>
<psi> 150.0 </psi>
<altitude> 1000.7 </altitude>
</initialize>
...@@ -24,6 +24,14 @@ QGCHilConfiguration::~QGCHilConfiguration() ...@@ -24,6 +24,14 @@ QGCHilConfiguration::~QGCHilConfiguration()
void QGCHilConfiguration::on_simComboBox_currentIndexChanged(int index) void QGCHilConfiguration::on_simComboBox_currentIndexChanged(int index)
{ {
//clean up
QLayoutItem *child;
while ((child = ui->simulatorConfigurationLayout->takeAt(0)) != 0)
{
delete child->widget();
delete child;
}
if(1 == index) if(1 == index)
{ {
// Ensure the sim exists and is disabled // Ensure the sim exists and is disabled
......
...@@ -13,6 +13,7 @@ QGCHilFlightGearConfiguration::QGCHilFlightGearConfiguration(UAS* mav,QWidget *p ...@@ -13,6 +13,7 @@ QGCHilFlightGearConfiguration::QGCHilFlightGearConfiguration(UAS* mav,QWidget *p
QStringList items = QStringList(); QStringList items = QStringList();
if (mav->getSystemType() == MAV_TYPE_FIXED_WING) if (mav->getSystemType() == MAV_TYPE_FIXED_WING)
{ {
items << "EasyStar";
items << "Rascal110-JSBSim"; items << "Rascal110-JSBSim";
items << "c172p"; items << "c172p";
items << "YardStik"; items << "YardStik";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment