Board index FlightGear Development Aircraft

eurofighter typhoon

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Re: eurofighter typhoon

Postby almursi » Fri Sep 17, 2010 8:44 pm

Re: About overwrite Typhoon I

Sent at: Fri Sep 17, 2010 11:33 am
by MaverickAlex
Please feel free to adapt/modify the model as you see fit. Thanks for taking it forward.

Sent at: Thu Sep 16, 2010 8:48 pm
by almursi
Hi, Allow me to insist. We could really know what you think about to overwrite the "Typhoon I" original. We are working on future naval version (Typhoon II, "on carrier"), but because it has not yet been finalized, is based entirely on the current model. So all the improvements and additions we are doing could be shared by both and just change the name of the file-set and minor options.
The only thing we need is your opinion, do not intend to get involved again in the project or anything else :) (in blender we are beginners, but we are defending and things come out.)
Best regards.


Hi, this is Alex's response :). This weekend I will try to put some order in the work done, and do the 1.4.3 patch package, with both versions of the autopilot made by Algernon, and with my contributions to the cockpit (where I tweaked pedals, stick, a throttle added and now start with other details). Regards.
almursi
 
Posts: 108
Joined: Tue Apr 06, 2010 5:21 am
Location: LELC Murcia (Spain)
Callsign: EC-ALM
Version: Git
OS: Ubuntu 10.04

Re: eurofighter typhoon

Postby Algernon » Mon Sep 20, 2010 9:02 am

Had quite a busy weekend, now the week has come back around I have a few days to work on the aircraft some more. I plan to have working autopilots by the time the USA comes home from work tonight. For those people with the latest (GIT) FG version it already works nicely in basic heading/speed/altitude modes and navigation system holds (TACAN, NAV1, Gallileo) and I will be publishing the first installment of the Typhoon flying manual on the wiki to document these, as well as a flight plan for a test flight which takes you from RAF Coningsby (east-middle of UK), an operational Typhoon airfield, to the Mach Loop in North Wales, an infamous RAF low flying training ground. I hope this will be a fun way to learn how to use the Typhoon's autopilot quickly and effectively from the cockpit - if it proves popular, I'd like to produce flight plans for other test flights in and around amazing places right across Europe.
Algernon
FGUK - A FlightGear community in the United Kingdom and Republic of Ireland
User avatar
Algernon
 
Posts: 498
Joined: Sun Jun 27, 2010 3:55 pm
Callsign: G-ALGY
Version: 3.0
OS: W7U

Pre 1.4.3

Postby almursi » Tue Sep 21, 2010 12:52 am

Hi, this is (pre) 1.4.3:

DivShare File - eurofighter1_4_3.zip

In this version we changed the name to "Typhoon II", but is still the "Typhoon I" that I simply have added the command to use the carrier's catapult. The hook is part of the model since its inception, and designers have kept it because it is useful in emergency landings. In this Pre, with typhoon2 load the first version of the autopilot, compatible with 1.9.1 (and perhaps 2.0), and typhoon2-2 that best goes with 2.0.Git. But we are discussing this issue, so it is not yet final :mrgreen:. It is also possible for me to receive contributions from Algernon (which has been busy the past few days), or additions from DFaber (great to come back here), so maybe redo the package these days.

This version add autopilot functions and cockpit buttons for it.( And other cockpit buttons under development.)

Regards.
almursi
 
Posts: 108
Joined: Tue Apr 06, 2010 5:21 am
Location: LELC Murcia (Spain)
Callsign: EC-ALM
Version: Git
OS: Ubuntu 10.04

Re: eurofighter typhoon

Postby Algernon » Tue Sep 21, 2010 11:29 am

I think the way I'm going to go with the autopilot is to upload modular updates, as the version 2.0 causes problems and FG probably won't even run. I'm working on it today, I'll hopefully have an upgrade shortly. For those of you with GIT, there will be an update to fix a couple of minor problems posted here shortly.

I think the V1.9 autopilot works okay. Also, I have alternative button mappings which I'll release as a separate module and hopefully receive some feedback,
Algernon
FGUK - A FlightGear community in the United Kingdom and Republic of Ireland
User avatar
Algernon
 
Posts: 498
Joined: Sun Jun 27, 2010 3:55 pm
Callsign: G-ALGY
Version: 3.0
OS: W7U

Re: eurofighter typhoon

Postby Algernon » Tue Sep 21, 2010 2:03 pm

Okay, here's what I've got so far:

GIT Autopilot: This is mostly functional, only a few little niggles for me to fix. It features:

Standard Modes: Magnetic Heading Hold, True Heading Hold, Altitude Hold, Speed hold (with/without reheat)
Navigation Modes: GPS/Gallileo Hold, TACAN Hold, NAV1 Hold

No advanced modes yet - I can't really start those until I've got V2.0's autopilot, which is going to be a bit of a headache, but I hope to finish it very soon.

There is a dedicated Typhoon Autopilot dialog box available in the Autopilot Menu - again, this is mostly functional with just a couple of buttons not working.

ULP Buttons: We don't know what it's actually called, but we call it the Upper Left Panel, or ULP. I have experimented with the bindings quite a lot and I think this one is the most realistic. There are more modes that there are buttons/indicators, but I like it. Remember to make a copy of cockpit.xml (called cockpit-old.xml or something) in case you want to switch back to Almursi's bindings, which is less reliant on the autopilot dialog box but, in my opinion, is not quite as informative.

I mentioned it before, but I quite like the idea of having modular additions to the aircraft, just like in real life (different customers specify different systems). Aircraft releases are made with defaults, but you can download modules like this one from hangars, just as you'd download complete aircraft, and simply slot them in. This allows you to customise your Eurofighter so as to best suit your flying style, view setups etc. Please let me know how you get on.

You click an autopilot button to select that mode, and click again to deselect. Clicking another mode will deselect the current mode and select the new one. Clicking AP will cancel all vertical and lateral modes, and clicking AT enables/disables the Autothrottle. Modes available at present are:

HDG - Magnetic Heading Hold
TRK - True Heading/GPS hold
ALT - Altitude Hold
TFR - Terrain Following Radar hold
NIS - TACAN Hold (wrongly labelled at the moment)
NAV - NAV1 Hold

More to follow!! Please note that nothing here has been polished, it's a test release so you guys can (hopefully) provide some feedback. We know the FDM is still pilot-crushingly agile, my next job after the autopilot is sorted is to develop the Flight Control System which will reign in it, but at the moment, I do not anticipate this working with V2.0 so it will probably not be released until the new FG version is right, around New Year.
Algernon
FGUK - A FlightGear community in the United Kingdom and Republic of Ireland
User avatar
Algernon
 
Posts: 498
Joined: Sun Jun 27, 2010 3:55 pm
Callsign: G-ALGY
Version: 3.0
OS: W7U

Re: eurofighter typhoon

Postby DFaber » Tue Sep 21, 2010 3:29 pm

Sounds good Algernon, hope to test it this evening.

I've done a bit to the FDM, broke the fuselage definition in three parts and deleted the reaction time of the elevator. Should be a little less nervous now. However the CG shifted a bit backwards which isn't noticeable on common airfields but might affect carrier operations. I would like to get soome feedback on that.

Another FDM related question would be wether the drag generated by the delta wing in high AOA Situations is sufficient ( and how to test that??).

Here's my typhoon2-yasim:

Code: Select all
<?xml version="1.0"?>

<!-- Eurofighter Typhoon
TODO: strong parking brakes
Another (no basic) ToDo: adjust coord. of ballast, tanks, weights, slats more effective, thrust vectoring
Fixed: (several) error on wing degres, fuel consume more moderated, mach 1.2 without afterburne
   (for mach 1.5 -sea level-, 2 -hight altitude- within & "fuel freeze":
    missing some message warning over fuel consume on right-bottom cockpit panel).

   * testing:
     - fuselages and mount point/incidence wing

******* Old:

Solution results:       Iterations: 475
 Drag Coefficient: 17.216677
       Lift Ratio: 153.417282
       Cruise AoA: 0.026531
   Tail Incidence: 6.483444
Approach Elevator: -0.184078
               CG: x:-9.444, y:-0.000, z:0.076

  Inertia tensor : 50236.734, -0.000, 9383.315
        [kg*m^2]   -0.000, 174521.516, 0.000
     Origo at CG   9383.315, 0.000, 213605.234

******* With new fuselages and other settins on test:

Solution results:       Iterations: 353
 Drag Coefficient: 13.489564
       Lift Ratio: 217.109512
       Cruise AoA: 0.749491
   Tail Incidence: 0.995676
Approach Elevator: -0.086590
               CG: x:-9.516, y:-0.000, z:0.073

  Inertia tensor : 40285.816, -0.000, 6943.108
        [kg*m^2]   -0.000, 173467.250, 0.000
     Origo at CG   6943.108, 0.000, 203359.766

--> <!--drag = resistencia, lift = sustentación -->

<airplane mass="24581">

  <!-- Approach configuration -->
  <approach speed="130" aoa="9">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.4"/>
    <control-setting axis="/controls/engines/engine[1]/throttle" value="0.4"/>
    <control-setting axis="/controls/flight/flaps" value="0"/>
    <control-setting axis="/controls/gear/gear-down" value="1"/>
    <control-setting axis="/controls/flight/speedbrake" value="0"/>
    <control-setting axis="/controls/flight/slats" value="0"/>
  </approach>

  <!-- For Maximun perfomance test. Mach 2.0+
  <cruise speed="1480" alt="45000">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="1"/>
    <control-setting axis="/controls/engines/engine[1]/throttle" value="1"/>
    <control-setting axis="/controls/engines/engine[0]/afterburner" value="1"/>
    <control-setting axis="/controls/engines/engine[1]/afterburner" value="1"/>
    <control-setting axis="/controls/flight/flaps" value="0"/>
    <control-setting axis="/controls/gear/gear-down" value="0"/>
    <control-setting axis="/controls/flight/speedbrake" value="0"/>
    <control-setting axis="/controls/flight/slats" value="1"/>
  </cruise>
    -->

  <!-- Cruise configuration. Reaches 1.1/1.3 Mach without afterburne and basic air-to-air load
       with 860 seem fine and reaches within 1.5 sea level; stall 80-90 kt !!!
    -->
  <cruise speed="860" alt="45000">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.94"/>
    <control-setting axis="/controls/engines/engine[1]/throttle" value="0.94"/>
    <control-setting axis="/controls/flight/flaps" value="0"/>
    <control-setting axis="/controls/gear/gear-down" value="0"/>
    <control-setting axis="/controls/flight/speedbrake" value="0"/>
    <control-setting axis="/controls/flight/slats" value="0"/>
  </cruise>

  <!-- pilot eyepoint -->
  <cockpit x="-4" y="0.0" z="1.18"/>

<!--fuselage -->
  <fuselage ax="0" ay="0" az="0.067"
            bx="-3.0" by="0" bz="0.35"
       width="1.2" taper= "0.0" midpoint= "1.0"/>
  <fuselage ax="-3" ay="0" az="0.35"
            bx="-5.0" by="0" bz="0.35"
       width="1.3" taper= "0.9" midpoint= "1.0"/>
  <fuselage ax="-5.0" ay="0" az="0.067"
            bx="-14.96" by="0" bz="0.05"
       width="2.1" taper= "0.6" midpoint= "0.7"/>

<!-- cockpit and upper fuselage  <cockpit x="-4" y="0.0" z="1.18"/>
   ... maybe do another -->
  <fuselage ax="-2.61" ay="0.0" az="1"
            bx="-13" by="0.0" bz="0.8"
       width="0.9" taper= "0.45" midpoint= "0.17"/>

<!-- vstab mount  cx="1.6" cy="1.2" -->
  <fuselage ax="-11.20" ay="0" az="1.1"
            bx="-14.88" by="0" bz="0.6"
       width="0.4" taper= "0.9" midpoint= "0.65"/>

<!-- pods -->
  <fuselage ax="-10.6964" ay="5.471" az="-0.263"
            bx="-13.231" by="5.461" bz="-0.263"
       width="0.37" taper= "0.8" midpoint= "0.65"/>

  <fuselage ax="-10.6964" ay="-5.471" az="-0.263"
            bx="-13.231" by="-5.461" bz="-0.263"
       width="0.37" taper= "0.8" midpoint= "0.65"/>

<!-- wing mounts
  <fuselage ax="-5.9526" ay="0.99" az="-0.14"
            bx="-13.65" by="1.183" bz="-0.35"
       width="0.2" taper= "0.9" midpoint= "0.9"/>

  <fuselage ax="-5.9526" ay="-0.99" az="-0.14"
            bx="-13.65" by="-1.183" bz="-0.35"
       width="0.2" taper= "0.9" midpoint= "0.9"/>
 -->
  <fuselage ax="-5.9526" ay="0.79" az="-0.14"
            bx="-13.65" by="0.983" bz="-0.35"
       width="0.4" taper= "0.9" midpoint= "0.9"/>

  <fuselage ax="-5.9526" ay="-0.79" az="-0.14"
            bx="-13.65" by="-0.983" bz="-0.35"
       width="0.4" taper= "0.9" midpoint= "0.9"/>

<!-- engine mounts -->
  <fuselage ax="-11.08" ay="0.532" az="-0.06"
            bx="-14.914" by="0.532" bz="-0.06"
       width="1" taper= "1" midpoint= "0.8"/>

  <fuselage ax="-11.08" ay="-0.532" az="-0.06"
            bx="-14.914" by="-0.532" bz="-0.06"
       width="1" taper= "1" midpoint= "0.8"/>

<!-- Fine working:
 flap0 = foreplane, flap1 = -hmmm- speedbrake (this place?)
  <hstab x="-2.785" y="0.556" z="0.222"
         taper="0.34"
         length="1.6"
         chord="1.642"
         sweep="35"
        dihedral="-10">
    <stall aoa="35" width="13" peak="1.5"/>
    <flap0 start="0.001" end="1" lift="1.9" drag="1.4"/>
    <flap1 start="0.001" end="0.15" lift="0.001" drag="2.8" aoa="3"/>
    <control-input axis="/controls/flight/elevator" control="FLAP0" invert="true"/>
    <control-input axis="/controls/flight/elevator-trim" control="FLAP0" invert="true"/>
    <control-input axis="/controls/flight/speedbrake" control="FLAP1"/>
    <control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
    <control-output control="FLAP1" prop="/surface-positions/speedbrake-pos-norm"/>
    <control-speed control="FLAP0" transition-time="4"/>
    <control-speed control="FLAP1" transition-time="3.0"/>
  </hstab>
-->

<!-- on testing
 flap0 = foreplane, flap1 = variable capture air intake
 flap1 lift down to 1.4
-->
  <hstab x="-2.785" y="0.556" z="0.222"
         taper="0.34"
         length="1.6"
         chord="1.642"
         sweep="35"
        dihedral="-10">
    <stall aoa="35" width="13" peak="1.5"/>
    <flap0 start="0.001" end="1" lift="1.9" drag="1.4"/>
    <flap1 start="0.001" end="0.15" lift="1.4" drag="1.2"/>
    <control-input axis="/controls/flight/elevator" control="FLAP0" invert="true" square="true"/>
    <control-input axis="/controls/flight/elevator-trim" control="FLAP0" invert="true"/>
    <control-input axis="/controls/flight/flaps" control="FLAP1" invert="false"/>
    <control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
    <control-output control="FLAP1" prop="/surface-positions/flap-pos-norm"/>

    <control-speed control="FLAP1" transition-time="1.5"/>
  </hstab>

<!-- Fine working: flap0 = flaplerons, slat = slats
     on test idrag="0.9"
     slat: invert = true
  <wing x="-9.525" y="1.180" z="-0.199"
        taper="0.185"
        incidence="-0.4"
      twist="5.0"
        length="5.1"
        chord="6.815"
        sweep="30"
        dihedral="0">
    <stall aoa="21" width="8" peak="1.3"/>
    <flap0 start="0.02" end="0.95" lift="1.2" drag="1.1"/>
    <slat start="0.2" end="0.95" aoa="30" lift="3" drag="1.2"/>
    <control-input axis="/controls/flight/aileron" control="FLAP0" split="true"/>
    <control-input axis="/controls/flight/aileron-trim" control="FLAP0" split="true"/>
    <control-input axis="/controls/flight/slats" control="SLAT" invert="true"/>

    <control-output control="SLAT" prop="/surface-positions/slat-pos-norm"/>

    <control-output control="FLAP0" side="left"
                    prop="/surface-positions/left-aileron-pos-norm"/>
    <control-output control="FLAP0" side="right"
                    prop="/surface-positions/right-aileron-pos-norm"/>
    <control-output control="FLAP0" prop="/surface-positions/aileron-pos-norm"/>

    <control-speed control="SLAT" transition-time="5"/>
    <control-speed control="FLAP0" transition-time="1.05"/>

  </wing>
-->

<!-- Other test, for fine AFCS work: flap0 = flapleron0, flap1 = flapleron1, slats, speedbrake
     *** Take care: slat: invert = true (for pos rear on wing ?) ***
     Problem: spoiler do nothing...
  <wing x="-9.525" y="1.180" z="-0.199"
        taper="0.185"
        incidence="-0.4"
      twist="5.0"
        length="5.1"
        chord="6.815"
        sweep="30"
        dihedral="0">
    <stall aoa="21" width="8" peak="1.3"/>
    <flap0 start="0.02" end="0.55" lift="1.2" drag="1.1"/>
    <flap1 start="0.55" end="0.95" lift="1.2" drag="1.1"/>
    <spoiler start="0.001" end="0.10" lift="0.001" drag="8" aoa="3"/>
    <slat start="0.2" end="0.95" aoa="30" lift="3" drag="1.2"/>
    <control-input axis="/controls/flight/aileron" control="FLAP0" split="true"/>
    <control-input axis="/controls/flight/aileron-trim" control="FLAP0" split="true"/>
    <control-input axis="/controls/flight/aileron" control="FLAP1" split="true"/>
    <control-input axis="/controls/flight/aileron-trim" control="FLAP1" split="true"/>
    <control-input axis="/controls/flight/speedbrake" control="SPOILER"/>
    <control-input axis="/controls/flight/slats" control="SLAT" invert="true"/>

    <control-output control="SLAT" prop="/surface-positions/slat-pos-norm"/>

    <control-output control="FLAP0" side="left"
                    prop="/surface-positions/left-aileron-pos-norm"/>
    <control-output control="FLAP0" side="right"
                    prop="/surface-positions/right-aileron-pos-norm"/>
    <control-output control="FLAP0" prop="/surface-positions/aileron-pos-norm"/>
    <control-output control="FLAP1" side="left"
                    prop="/surface-positions/left-aileron-pos-norm"/>
    <control-output control="FLAP1" side="right"
                    prop="/surface-positions/right-aileron-pos-norm"/>
    <control-output control="FLAP1" prop="/surface-positions/aileron-pos-norm"/>

    <control-output control="SPOILER" prop="/surface-positions/speedbrake-pos-norm"/>

    <control-speed control="SLAT" transition-time="5"/>
    <control-speed control="FLAP0" transition-time="1.05"/>
    <control-speed control="FLAP1" transition-time="1.05"/>

    <control-speed control="SPOILER" transition-time="3.0"/>

  </wing>
-->

<!-- On test fine:  flap0 = flaplerons, slat = slats, flap1 = speedbrake (from wing)
     *** slat: invert = true (for pos rear on wing ?) ***
      speedbrake drag 2.5 to 2.1 maybe down?
   x="-9.525" y="1.180" z="-0.199"
        incidence="-0.4"
      twist="5.0"
        dihedral="0"

-->
  <wing x="-9.525" y="1.016" z="-0.199"
        taper="0.18"
        incidence="1.5"
      twist="-2"
        length="4.95"
        chord="7"
        sweep="30"
        dihedral="0">
    <stall aoa="21" width="8" peak="1.3"/>
    <slat start="0.2" end="0.95" aoa="6" lift="1.2" drag="1.2"/>
    <flap0 start="0.02" end="0.95" lift="1.2" drag="1.0"/>
    <flap1 start="0.001" end="0.091" lift="0.001" drag="2.1"/>
    <control-input axis="/controls/flight/aileron" control="FLAP0" split="true"/>
    <control-input axis="/controls/flight/aileron-trim" control="FLAP0" split="true"/>
    <control-input axis="/controls/flight/speedbrake" control="FLAP1" invert="true"/>
    <!--control-input axis="/controls/flight/speedbrake" control="SPOILER" invert="true"/-->
    <control-input axis="/controls/flight/slats" control="SLAT"/>

    <control-output control="SLAT" prop="/surface-positions/slats-pos-norm"/>

    <control-output control="FLAP0" side="left" prop="/surface-positions/left-aileron-pos-norm"/>
    <control-output control="FLAP0" side="right" prop="/surface-positions/right-aileron-pos-norm"/>
    <!--control-output control="FLAP0" prop="/surface-positions/aileron-pos-norm"/-->

    <control-output control="FLAP1" prop="/surface-positions/speedbrake-pos-norm"/>

    <control-speed control="SLAT" transition-time="2"/>
    <control-speed control="FLAP0" transition-time="1.05"/>
    <control-speed control="FLAP1" transition-time="3.0"/>
  </wing>



  <vstab x="-13.198" y="0.0" z="0.817"
         taper="0.38"
         length="3.9"
         chord="2.952"
         sweep="40" >
    <stall aoa="27" width="10" peak="1.5"/>
    <flap0 start="0.001" end="0.8" lift="1.3" drag="1.3"/>
    <control-input axis="/controls/flight/rudder" control="FLAP0" invert="true"/>
    <control-input axis="/controls/flight/rudder-trim" control="FLAP0" invert="true"/>
    <control-output control="FLAP0" prop="/surface-positions/rudder-pos-norm"/>
    <control-speed control="FLAP0" transition-time="1"/>
  </vstab>


 <!-- tsfc 0.7 seens excessive;  n2-max="105"; 21000
       reverse on test -->
  <jet x="-12.8" y="0.532" z="-0.06"
       mass="2204"
       thrust="13490"
      afterburner="20230"
                tsfc="0.4"
       n1-idle="25" n1-max="100" n2-idle="30" n2-max="100"
       exhaust-speed="1850"
       rotation="0">
    <actionpt x="-14.914" y="0.532" z="-0.06"/>
    <control-input axis="/controls/engines/engine[0]/throttle" control="THROTTLE"/>
    <control-input axis="/controls/engines/engine[0]/reheat" control="REHEAT"/>
    <control-input axis="/controls/engines/engine[0]/reverser" control="REVERSE_THRUST"/>
    <control-output control="REHEAT" prop="engines/engine[0]/afterburner" />
  </jet>
  <jet x="-12.8" y="-0.532" z="-0.06"
       mass="2204"
       thrust="13490"
      afterburner="20230"
                tsfc="0.4"
       n1-idle="25" n1-max="100" n2-idle="30" n2-max="100"
       exhaust-speed="1850"
       rotation="0">
    <actionpt x="-14.914" y="-0.532" z="-0.06"/>
    <control-input axis="/controls/engines/engine[1]/throttle" control="THROTTLE"/>
    <control-input axis="/controls/engines/engine[1]/reheat" control="REHEAT"/>
    <control-input axis="/controls/engines/engine[1]/reverser" control="REVERSE_THRUST"/>
    <control-output control="REHEAT" prop="engines/engine[1]/afterburner" />
  </jet>

  <!--thrust vectoring nozzles on testing (example from harrier, not is the best...)
  <control-input axis="/orientation/pitch-rate-degps" control="THROTTLE"
           src0="0" src1="2" dst0="0" dst1="0.3"/>
  <thruster x="-14.914" y="0.532" z="-0.032" vx="1" vy="0" vz="0" thrust="10">
  <control-input axis="/controls/flight/elevator" control="THROTTLE"
           src0="1" src1="0" dst0="1" dst1="0"/>
  </thruster>
  <thruster x="-14.914" y="-0.532" z="-0.032" vx="1" vy="0" vz="0" thrust="10">
  <control-input axis="/controls/flight/elevator" control="THROTTLE"
           src0="1" src1="0" dst0="1" dst1="0"/>
  </thruster>
   -->
 

  <!-- gear -->
  <!-- Parking brakes on until 80% of throttle, real model parking brakes with 100% throttle and reheat...  -->

  <!-- with brake-parking on noseger, use only on taxi-ground
       Con el freno de aparcamiento en la rueda delantera hay que ser cuidadoso -->

  <gear x="-5.375" y="0" z="-2.05"
        retract-time="1" initial-load="10"
        compression="0.4" upx="0" upy="0" upz="0.3" spring="5" damp="4">   <!-- testing -->
    <control-input axis="/controls/flight/rudder" control="STEER" square="true"
                 src0="-1" src1="1" dst0="-0.9" dst1="0.9"/>
    <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
    <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
    <control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>
    <control-speed control="EXTEND" transition-time="7"/>
  </gear>


  <!-- left main -->

  <gear x="-9.8" y="2.093" z="-1.81"
        retract-time="1"
        compression="0.4" upx="-0.02" upy="0.01" upz="0.19"
        spring="0.8" damp="2">
    <control-input axis="/controls/gear/brake-left" control="BRAKE"/>
    <control-input axis="/controls/gear/brake-parking" control="BRAKE" />
    <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
    <control-output control="EXTEND" prop="/gear/gear[1]/position-norm"/>
    <control-speed control="EXTEND" transition-time="8"/>
    <control-speed control="BRAKE" transition-time="1"/>
  </gear>


  <!-- right main -->
  <gear x="-9.8" y="-2.093" z="-1.81"
        retract-time="1"
   compression="0.4" upx="-0.02" upy="-0.01" upz="0.19"
        spring="0.8" damp="2">
    <control-input axis="/controls/gear/brake-right" control="BRAKE"/>
    <control-input axis="/controls/gear/brake-parking" control="BRAKE" />
    <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
    <control-output control="EXTEND" prop="/gear/gear[2]/position-norm"/>
    <control-speed control="EXTEND" transition-time="8"/>
    <control-speed control="BRAKE" transition-time="1"/>
  </gear>



<!-- Carrier ops ++++++++++++++++++++++++++++++++++++++++++++++++ -->

   <!-- Hook f14b ; true length seem +/- max "2.2246" min "2.06" -->
   <hook x="-12.20" y="-0.0192" z="-0.5483" length="2.25" down-angle="60" up-angle="-3">
      <control-input axis="/controls/gear/tailhook" control="HEXTEND"/>
      <control-speed control="HEXTEND" transition-time="4"/>
   </hook>


   <!-- Launch-bar f14b ; over nosegear tail: x="-5.406" y="0.0" z="-0.7945" length="1.463"
                               over nosewheel : x="-5.44" y="0.0" z="-1.175" -->
   <launchbar x="-5.44" y="0.0" z="-1.175" length="1.463">
      <control-input axis="/controls/gear/launchbar" control="LEXTEND"/>
      <control-speed control="LEXTEND" transition-time="1"/>
   </launchbar>




  <!-- tanks ahead gear 9.2, best that 9.8 (otherwise crash on parking !!!) -->
   <!-- front, 7.3 ? -->
  <tank x="-7.3" y="0.0" z="-0.25" jet="true" capacity="3990"/>
  <!-- rear, 9.2 ! -->
  <tank x="-9.2" y="-0.0" z="-0.25" jet="true" capacity="1873"/>
  <!-- left wing tanks -->
  <tank x="-9.3" y="2.2" z="-0.18" jet="true" capacity="420"/>
  <tank x="-10.1" y="2.7" z="-0.18" jet="true" capacity="882"/>
  <!-- right wing tanks -->
  <tank x="-9.3" y="-2.2" z="-0.18" jet="true" capacity="420"/>
  <tank x="-10.1" y="-2.7" z="-0.18" jet="true" capacity="882"/>
  <!-- drop tanks -->
  <tank x="-9.2" y="2.824" z="-0.6" jet="true" capacity="2645"/>
  <tank x="-9.2" y="-2.824" z="-0.6" jet="true" capacity="2645"/>
  <tank x="-9.2" y="0.0" z="-0.8" jet="true" capacity="2204"/>

  <tank x="-9.2" y="0.0" z="-0.8" jet="true" capacity="0"/>

  <!-- ballast
  <ballast x="-3.05" y="0" z="-0.1" mass="1000"/>
 
  <ballast x="-2.74" y="0" z="-0.35" mass="1200"/>
 -->

  <!-- ballast compensación a lo bruto...
  <ballast x="-2.7" y="0" z="-1.2" mass="3270"/>
 -->

  <!-- piloto -->
  <ballast x="-4.09" y="0" z="-0.57" mass="400"/>
  <!-- cockpit -->
  <ballast x="-2.79" y="0" z="0.22" mass="500"/>
  <!-- radar -->
  <ballast x="-2" y="0" z="0.22" mass="400"/>
  <!-- mauser 27mm., APU, baterías... -->
  <ballast x="-6.12" y="0" z="-0.10" mass="1000"/>
  <!-- trim - compensación hasta 3200 -->
  <ballast x="-0.7" y="0" z="0.2" mass="1100"/>


<!--
<ballast x="-0.9" y="0" z="-0.75" mass ="500"/>
-->


  <weight x="-4.5" y="0" z="0.6" mass-prop="/yasim/weights/pilot-lb"/>
  <!--<weight x="-0.39" y="0" z="-1.33" size="1.5"
        mass-prop="/yasim/hunter/weights/right-inboard-lbs"/>
<weight x="-0.79" y="2" z="-1.33" size="1"
        mass-prop="/yasim/hunter/weights/left-inboard-lbs"/>-->

<!-- external loads -->
  <weight x="-10.36"
               y="4.7"   
               z="-0.65"
            size="0.25"
              mass-prop="sim/weight[0]/weight-lb"
   />
  <weight x="-9.536"
               y="3.802"   
               z="-0.775"
            size="0.45"
              mass-prop="sim/weight[1]/weight-lb"
   />
<!-- left droptank -->
  <weight x="-9.4"
               y="2.824"   
               z="-0.6"
            size="0.7"
              mass-prop="sim/weight[2]/weight-lb"
   />
  <weight x="-7.376"
               y="1.739"   
               z="-0.817"
            size="0.45"
              mass-prop="sim/weight[3]/weight-lb"
   />
<!-- center -->
  <weight x="-9.4"
               y="0.0"   
               z="-0.32"
            size="0.6"
              mass-prop="sim/weight[4]/weight-lb"
   />
  <weight x="-7.376"
               y="-1.739"   
               z="-0.817"
            size="0.45"
              mass-prop="sim/weight[5]/weight-lb"
   />
<!-- right droptank -->
  <weight x="-9.4"
               y="-2.824"   
               z="-0.6"
            size="0.7"
              mass-prop="sim/weight[6]/weight-lb"
   />
  <weight x="-9.536"
               y="-3.802"   
               z="-0.775"
            size="0.45"
              mass-prop="sim/weight[7]/weight-lb"
   />
  <weight x="-10.36"
               y="-4.7"   
               z="-0.65"
            size="0.25"
              mass-prop="sim/weight[8]/weight-lb"
   />
<!-- fuselage AMRAAMs -->
  <weight x="-6.793"
               y="0.882"   
               z="-0.616"
            size="0.3"
              mass-prop="sim/weight[9]/weight-lb"
   />
  <weight x="-11.627"
               y="0.979"   
               z="-0.616"
            size="0.3"
              mass-prop="sim/weight[10]/weight-lb"
   />
  <weight x="-6.793"
               y="-0.882"   
               z="-0.616"
            size="0.3"
              mass-prop="sim/weight[11]/weight-lb"
   />
  <weight x="-11.627"
               y="-0.979"   
               z="-0.616"
            size="0.3"
              mass-prop="sim/weight[12]/weight-lb"
   />

</airplane>


Does anybody know if there is a seperate carrier version? I don't see any need to keep the old typhoon and prefer to replace it in Git. Maybe create two versions for land based and carrier based if there are enough differences between the versions.

Greetings
Detlef Faber
FlightGear Development:
http://flightgear-de.net

German FlightGear Forum
http://forum.flightgear-de.net
DFaber
 
Posts: 687
Joined: Fri Dec 01, 2006 7:51 pm
Location: Aachen, Germany
Version: GIT
OS: Linux

Re: eurofighter typhoon

Postby Algernon » Tue Sep 21, 2010 5:29 pm

The issue of two versions - carrier-based and land-based - is a topic AlMurSi and I have touched on in our email conversations. He doesn't think the differences are enough to justify two versions, and he may well be right. Now that we know that both you and Maverick Alex are happy to overwrite the old one, we're a bit closer to settling it, as TyphoonCarrier was really just a name to differentiate it from the original model. I personally don't think there are enough differences to warrant two separate versions, however as mentioned above, we think it will be necessary to find a good, neat way of separating the autopilots and flight control systems as the autopilot for the GIT version of FG purposely avoids using the "helper" properties such as fdm-heading-bug-magnetic-deg and suchlike (these are no longer supported), but I cannot make the V1.9+ autopilots work without them.

The FDM stuff all sounds great. AlMurSi is the chap who has generally worked with the FDM at the moment, so I'll let him comment on the code you've posted (the only FDM work I have done is to introduce engine[2], a (currently) weightless addition which is the APU as I am developing a realistic electrical system to eventually allow for a realistic aircraft start-up sequence. But it doesn't actually do anything at the moment, and it's not in the current FDM anyway, I'll put it back in once I've finished the Autopilot and have some time to work on the electrical system again.)
Algernon
FGUK - A FlightGear community in the United Kingdom and Republic of Ireland
User avatar
Algernon
 
Posts: 498
Joined: Sun Jun 27, 2010 3:55 pm
Callsign: G-ALGY
Version: 3.0
OS: W7U

Re: eurofighter typhoon

Postby almursi » Tue Sep 21, 2010 6:55 pm

Hi D.Faber, I'm testing your suggestion of FDM :D , but I am getting rather strange results :shock: . The truth is that on blender it see pretty good, but with your proposed take-off is quite rare, maximum power does nose up and rises up with stall speed (83 Kt +/-). If I can I'll do some other tests to discover what causes this effect... But it seems that I know where is the downside: I edited the values of the fuselage in "az=0.6" and "bz=-0.6" to ensure that AoA had a close to 0 in the cruise, but now it is unbalanced.

On the other hand, as Algernon says, we agree that there is no need to maintain two versions, at least in what refers to the model. And have multiple file-set is just to load different configurations (as might be the autopilot, at least until we develop it, or without the command of the catapult: but this does not bother and I think could be included in all file- set).

Edited:
Another FDM related question would be wether the drag generated by the delta wing in high AOA Situations is sufficient ( and how to test that??).


Yes, on this subject I have my doubts. Slats and spoiler on YASim seems to not work or have no visible effects. I still need to study a bit YASim code, to discover how it is resolved and what's wrong here. But now I do not hurry, because the need to release the FLAP1 (now speedbrake, for use with flaplerons) only come when we start with the AFCS and the dual role of flaplerons:

"Pitch control is provided by symmetric operation of foreplanes and
wing flaperons, while roll control is primarily achieved through
differential operation of wing flaperons. Yaw control is primarily
provided by the fin mounted rudder. Cross feeds among the various
actuation systems are also implemented to optimise aircraft
performance and handling qualities."
(Technical guide: http://www.eurofighter.com)

I tested the behavior of this dual role, but not resolved very well and achieves the opposite effect (with a similar problem to that simulation on Rafale, making it difficult to pitch control).


Regards.
almursi
 
Posts: 108
Joined: Tue Apr 06, 2010 5:21 am
Location: LELC Murcia (Spain)
Callsign: EC-ALM
Version: Git
OS: Ubuntu 10.04

Re: eurofighter typhoon

Postby almursi » Tue Sep 21, 2010 10:35 pm

Hi, Algernon, I fear that there is a small discrepancy with the news that I am entering in the cockpit :).



As to cockpit.xml, is missing a few lines at the end, otherwise we have a striking red textures (the final color will be another :oops: ).

Code: Select all
<!-- BOTONES ************************************************** -->



<!-- Aviso de fuego en los motores -->



   <animation>

      <type>select</type>

      <object-name>Fire.R.on</object-name>

   </animation>





   <animation>

      <type>select</type>

      <object-name>Fire.L.on</object-name>

   </animation>



<!-- Escalera (y canopy) -->



   <animation>

      <type>select</type>

      <object-name>Ladder.on</object-name>

   </animation>



<!-- FCScont -->



   <animation>

      <type>select</type>

      <object-name>FCScont.on</object-name>

   </animation>



<!-- Hook -->



   <animation>

      <type>select</type>

      <object-name>Hook.on</object-name>

   </animation>



On the other hand, the brightness of the buttons I think it's debatable. I have a .25 on the three RGB channels: with only green channel I have a somewhat confused (on/off). I will send you a combination to see what you think (which I may have missed something: I am afraid that is why they are so useful Diff files :mrgreen:). The only thing I might run out of time to test the autopilot :oops:

In Nasal/typhoon2.nas still missing a little changes already in my Git branch (on reversers control), no problem with overwriting :).

Regards.
almursi
 
Posts: 108
Joined: Tue Apr 06, 2010 5:21 am
Location: LELC Murcia (Spain)
Callsign: EC-ALM
Version: Git
OS: Ubuntu 10.04

Re: eurofighter typhoon

Postby Toanphuc » Wed Sep 22, 2010 5:27 am

I don't know how the real eurofighter agility but isn't that Eurofighter in FG is a little too high maneuver? And can i do something to improve the Yasim ?
A good flight sim is not to make people feel fly easier but to make them feel fly is as real as it get.
Other Free Flight Sims viewtopic.php?f=3&t=8847
Toanphuc
 
Posts: 183
Joined: Sun Jun 20, 2010 5:26 am

Re: eurofighter typhoon

Postby almursi » Wed Sep 22, 2010 6:18 am

Hi Toanphuc, yes, but not on FDM, it's a AFCS task, and only on 1.5 version o later will be ready :mrgreen:. In Spanish notes is explained a little, yet to make the English version. Regards.
almursi
 
Posts: 108
Joined: Tue Apr 06, 2010 5:21 am
Location: LELC Murcia (Spain)
Callsign: EC-ALM
Version: Git
OS: Ubuntu 10.04

Re: eurofighter typhoon

Postby Algernon » Wed Sep 22, 2010 12:06 pm

Yep, I'm about to start some experiments for the FCMS - basic at first, it will prevent you from pulling any more than a 10g turn. Eurofighter's life support systems enable pilots to sustain 9g indefinitely, but at the moment, it's possible to pull up and flip the aircraft over in a +25g climb!! As almursi says, expect it in V1.5, and also, based on my experience with making a backwards-compatible autopilot, the chances are it will only be available in current versions of FGFS and as such, I'd suggest only releasing it once the next version of FG comes out (about (western) New Year time, hopefully).

Just to let you know, the venerable VooDoo da Vinci and I flew Typhoons through the Mach Loop in North Wales last night, he says there are definite improvements to the version he's been flying, particularly more realistic handling and more credible engine response.

The aircraft is definitely coming along very nicely now, I can't wait for the FG F-22 Raptor to come out so we can put them up against each other!! ;)
Algernon
FGUK - A FlightGear community in the United Kingdom and Republic of Ireland
User avatar
Algernon
 
Posts: 498
Joined: Sun Jun 27, 2010 3:55 pm
Callsign: G-ALGY
Version: 3.0
OS: W7U

Re: eurofighter typhoon

Postby Algernon » Wed Sep 22, 2010 1:00 pm

By the way, I though I'd make this available: the first test release of my custom sounds package (the current sounds are from the Seahawk). Although not anywhere near perfect yet, it features directional sounds (so the air intake fans have their own sound, so does the APU exhaust and the engine nozzles) and a couple of nice touches (I think) - for instance, try opening the canopy with ctrl-d while you're in the cockpit. I'm quite pleased with that one!

The Typhoon has a very distinctive sound - it hisses like a furious python at idle - so it really does need a custom sounds package. I'm making them from scratch (with the exception of the afterburners which come from Dave Culp's excellent F-4), so they are definitely all GPL-compatible. To come shortly - Nagging Nancy, the Typhoon's female-prison-warder voice information system!! I'm going to do this using a voice synthesizer, as I don't know any sufficiently stern sounding women ;) I'd welcome any suggestions as to what she should say and when - I've got some ideas from videos, but any further knowledge much appreciated.
Algernon
FGUK - A FlightGear community in the United Kingdom and Republic of Ireland
User avatar
Algernon
 
Posts: 498
Joined: Sun Jun 27, 2010 3:55 pm
Callsign: G-ALGY
Version: 3.0
OS: W7U

Re: eurofighter typhoon

Postby Algernon » Wed Sep 22, 2010 2:22 pm

Sorry for three posts in a row, guys, but they are on different subjects and I'm feeling dynamic about the project today!

Would the simplest option for version compatibility be to release the aircraft equipped for the latest version of FGFS, but make "modular systems" available for download, so users of previous versions can simply download the aircraft AND an extra package with all the correct systems for their version of FG? This would mean having a central 'hangar' where the aircraft can be downloaded from, with all the optional downloads available there too and some clear documentation on how to up/downgrade, but that's not a problem - I'm certain FGUK would host the download page for us, and I'd love to design the web page for it. In fact I already have an idea in my head for it.

I think that might be the simplest way, and it fits in with the modular design philosophy of the Eurofighter which I'm so keen to replicate.

Toanphuc, sorry to not acknowledge you before, thanks for your feedback and offer of help - I don't suppose you are Italian by any chance? Currently the development team is made up of Spanish, German and British guys, we just need an Italian to make it kind of accurate to Eurofighter GmbH!! :D
Algernon
FGUK - A FlightGear community in the United Kingdom and Republic of Ireland
User avatar
Algernon
 
Posts: 498
Joined: Sun Jun 27, 2010 3:55 pm
Callsign: G-ALGY
Version: 3.0
OS: W7U

Re: eurofighter typhoon

Postby DFaber » Wed Sep 22, 2010 7:06 pm

Hi almursi

almursi wrote:The truth is that on blender it see pretty good, but with your proposed take-off is quite rare, maximum power does nose up and rises up with stall speed (83 Kt +/-). If I can I'll do some other tests to discover what causes this effect...


It's the CG being to far aft. I have shifted it a bit to the front and now it stays on ground with elevators neutral up to 150 kts and above rises gently. It seems as if there were too many fuselages in the rear, I had to remove the vstab mount fuselage definition to get it reasonable.

almursi wrote: But it seems that I know where is the downside: I edited the values of the fuselage in "az=0.6" and "bz=-0.6" to ensure that AoA had a close to 0 in the cruise, but now it is unbalanced.


A cruise AOA of 0.7 is hardly noticeable in flight and I doubt that the real Aircraft has a cruise AOA close to 0. Depending on Weight and balance it may well be positive. Although it is possible to balance this out via the wing incidence or camber.
Usually I don't mind a positive Cruise AOA.

Here it is:

Code: Select all
<?xml version="1.0"?>

<!-- Eurofighter Typhoon
TODO: strong parking brakes
Another (no basic) ToDo: adjust coord. of ballast, tanks, weights, slats more effective, thrust vectoring
Fixed: (several) error on wing degres, fuel consume more moderated, mach 1.2 without afterburne
   (for mach 1.5 -sea level-, 2 -hight altitude- within & "fuel freeze":
    missing some message warning over fuel consume on right-bottom cockpit panel).

   * testing:
     - fuselages and mount point/incidence wing

******* Old:

Solution results:       Iterations: 475
 Drag Coefficient: 17.216677
       Lift Ratio: 153.417282
       Cruise AoA: 0.026531
   Tail Incidence: 6.483444
Approach Elevator: -0.184078
               CG: x:-9.444, y:-0.000, z:0.076

  Inertia tensor : 50236.734, -0.000, 9383.315
        [kg*m^2]   -0.000, 174521.516, 0.000
     Origo at CG   9383.315, 0.000, 213605.234

******* With new fuselages and other settins on test:

Solution results:       Iterations: 353
 Drag Coefficient: 13.489564
       Lift Ratio: 217.109512
       Cruise AoA: 0.749491
   Tail Incidence: 0.995676
Approach Elevator: -0.086590
               CG: x:-9.516, y:-0.000, z:0.073

  Inertia tensor : 40285.816, -0.000, 6943.108
        [kg*m^2]   -0.000, 173467.250, 0.000
     Origo at CG   6943.108, 0.000, 203359.766

--> <!--drag = resistencia, lift = sustentación -->

<airplane mass="24581">

  <!-- Approach configuration -->
  <approach speed="130" aoa="9">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.4"/>
    <control-setting axis="/controls/engines/engine[1]/throttle" value="0.4"/>
    <control-setting axis="/controls/flight/flaps" value="0"/>
    <control-setting axis="/controls/gear/gear-down" value="1"/>
    <control-setting axis="/controls/flight/speedbrake" value="0"/>
    <control-setting axis="/controls/flight/slats" value="0"/>
  </approach>

  <!-- For Maximun perfomance test. Mach 2.0+
  <cruise speed="1480" alt="45000">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="1"/>
    <control-setting axis="/controls/engines/engine[1]/throttle" value="1"/>
    <control-setting axis="/controls/engines/engine[0]/afterburner" value="1"/>
    <control-setting axis="/controls/engines/engine[1]/afterburner" value="1"/>
    <control-setting axis="/controls/flight/flaps" value="0"/>
    <control-setting axis="/controls/gear/gear-down" value="0"/>
    <control-setting axis="/controls/flight/speedbrake" value="0"/>
    <control-setting axis="/controls/flight/slats" value="1"/>
  </cruise>
    -->

  <!-- Cruise configuration. Reaches 1.1/1.3 Mach without afterburne and basic air-to-air load
       with 860 seem fine and reaches within 1.5 sea level; stall 80-90 kt !!!
    -->
  <cruise speed="860" alt="45000">
    <control-setting axis="/controls/engines/engine[0]/throttle" value="0.94"/>
    <control-setting axis="/controls/engines/engine[1]/throttle" value="0.94"/>
    <control-setting axis="/controls/flight/flaps" value="0"/>
    <control-setting axis="/controls/gear/gear-down" value="0"/>
    <control-setting axis="/controls/flight/speedbrake" value="0"/>
    <control-setting axis="/controls/flight/slats" value="0"/>
  </cruise>

  <!-- pilot eyepoint -->
  <cockpit x="-4" y="0.0" z="1.18"/>

<!--fuselage -->
  <fuselage ax="0" ay="0" az="0.067"
            bx="-3.0" by="0" bz="0.35"
       width="1.2" taper= "0.0" midpoint= "1.0"/>
  <fuselage ax="-3" ay="0" az="0.35"
            bx="-5.0" by="0" bz="0.35"
       width="1.3" taper= "0.9" midpoint= "1.0"/>
  <fuselage ax="-5.0" ay="0" az="0.067"
            bx="-14.96" by="0" bz="0.05"
       width="2.1" taper= "0.6" midpoint= "0.7"/>

<!-- cockpit and upper fuselage  <cockpit x="-4" y="0.0" z="1.18"/>
   ... maybe do another -->
  <fuselage ax="-2.61" ay="0.0" az="1"
            bx="-6" by="0.0" bz="0.8"
       width="0.9" taper= "0.45" midpoint= "0.17"/>

<!-- vstab mount  cx="1.6" cy="1.2"
  <fuselage ax="-11.20" ay="0" az="1.1"
            bx="-14.88" by="0" bz="0.6"
       width="0.4" taper= "0.9" midpoint= "0.65"/>
-->
<!-- pods -->
  <fuselage ax="-10.6964" ay="5.471" az="-0.263"
            bx="-13.231" by="5.461" bz="-0.263"
       width="0.37" taper= "0.8" midpoint= "0.65"/>

  <fuselage ax="-10.6964" ay="-5.471" az="-0.263"
            bx="-13.231" by="-5.461" bz="-0.263"
       width="0.37" taper= "0.8" midpoint= "0.65"/>

<!-- wing mounts
  <fuselage ax="-5.9526" ay="0.99" az="-0.14"
            bx="-13.65" by="1.183" bz="-0.35"
       width="0.2" taper= "0.9" midpoint= "0.9"/>

  <fuselage ax="-5.9526" ay="-0.99" az="-0.14"
            bx="-13.65" by="-1.183" bz="-0.35"
       width="0.2" taper= "0.9" midpoint= "0.9"/>
 -->
  <fuselage ax="-5.9526" ay="0.79" az="-0.14"
            bx="-13.65" by="0.983" bz="-0.35"
       width="0.4" taper= "0.9" midpoint= "0.9"/>

  <fuselage ax="-5.9526" ay="-0.79" az="-0.14"
            bx="-13.65" by="-0.983" bz="-0.35"
       width="0.4" taper= "0.9" midpoint= "0.9"/>

<!-- engine mounts -->
  <fuselage ax="-11.08" ay="0.532" az="-0.06"
            bx="-14.914" by="0.532" bz="-0.06"
       width="1" taper= "1" midpoint= "0.8"/>

  <fuselage ax="-11.08" ay="-0.532" az="-0.06"
            bx="-14.914" by="-0.532" bz="-0.06"
       width="1" taper= "1" midpoint= "0.8"/>

<!-- Fine working:
 flap0 = foreplane, flap1 = -hmmm- speedbrake (this place?)
  <hstab x="-2.785" y="0.556" z="0.222"
         taper="0.34"
         length="1.6"
         chord="1.642"
         sweep="35"
        dihedral="-10">
    <stall aoa="35" width="13" peak="1.5"/>
    <flap0 start="0.001" end="1" lift="1.9" drag="1.4"/>
    <flap1 start="0.001" end="0.15" lift="0.001" drag="2.8" aoa="3"/>
    <control-input axis="/controls/flight/elevator" control="FLAP0" invert="true"/>
    <control-input axis="/controls/flight/elevator-trim" control="FLAP0" invert="true"/>
    <control-input axis="/controls/flight/speedbrake" control="FLAP1"/>
    <control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
    <control-output control="FLAP1" prop="/surface-positions/speedbrake-pos-norm"/>
    <control-speed control="FLAP0" transition-time="4"/>
    <control-speed control="FLAP1" transition-time="3.0"/>
  </hstab>
-->

<!-- on testing
 flap0 = foreplane, flap1 = variable capture air intake
 flap1 lift down to 1.4
-->
  <hstab x="-2.785" y="0.556" z="0.222"
         taper="0.34"
         length="1.6"
         chord="1.642"
         sweep="35"
        dihedral="-10">
    <stall aoa="35" width="13" peak="1.5"/>
    <flap0 start="0.001" end="1" lift="1.9" drag="1.4"/>
    <flap1 start="0.001" end="0.15" lift="1.4" drag="1.2"/>
    <control-input axis="/controls/flight/elevator" control="FLAP0" invert="true" square="true"/>
    <control-input axis="/controls/flight/elevator-trim" control="FLAP0" invert="true"/>
    <control-input axis="/controls/flight/flaps" control="FLAP1" invert="false"/>
    <control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
    <control-output control="FLAP1" prop="/surface-positions/flap-pos-norm"/>

    <control-speed control="FLAP1" transition-time="1.5"/>
  </hstab>

<!-- Fine working: flap0 = flaplerons, slat = slats
     on test idrag="0.9"
     slat: invert = true
  <wing x="-9.525" y="1.180" z="-0.199"
        taper="0.185"
        incidence="-0.4"
      twist="5.0"
        length="5.1"
        chord="6.815"
        sweep="30"
        dihedral="0">
    <stall aoa="21" width="8" peak="1.3"/>
    <flap0 start="0.02" end="0.95" lift="1.2" drag="1.1"/>
    <slat start="0.2" end="0.95" aoa="30" lift="3" drag="1.2"/>
    <control-input axis="/controls/flight/aileron" control="FLAP0" split="true"/>
    <control-input axis="/controls/flight/aileron-trim" control="FLAP0" split="true"/>
    <control-input axis="/controls/flight/slats" control="SLAT" invert="true"/>

    <control-output control="SLAT" prop="/surface-positions/slat-pos-norm"/>

    <control-output control="FLAP0" side="left"
                    prop="/surface-positions/left-aileron-pos-norm"/>
    <control-output control="FLAP0" side="right"
                    prop="/surface-positions/right-aileron-pos-norm"/>
    <control-output control="FLAP0" prop="/surface-positions/aileron-pos-norm"/>

    <control-speed control="SLAT" transition-time="5"/>
    <control-speed control="FLAP0" transition-time="1.05"/>

  </wing>
-->

<!-- Other test, for fine AFCS work: flap0 = flapleron0, flap1 = flapleron1, slats, speedbrake
     *** Take care: slat: invert = true (for pos rear on wing ?) ***
     Problem: spoiler do nothing...
  <wing x="-9.525" y="1.180" z="-0.199"
        taper="0.185"
        incidence="-0.4"
      twist="5.0"
        length="5.1"
        chord="6.815"
        sweep="30"
        dihedral="0">
    <stall aoa="21" width="8" peak="1.3"/>
    <flap0 start="0.02" end="0.55" lift="1.2" drag="1.1"/>
    <flap1 start="0.55" end="0.95" lift="1.2" drag="1.1"/>
    <spoiler start="0.001" end="0.10" lift="0.001" drag="8" aoa="3"/>
    <slat start="0.2" end="0.95" aoa="30" lift="3" drag="1.2"/>
    <control-input axis="/controls/flight/aileron" control="FLAP0" split="true"/>
    <control-input axis="/controls/flight/aileron-trim" control="FLAP0" split="true"/>
    <control-input axis="/controls/flight/aileron" control="FLAP1" split="true"/>
    <control-input axis="/controls/flight/aileron-trim" control="FLAP1" split="true"/>
    <control-input axis="/controls/flight/speedbrake" control="SPOILER"/>
    <control-input axis="/controls/flight/slats" control="SLAT" invert="true"/>

    <control-output control="SLAT" prop="/surface-positions/slat-pos-norm"/>

    <control-output control="FLAP0" side="left"
                    prop="/surface-positions/left-aileron-pos-norm"/>
    <control-output control="FLAP0" side="right"
                    prop="/surface-positions/right-aileron-pos-norm"/>
    <control-output control="FLAP0" prop="/surface-positions/aileron-pos-norm"/>
    <control-output control="FLAP1" side="left"
                    prop="/surface-positions/left-aileron-pos-norm"/>
    <control-output control="FLAP1" side="right"
                    prop="/surface-positions/right-aileron-pos-norm"/>
    <control-output control="FLAP1" prop="/surface-positions/aileron-pos-norm"/>

    <control-output control="SPOILER" prop="/surface-positions/speedbrake-pos-norm"/>

    <control-speed control="SLAT" transition-time="5"/>
    <control-speed control="FLAP0" transition-time="1.05"/>
    <control-speed control="FLAP1" transition-time="1.05"/>

    <control-speed control="SPOILER" transition-time="3.0"/>

  </wing>
-->

<!-- On test fine:  flap0 = flaplerons, slat = slats, flap1 = speedbrake (from wing)
     *** slat: invert = true (for pos rear on wing ?) ***
      speedbrake drag 2.5 to 2.1 maybe down?
   x="-9.525" y="1.180" z="-0.199"
        incidence="-0.4"
      twist="5.0"
        dihedral="0"

-->
  <wing x="-9.525" y="1.016" z="-0.199"
        taper="0.18"
        incidence="1.5"
      twist="-2"
        length="4.95"
        chord="7"
        sweep="30"
        dihedral="0">
    <stall aoa="21" width="8" peak="1.3"/>
    <slat start="0.2" end="0.95" aoa="6" lift="1.2" drag="1.2"/>
    <flap0 start="0.02" end="0.95" lift="1.2" drag="1.0"/>
    <flap1 start="0.001" end="0.091" lift="0.001" drag="2.1"/>
    <control-input axis="/controls/flight/aileron" control="FLAP0" split="true"/>
    <control-input axis="/controls/flight/aileron-trim" control="FLAP0" split="true"/>
    <control-input axis="/controls/flight/speedbrake" control="FLAP1" invert="true"/>
    <!--control-input axis="/controls/flight/speedbrake" control="SPOILER" invert="true"/-->
    <control-input axis="/controls/flight/slats" control="SLAT"/>

    <control-output control="SLAT" prop="/surface-positions/slats-pos-norm"/>

    <control-output control="FLAP0" side="left" prop="/surface-positions/left-aileron-pos-norm"/>
    <control-output control="FLAP0" side="right" prop="/surface-positions/right-aileron-pos-norm"/>
    <!--control-output control="FLAP0" prop="/surface-positions/aileron-pos-norm"/-->

    <control-output control="FLAP1" prop="/surface-positions/speedbrake-pos-norm"/>

    <control-speed control="SLAT" transition-time="2"/>
    <control-speed control="FLAP0" transition-time="1.05"/>
    <control-speed control="FLAP1" transition-time="3.0"/>
  </wing>



  <vstab x="-13.198" y="0.0" z="0.817"
         taper="0.38"
         length="3.9"
         chord="2.952"
         sweep="40" >
    <stall aoa="27" width="10" peak="1.5"/>
    <flap0 start="0.001" end="0.8" lift="1.3" drag="1.3"/>
    <control-input axis="/controls/flight/rudder" control="FLAP0" invert="true"/>
    <control-input axis="/controls/flight/rudder-trim" control="FLAP0" invert="true"/>
    <control-output control="FLAP0" prop="/surface-positions/rudder-pos-norm"/>
    <control-speed control="FLAP0" transition-time="1"/>
  </vstab>


 <!-- tsfc 0.7 seens excessive;  n2-max="105"; 21000
       reverse on test -->
  <jet x="-12.8" y="0.532" z="0.06"
       mass="2204"
       thrust="13490"
      afterburner="20230"
                tsfc="0.4"
       n1-idle="25" n1-max="100" n2-idle="30" n2-max="100"
       exhaust-speed="1850"
       rotation="0">
    <actionpt x="-14.914" y="0.532" z="0.06"/>
    <control-input axis="/controls/engines/engine[0]/throttle" control="THROTTLE"/>
    <control-input axis="/controls/engines/engine[0]/reheat" control="REHEAT"/>
    <control-input axis="/controls/engines/engine[0]/reverser" control="REVERSE_THRUST"/>
    <control-output control="REHEAT" prop="engines/engine[0]/afterburner" />
  </jet>
  <jet x="-12.8" y="-0.532" z="0.06"
       mass="2204"
       thrust="13490"
      afterburner="20230"
                tsfc="0.4"
       n1-idle="25" n1-max="100" n2-idle="30" n2-max="100"
       exhaust-speed="1850"
       rotation="0">
    <actionpt x="-14.914" y="-0.532" z="0.06"/>
    <control-input axis="/controls/engines/engine[1]/throttle" control="THROTTLE"/>
    <control-input axis="/controls/engines/engine[1]/reheat" control="REHEAT"/>
    <control-input axis="/controls/engines/engine[1]/reverser" control="REVERSE_THRUST"/>
    <control-output control="REHEAT" prop="engines/engine[1]/afterburner" />
  </jet>

  <!--thrust vectoring nozzles on testing (example from harrier, not is the best...)
  <control-input axis="/orientation/pitch-rate-degps" control="THROTTLE"
           src0="0" src1="2" dst0="0" dst1="0.3"/>
  <thruster x="-14.914" y="0.532" z="-0.032" vx="1" vy="0" vz="0" thrust="10">
  <control-input axis="/controls/flight/elevator" control="THROTTLE"
           src0="1" src1="0" dst0="1" dst1="0"/>
  </thruster>
  <thruster x="-14.914" y="-0.532" z="-0.032" vx="1" vy="0" vz="0" thrust="10">
  <control-input axis="/controls/flight/elevator" control="THROTTLE"
           src0="1" src1="0" dst0="1" dst1="0"/>
  </thruster>
   -->
 

  <!-- gear -->
  <!-- Parking brakes on until 80% of throttle, real model parking brakes with 100% throttle and reheat...  -->

  <!-- with brake-parking on noseger, use only on taxi-ground
       Con el freno de aparcamiento en la rueda delantera hay que ser cuidadoso -->

  <gear x="-5.375" y="0" z="-2.05"
        retract-time="1" initial-load="10"
        compression="0.4" upx="0" upy="0" upz="0.3" spring="5" damp="4">   <!-- testing -->
    <control-input axis="/controls/flight/rudder" control="STEER" square="true"
                 src0="-1" src1="1" dst0="-0.9" dst1="0.9"/>
    <control-input axis="/controls/gear/brake-parking" control="BRAKE"/>
    <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
    <control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>
    <control-speed control="EXTEND" transition-time="7"/>
  </gear>


  <!-- left main -->

  <gear x="-9.8" y="2.093" z="-1.81"
        retract-time="1"
        compression="0.4" upx="-0.02" upy="0.01" upz="0.19"
        spring="0.8" damp="2">
    <control-input axis="/controls/gear/brake-left" control="BRAKE"/>
    <control-input axis="/controls/gear/brake-parking" control="BRAKE" />
    <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
    <control-output control="EXTEND" prop="/gear/gear[1]/position-norm"/>
    <control-speed control="EXTEND" transition-time="8"/>
    <control-speed control="BRAKE" transition-time="1"/>
  </gear>


  <!-- right main -->
  <gear x="-9.8" y="-2.093" z="-1.81"
        retract-time="1"
   compression="0.4" upx="-0.02" upy="-0.01" upz="0.19"
        spring="0.8" damp="2">
    <control-input axis="/controls/gear/brake-right" control="BRAKE"/>
    <control-input axis="/controls/gear/brake-parking" control="BRAKE" />
    <control-input axis="/controls/gear/gear-down" control="EXTEND"/>
    <control-output control="EXTEND" prop="/gear/gear[2]/position-norm"/>
    <control-speed control="EXTEND" transition-time="8"/>
    <control-speed control="BRAKE" transition-time="1"/>
  </gear>



<!-- Carrier ops ++++++++++++++++++++++++++++++++++++++++++++++++ -->

   <!-- Hook f14b ; true length seem +/- max "2.2246" min "2.06" -->
   <hook x="-12.20" y="-0.0192" z="-0.5483" length="2.25" down-angle="60" up-angle="-3">
      <control-input axis="/controls/gear/tailhook" control="HEXTEND"/>
      <control-speed control="HEXTEND" transition-time="4"/>
   </hook>


   <!-- Launch-bar f14b ; over nosegear tail: x="-5.406" y="0.0" z="-0.7945" length="1.463"
                               over nosewheel : x="-5.44" y="0.0" z="-1.175" -->
   <launchbar x="-5.44" y="0.0" z="-1.175" length="1.463">
      <control-input axis="/controls/gear/launchbar" control="LEXTEND"/>
      <control-speed control="LEXTEND" transition-time="1"/>
   </launchbar>




  <!-- tanks ahead gear 9.2, best that 9.8 (otherwise crash on parking !!!) -->
   <!-- front, 7.3 ? -->
  <tank x="-7.3" y="0.0" z="-0.25" jet="true" capacity="3990"/>
  <!-- rear, 9.2 ! -->
  <tank x="-9.2" y="-0.0" z="-0.25" jet="true" capacity="1873"/>
  <!-- left wing tanks -->
  <tank x="-9.3" y="2.2" z="-0.18" jet="true" capacity="420"/>
  <tank x="-10.1" y="2.7" z="-0.18" jet="true" capacity="882"/>
  <!-- right wing tanks -->
  <tank x="-9.3" y="-2.2" z="-0.18" jet="true" capacity="420"/>
  <tank x="-10.1" y="-2.7" z="-0.18" jet="true" capacity="882"/>
  <!-- drop tanks -->
  <tank x="-9.2" y="2.824" z="-0.6" jet="true" capacity="2645"/>
  <tank x="-9.2" y="-2.824" z="-0.6" jet="true" capacity="2645"/>
  <tank x="-9.2" y="0.0" z="-0.8" jet="true" capacity="2204"/>

  <tank x="-9.2" y="0.0" z="-0.8" jet="true" capacity="0"/>

  <!-- ballast
  <ballast x="-3.05" y="0" z="-0.1" mass="1000"/>
 
  <ballast x="-2.74" y="0" z="-0.35" mass="1200"/>
 -->

  <!-- ballast compensación a lo bruto...
  <ballast x="-2.7" y="0" z="-1.2" mass="3270"/>
 -->

  <!-- piloto -->
  <ballast x="-4.09" y="0" z="-0.57" mass="400"/>
  <!-- cockpit -->
  <ballast x="-2.79" y="0" z="0.22" mass="500"/>
  <!-- radar -->
  <ballast x="-2" y="0" z="0.22" mass="400"/>
  <!-- mauser 27mm., APU, baterías... -->
  <ballast x="-6.12" y="0" z="-0.10" mass="1000"/>
  <!-- trim - compensación hasta 3200 -->
  <ballast x="-0.7" y="0" z="-0.2" mass="1100"/>


<!--
<ballast x="-0.9" y="0" z="-0.75" mass ="500"/>
-->


  <weight x="-4.5" y="0" z="0.6" mass-prop="/yasim/weights/pilot-lb"/>
  <!--<weight x="-0.39" y="0" z="-1.33" size="1.5"
        mass-prop="/yasim/hunter/weights/right-inboard-lbs"/>
<weight x="-0.79" y="2" z="-1.33" size="1"
        mass-prop="/yasim/hunter/weights/left-inboard-lbs"/>-->

<!-- external loads -->
  <weight x="-10.36"
               y="4.7"   
               z="-0.65"
            size="0.25"
              mass-prop="sim/weight[0]/weight-lb"
   />
  <weight x="-9.536"
               y="3.802"   
               z="-0.775"
            size="0.45"
              mass-prop="sim/weight[1]/weight-lb"
   />
<!-- left droptank -->
  <weight x="-9.4"
               y="2.824"   
               z="-0.6"
            size="0.7"
              mass-prop="sim/weight[2]/weight-lb"
   />
  <weight x="-7.376"
               y="1.739"   
               z="-0.817"
            size="0.45"
              mass-prop="sim/weight[3]/weight-lb"
   />
<!-- center -->
  <weight x="-9.4"
               y="0.0"   
               z="-0.32"
            size="0.6"
              mass-prop="sim/weight[4]/weight-lb"
   />
  <weight x="-7.376"
               y="-1.739"   
               z="-0.817"
            size="0.45"
              mass-prop="sim/weight[5]/weight-lb"
   />
<!-- right droptank -->
  <weight x="-9.4"
               y="-2.824"   
               z="-0.6"
            size="0.7"
              mass-prop="sim/weight[6]/weight-lb"
   />
  <weight x="-9.536"
               y="-3.802"   
               z="-0.775"
            size="0.45"
              mass-prop="sim/weight[7]/weight-lb"
   />
  <weight x="-10.36"
               y="-4.7"   
               z="-0.65"
            size="0.25"
              mass-prop="sim/weight[8]/weight-lb"
   />
<!-- fuselage AMRAAMs -->
  <weight x="-6.793"
               y="0.882"   
               z="-0.616"
            size="0.3"
              mass-prop="sim/weight[9]/weight-lb"
   />
  <weight x="-11.627"
               y="0.979"   
               z="-0.616"
            size="0.3"
              mass-prop="sim/weight[10]/weight-lb"
   />
  <weight x="-6.793"
               y="-0.882"   
               z="-0.616"
            size="0.3"
              mass-prop="sim/weight[11]/weight-lb"
   />
  <weight x="-11.627"
               y="-0.979"   
               z="-0.616"
            size="0.3"
              mass-prop="sim/weight[12]/weight-lb"
   />

</airplane>


I try to implement a g-limiter function in the FDM itself.

EDIT:

add this to the <hstab> definition to have the gload limited to approx 9g:
Code: Select all
    <control-input axis="/accelerations/pilot-g" control="FLAP0" invert="true"
      src0="8" src1="9" dst0="0" dst1="1" />    <control-input axis="/accelerations/pilot-g" control="FLAP0" invert="true"
      src0="8" src1="9" dst0="0" dst1="1" />


Greetings
Detlef Faber
FlightGear Development:
http://flightgear-de.net

German FlightGear Forum
http://forum.flightgear-de.net
DFaber
 
Posts: 687
Joined: Fri Dec 01, 2006 7:51 pm
Location: Aachen, Germany
Version: GIT
OS: Linux

PreviousNext

Return to Aircraft

Who is online

Users browsing this forum: Applebot [Bot] and 2 guests