paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [4713] add Corsica plane jsbsim model (unfinished)


From: Gautier Hattenberger
Subject: [paparazzi-commits] [4713] add Corsica plane jsbsim model (unfinished)
Date: Tue, 23 Mar 2010 15:52:37 +0000

Revision: 4713
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4713
Author:   gautier
Date:     2010-03-23 15:52:37 +0000 (Tue, 23 Mar 2010)
Log Message:
-----------
add Corsica plane jsbsim model (unfinished)

Added Paths:
-----------
    paparazzi3/trunk/conf/simulator/Corsica/
    paparazzi3/trunk/conf/simulator/Corsica/Corsica2010.xml
    paparazzi3/trunk/conf/simulator/Corsica/Engines/
    paparazzi3/trunk/conf/simulator/Corsica/Engines/18x8.xml
    paparazzi3/trunk/conf/simulator/Corsica/Engines/Axi.xml

Added: paparazzi3/trunk/conf/simulator/Corsica/Corsica2010.xml
===================================================================
--- paparazzi3/trunk/conf/simulator/Corsica/Corsica2010.xml                     
        (rev 0)
+++ paparazzi3/trunk/conf/simulator/Corsica/Corsica2010.xml     2010-03-23 
15:52:37 UTC (rev 4713)
@@ -0,0 +1,441 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="http://jsbsim.sourceforge.net/JSBSim.xsl"; 
type="text/xsl"?>
+<fdm_config name="rascal" version="2.0" release="BETA"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+ xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd";>
+
+    <fileheader>
+        <author> Murat Bronz </author>
+        <filecreationdate> 18/03/2010 </filecreationdate>
+        <version> Version </version>
+        <description> Corsica10 Prototype </description>
+    </fileheader>
+
+    <metrics>
+        <wingarea unit="M2"> 0.21 </wingarea>
+        <wingspan unit="M"> 1.5 </wingspan>
+        <chord unit="M"> 0.14 </chord>
+        <htailarea unit="M2"> 0.026 </htailarea> 
+        <htailarm unit="M"> 0.6 </htailarm>
+        <vtailarea unit="M2"> 0.011 </vtailarea>
+        <vtailarm unit="M"> 0.6 </vtailarm>
+        <location name="AERORP" unit="IN">
+            <x> 0 </x>
+            <y> 0 </y>
+            <z> 0 </z>
+        </location>
+        <location name="EYEPOINT" unit="IN">
+            <x> 0 </x>
+            <y> 0 </y>
+            <z> 0 </z>
+        </location>
+        <location name="VRP" unit="IN">
+            <x> 0 </x>
+            <y> 0 </y>
+            <z> 0 </z>
+        </location>
+    </metrics>
+
+    <mass_balance>
+        <ixx unit="KG*M2"> 0.125 </ixx>
+        <iyy unit="KG*M2"> 0.032 </iyy>
+        <izz unit="KG*M2"> 0.156 </izz>
+        <ixy unit="KG*M2"> 0 </ixy>
+        <ixz unit="KG*M2"> -0.003 </ixz>
+        <iyz unit="KG*M2"> 0 </iyz>
+        <emptywt unit="KG"> 2.0 </emptywt>
+        <location name="CG" unit="M">
+            <x> 0.067 </x>
+            <y> 0 </y>
+            <z> 0 </z>
+        </location>
+    </mass_balance>
+
+
+
+<!--Ground reactions deleted -->
+
+    <propulsion>
+        <engine file="Axi">
+            <location unit="M">
+                <x> -0.02 </x>
+                <y> 0 </y>
+                <z> 0 </z>
+            </location>
+            <orient unit="DEG">
+                <roll> 0.0 </roll>
+                <pitch> 0 </pitch>
+                <yaw> 0 </yaw>
+            </orient>
+            <feed>0</feed>
+            <thruster file="18x8">
+                <location unit="M">
+                    <x> -0.02 </x>
+                    <y> 0 </y>
+                    <z> 0 </z>
+                </location>
+                <orient unit="DEG">
+                    <roll> 0.0 </roll>
+                    <pitch> 0.0 </pitch>
+                    <yaw> 0.0 </yaw>
+                </orient>
+                <p_factor>1.0</p_factor>
+            </thruster>
+        </engine>
+    </propulsion>
+
+    <flight_control name="Corsica">
+     <channel name="All">
+
+        <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.5</min>
+                <max>0.5</max>
+            </range>
+            <output>fcs/elevator-pos-rad</output>
+        </aerosurface_scale>
+
+        <aerosurface_scale name="Elevator Normalized">
+            <input>fcs/elevator-pos-rad</input>
+            <domain>
+                <min>-0.5</min>
+                <max> 0.5</max>
+            </domain>
+            <range>
+                <min>-1</min>
+                <max> 1</max>
+            </range>
+            <output>fcs/elevator-pos-norm</output>
+        </aerosurface_scale>
+
+        <summer name="Roll Trim Sum">
+            <input>fcs/aileron-cmd-norm</input>
+            <input>fcs/roll-trim-cmd-norm</input>
+            <clipto>
+                <min>-1</min>
+                <max>1</max>
+            </clipto>
+        </summer>
+
+        <aerosurface_scale name="Left Aileron Control">
+            <input>fcs/roll-trim-sum</input>
+            <range>
+                <min>-0.5</min>
+                <max>0.5</max>
+            </range>
+            <output>fcs/left-aileron-pos-rad</output>
+        </aerosurface_scale>
+
+        <aerosurface_scale name="Right Aileron Control">
+            <input>-fcs/roll-trim-sum</input>
+            <range>
+                <min>-0.5</min>
+                <max>0.5</max>
+            </range>
+            <output>fcs/right-aileron-pos-rad</output>
+        </aerosurface_scale>
+
+        <aerosurface_scale name="Left aileron Normalized">
+            <input>fcs/left-aileron-pos-rad</input>
+            <domain>
+                <min>-0.5</min>
+                <max> 0.5</max>
+            </domain>
+            <range>
+                <min>-1</min>
+                <max> 1</max>
+            </range>
+            <output>fcs/left-aileron-pos-norm</output>
+        </aerosurface_scale>
+
+        <aerosurface_scale name="Right aileron Normalized">
+            <input>fcs/right-aileron-pos-rad</input>
+            <domain>
+                <min>-0.5</min>
+                <max> 0.5</max>
+            </domain>
+            <range>
+                <min>-1</min>
+                <max> 1</max>
+            </range>
+            <output>fcs/right-aileron-pos-norm</output>
+        </aerosurface_scale>
+
+     </channel>
+    </flight_control>
+
+
+    <aerodynamics>
+
+        <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>
+                      <table>
+                          <independentVar>aero/alpha-rad</independentVar>
+                          <tableData>
+                              -1.5700  1.5000  
+                              -0.2600  0.0560  
+                              0.0000   0.0280  
+                              0.2600   0.0560  
+                              1.5700   1.5000  
+                          </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.0400</value>
+                </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>aero/beta-rad</independentVar>
+                          <tableData>
+                              -1.5700  1.2300  
+                              -0.2600  0.0500  
+                              0.0000   0.0000  
+                              0.2600   0.0500  
+                              1.5700   1.2300  
+                          </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>
+                    <property>fcs/elevator-pos-norm</property>
+                    <value>0.0300</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.0000</value>
+                </product>
+            </function>
+        </axis>
+
+        <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>
+                      <table>
+                          <independentVar>aero/alpha-rad</independentVar>
+                          <tableData>
+                              -0.2000  -0.7500 
+                              0.0000   0.2500  
+                              0.2300   1.4000  
+                              0.6000   0.7100  
+                          </tableData>
+                      </table>
+                </product>
+            </function>
+            <function name="aero/coefficient/CLde">
+                <description>Lift_due_to_Elevator_Deflection</description>
+                <product>
+                    <property>aero/qbar-psf</property>
+                    <property>metrics/Sw-sqft</property>
+                    <property>fcs/elevator-pos-rad</property>
+                    <value>0.2000</value>
+                </product>
+            </function>
+        </axis>
+
+        <axis name="ROLL">
+            <function name="aero/coefficient/Clb">
+                <description>Roll_moment_due_to_beta</description>
+                <!-- aka dihedral effect -->
+                <product>
+                    <property>aero/qbar-psf</property>
+                    <property>metrics/Sw-sqft</property>
+                    <property>metrics/bw-ft</property>
+                    <property>aero/beta-rad</property>
+                    <value>-0.1000</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.4000</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.1500</value>
+                </product>
+            </function>
+            <function name="aero/coefficient/Clda">
+                <description>Roll_moment_due_to_aileron</description>
+                <product>
+                    <property>aero/qbar-psf</property>
+                    <property>metrics/Sw-sqft</property>
+                    <property>metrics/bw-ft</property>
+                    <property>fcs/left-aileron-pos-rad</property>
+                      <table>
+                          <independentVar>velocities/mach</independentVar>
+                          <tableData>
+                              0.0000   0.1300  
+                              2.0000   0.0570  
+                          </tableData>
+                      </table>
+                </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.0100</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>
+                    <property>aero/alpha-rad</property>
+                    <value>-0.5000</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>velocities/mach</independentVar>
+                          <tableData>
+                              0.0000   -0.5000 <!-- was -1.1 -->
+                              2.0000   -0.2750 
+                          </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>-12.0000</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>-7.0000</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.1200</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.1500</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.0500</value>
+                </product>
+            </function>
+            <function name="aero/coefficient/Cnda">
+                <description>Adverse_yaw</description>
+                <product>
+                    <property>aero/qbar-psf</property>
+                    <property>metrics/Sw-sqft</property>
+                    <property>metrics/bw-ft</property>
+                    <property>fcs/left-aileron-pos-rad</property>
+                    <value>-0.0300</value>
+                </product>
+            </function>
+            <function name="aero/coefficient/Cndi">
+                <description>Yaw_moment_due_to_tail_incidence</description>
+                <product>
+                    <property>aero/qbar-psf</property>
+                    <property>metrics/Sw-sqft</property>
+                    <property>metrics/bw-ft</property>
+                    <value>0.0007</value>
+                </product>
+            </function>
+        </axis>
+    </aerodynamics>
+</fdm_config>

Added: paparazzi3/trunk/conf/simulator/Corsica/Engines/18x8.xml
===================================================================
--- paparazzi3/trunk/conf/simulator/Corsica/Engines/18x8.xml                    
        (rev 0)
+++ paparazzi3/trunk/conf/simulator/Corsica/Engines/18x8.xml    2010-03-23 
15:52:37 UTC (rev 4713)
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+
+<!-- Generated by Aero-Matic v 0.7
+
+     Inputs:
+       horsepower:   3.8
+       pitch:        fixed
+     Outputs:
+       linear-blade-inches: 10.331602005498
+-->
+
+<propeller name="Rascal Propeller">
+  <ixx> 0.00085 </ixx>
+  <diameter unit="IN"> 18.0 </diameter>
+  <numblades> 2 </numblades>
+  <minpitch> 30 </minpitch>
+  <maxpitch> 30 </maxpitch>
+
+  <table name="C_THRUST" type="internal">
+    <tableData>
+      0.0  0.0776
+      0.1  0.0744
+      0.2  0.0712
+      0.3  0.0655
+      0.4  0.0588
+      0.5  0.0518
+      0.6  0.0419
+      0.7  0.0318
+      0.8  0.0172
+      1.0 -0.0058
+      1.4 -0.0549
+    </tableData>
+  </table>
+
+  <table name="C_POWER" type = "internal">
+    <tableData>
+      0.0  0.0902
+      0.1  0.0893
+      0.2  0.0880
+      0.3  0.0860
+      0.4  0.0810
+      0.5  0.0742
+      0.6  0.0681
+      0.7  0.0572
+      0.8  0.0467
+      1.0  0.0167
+      1.4 -0.0803 
+    </tableData>
+  </table>
+
+</propeller>

Added: paparazzi3/trunk/conf/simulator/Corsica/Engines/Axi.xml
===================================================================
--- paparazzi3/trunk/conf/simulator/Corsica/Engines/Axi.xml                     
        (rev 0)
+++ paparazzi3/trunk/conf/simulator/Corsica/Engines/Axi.xml     2010-03-23 
15:52:37 UTC (rev 4713)
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!-- AXI motor for Corsica plane -->
+
+<electric_engine name="electric">
+  <power unit="WATTS">  200 </power>
+</electric_engine>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]