Improving Glider Realism: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
(14 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[http://www.flightgear.org FG Home] >> [[Main Page|Wiki]] >> [[Portal:Developer|Development portal]] >> Improving Glider Realism
This article lists areas that have a significant impact on [[soaring]] realism.
 
This section lists the areas that have a significant impact on soaring realism. This wiki has additional relevant information in the [[Soaring]] area.


Note that as of 06/2010, weather modeling is under active development: [[A local weather system]] - for additional details you may want to check back with the flightgear forums or mailing lists.
Note that as of 06/2010, weather modeling is under active development: [[A local weather system]] - for additional details you may want to check back with the flightgear forums or mailing lists.
Line 10: Line 8:
* http://sourceforge.net/projects/zsim/ (OSG based)
* http://sourceforge.net/projects/zsim/ (OSG based)
* http://sourceforge.net/projects/glider3d/
* http://sourceforge.net/projects/glider3d/


== Gliders ==
== Gliders ==
This section reviews the design issues affecting the user aircraft.
This section reviews the design issues affecting the user aircraft.


=== Flight Model ===
=== Flight Model ===
Of course, gliders need a custom-designed flight model.
Of course, gliders need a custom-designed flight model.


=== Glider external 3D models ===
=== Glider external 3D models ===
 
This is the best understood bit of glider simulation... designing a decent 3D model. You can tell if it's any good just by looking at it, although performance plays a part too. For the current FG glider state of the art, here's the [[ASK21]] (April 2017): <br/>
This is the best understood bit of glider simulation... designing a decent 3D model. You can tell if it's any good just by looking at it, although performance plays a part too. For the current FG glider state of the art, here's the ASK21:
[[File:ASK21-Fuselage-Tail.jpg|500px]]
 
[[File:ASK21-Wing.jpg|500px]]<br/>
[[File:Ask21 external2.jpg|500px]]
[[File:ASK21-Landing-Innsbruck.jpg|500px]]


=== Glider cockpit 3D models ===
=== Glider cockpit 3D models ===
Less well understood, but still not rocket science, gliders need a good 3d model for the cockpit with the panel and the various levers (joystick, flaps, airbrakes, water ballast, landing gear). The current (January 2017) panels are displayed below - already quite well but mostly still lacking important parts such as levers:


Less well understood, but still not rocket science, gliders need a good 3d model for the cockpit with the panel and the various levers (joystick, flaps, airbrakes, water ballast, landing gear). The current (April 2009) panels are displayed below - functional but a bit sparse compared to real gliders:
==== ASK 21 Panel ====
[[File:ASK21-Front-Panel.jpg|500px]]


==== ASK 21 Panel ====
==== ASK 13 Panel ====
[[File:Ask 21 cockpit.jpg|500px]]
[[File:ASK13-Panel.jpg|500px]]


==== DG300 Panel ====
==== DG300 Panel ====
This is an old version, currently the glider is lost in the "Bermuda Triangle": http://wiki.flightgear.org/Glaser-Dirks_DG-300 <br/>
[[File:DG-300-Cockpit.jpg|500px]]
[[File:DG-300-Cockpit.jpg|500px]]


==== DG-101G Panel ====
==== DG-101G Panel ====
[[File:DG-101G_cockpit.png|500px]]
[[File:DG-101G_cockpit.png|500px]]
==== DG LS-8 Panel ====
[[File:LS8-Panel.jpg|500px]]


==== FSX Comparison ====
==== FSX Comparison ====
 
The (upcoming) Aerosoft Discus sets the high ground for glider cockpit and panel modelling. To see how high the bar has been raised [http://www.mutleyshangar.com/reviews/jack/discus/discus.htm see here]
The (upcoming) Aerosoft Discus sets the high ground for glider cockpit and panel modelling. To see how high the bar has been raised [http://www.specific-3d-design.de/resources/Discus%20Panel.jpg see here]


=== Gauges ===
=== Gauges ===
:''See also [[Soaring instrumentation sdk|Soaring instrumentation SDK]], a toolkit allowing configuration of advanced soaring specific instruments.''


Unfortunately it is not possible to create a decent glider by simply copying across existing instruments from a power aircraft. The minimum instrument set is an altimeter, air speed indicator, and variometer. The variometer (vario) is unique to soaring.
Unfortunately it is not possible to create a decent glider by simply copying across existing instruments from a power aircraft. The minimum instrument set is an altimeter, air speed indicator, and variometer. The variometer (vario) is unique to soaring.
Line 50: Line 52:


The mandatory instruments are the altimeter and the air speed indicator. These two and the main variometer are generally 80mm diameter instruments. The panel often includes a 'flight computer' with a digital display showing a variety of flight parameters which also takes up an 80mm 'hole' on the panel. The flight computer often drives a separate 'slave' variometer often in a 57mm hole.
The mandatory instruments are the altimeter and the air speed indicator. These two and the main variometer are generally 80mm diameter instruments. The panel often includes a 'flight computer' with a digital display showing a variety of flight parameters which also takes up an 80mm 'hole' on the panel. The flight computer often drives a separate 'slave' variometer often in a 57mm hole.
'''Note:''' As of 10/2013 there is active development going on to improve FlightGear support for gliding specific instrumentation. More information can be found [http://forum.flightgear.org/viewtopic.php?f=14&p=191353 here] and at [[FlightGear Newsletter October 2013#Soaring Instrumentation Toolkit]].


==== Variometer ====
==== Variometer ====
At its simplest, a variometer is a rate of climb indicator. However, this pure (uncompensated) indication of vertical speed is very poor for climbing effectively in thermals as the effect of the vertical movement of the air is swamped by the pilot's actions with the control column (so called 'stick thermals'). Since the 1930's, real gliding variometers have used some method to compensate for the climb rate induced by the pilot pushing or pulling on the control column.
At its simplest, a variometer is a rate of climb indicator. However, this pure (uncompensated) indication of vertical speed is very poor for climbing effectively in thermals as the effect of the vertical movement of the air is swamped by the pilot's actions with the control column (so called 'stick thermals'). Since the 1930's, real gliding variometers have used some method to compensate for the climb rate induced by the pilot pushing or pulling on the control column.


Line 76: Line 79:
In order of complexity, the uncompensated 'rate of climb' vario is the simplest but less useful, the TE vario is still pretty simple but a ''lot'' more useful, the Netto vario is a fair bit more complex requiring the gauge to know the glide performance of the glider at every speed and ballast load, and the speed-to-fly vario is fairly complex to code as it has to know the Netto stuff plus tables for the optimum speed to fly at different ballast settings and external lift/sink rates.
In order of complexity, the uncompensated 'rate of climb' vario is the simplest but less useful, the TE vario is still pretty simple but a ''lot'' more useful, the Netto vario is a fair bit more complex requiring the gauge to know the glide performance of the glider at every speed and ballast load, and the speed-to-fly vario is fairly complex to code as it has to know the Netto stuff plus tables for the optimum speed to fly at different ballast settings and external lift/sink rates.


Please Note that as of 06/2010 there is now a TE compensated variometer available in FlightGear HEAD: [http://gitorious.com/fg/fgdata/trees/master/Aircraft/Instruments-3d/glider/vario/ilec-sc7 $FG_ROOT/Aircraft/Instruments-3d/glider/vario/ilec-sc7]. It has been implemented for the [http://gitorious.com/fg/fgdata/trees/master/Aircraft/ASK13 ASK13 glider].
Please Note that as of 06/2010 there is now a TE compensated variometer available in FlightGear HEAD: [http://gitorious.com/fg/fgdata/trees/master/Aircraft/Instruments-3d/glider/vario/ilec-sc7 [[$FG_ROOT]]/Aircraft/Instruments-3d/glider/vario/ilec-sc7]. It has been implemented for the [http://gitorious.com/fg/fgdata/trees/master/Aircraft/ASK13 ASK13 glider]. (As of 02/2011 there is also a second TE compensated variometer available, implemented for the DG-101G.)


People interested in adding this instrument to other gliders, will want to refer to the [http://gitorious.com/fg/fgdata/blobs/master/Aircraft/Instruments-3d/glider/vario/ilec-sc7/README_install README_install file].
People interested in adding this instrument to other gliders, will want to refer to the [http://gitorious.com/fg/fgdata/blobs/master/Aircraft/Instruments-3d/glider/vario/ilec-sc7/README_install README_install file].
Line 91: Line 94:


==== Flight Computer ====
==== Flight Computer ====
'''Note:''' As of 08/2012 (FG 2.8) there's a new [[Canvas]] subsystem available in FlightGear, which provides support for fully scripted avionics, so that custom avionics, including flight computers and MFDs can be entirely created in scripting space.


These electronic instruments primarily drive slave variometers of various types (see above) and compute your ''arrival height'' at the next waypoint or final destination (for which they are generally connected to a GPS). The screenshot below is taken from the Aerosoft Discus for FSX - this flight computer is the most complex gauge ever created for FSX, containing 3500 lines of code to perform computations then displayed through the simple interface, i.e. the slave variometer needle (top left), the 'petal' variometer needle on the display itself, and the digital numeric displays. The other analogue gauges (ASI, TE vario, engine tachometer) are not connected to the flight computer. An open source implementation of a "gliding computer" is available in the form of [http://www.xcsoar.org/ XCSoar] for Pocket PCs.
These electronic instruments primarily drive slave variometers of various types (see above) and compute your ''arrival height'' at the next waypoint or final destination (for which they are generally connected to a GPS). The screenshot below is taken from the Aerosoft Discus for FSX - this flight computer is the most complex gauge ever created for FSX, containing 3500 lines of code to perform computations then displayed through the simple interface, i.e. the slave variometer needle (top left), the 'petal' variometer needle on the display itself, and the digital numeric displays. The other analogue gauges (ASI, TE vario, engine tachometer) are not connected to the flight computer. An open source implementation of a "gliding computer" is available in the form of [http://www.xcsoar.org/ XCSoar] for Pocket PCs.


[[File:Glider flight computer.jpg]]
[[File:Glider flight computer.jpg]]
For a comparison of some of the more common flight computers, and a list of features, see: http://www.cumulus-soaring.com/flightcomputers.htm


==== IGC file logger ====
==== IGC file logger ====
To compare flights with others, it helps to have a log of your flight in the 'IGC format'. This is a text file with an agreed format, with some header rows and then one-row-per-timestamp for the lat/long/alt.
To compare flights with others, it helps to have a log of your flight in the 'IGC format'. This is a text file with an agreed format, with some header rows and then one-row-per-timestamp for the lat/long/alt.


The specification for the IGC format log file is available [http://www.fai.org/gliding/gnss/tech_spec_gnss.asp on the FAI website].
The specification for the IGC format log file is available [http://www.fai.org/gnss-recording-devices/igc-approved-flight-recorders on the FAI website].


The full specification has become unbelievably tortuous, but most of the records are optional and an example of a working file would be:
The full specification has become unbelievably tortuous, but most of the records are optional and an example of a working file would be:
Line 130: Line 136:


== Enviroment lift modelling ==
== Enviroment lift modelling ==
This section reviews the requirements for the environment modelling, in particular the simulation of the vertical component of air movement on which gliders depend for soaring flight.
This section reviews the requirements for the environment modelling, in particular the simulation of the vertical component of air movement on which gliders depend for soaring flight.


Line 136: Line 141:


=== Ridgelift ===
=== Ridgelift ===
A paper on the efficient calculation of ridge lift is available [http://carrier.csi.cam.ac.uk/forsterlewis/soaring/sim/fsx/dev/sim_probe/sim_probe_paper.html from Ian Forster-Lewis].
A paper on the efficient calculation of ridge lift is available [http://carrier.csi.cam.ac.uk/forsterlewis/soaring/sim/fsx/dev/sim_probe/sim_probe_paper.html from Ian Forster-Lewis].
This is now implemented in CVS. Ridge lift is enabled by default but may be disabled by using
This is now implemented in CVS. Ridge lift is enabled by default but may be disabled by using
Line 143: Line 147:




The FlightGear issues are also discussed in [http://www.flightgear.org/forums/viewtopic.php?f=6&t=3377 this forum thread]
The FlightGear issues are also discussed in [http://forum.flightgear.org/viewtopic.php?f=6&t=3377 this forum thread]


=== Wave ===
=== Wave ===


== Multiplayer ==
== Multiplayer ==
Solo soaring is all about admiring the scenery, and multiplayer soaring is predominantly about comparing times to complete the same cross-country task.


Solo soaring is all about admiring the scenery, and multiplayer soaring is predominantly about comparing times to complete the same cross-country task.
[[Category:Aircraft enhancement]]

Revision as of 16:00, 4 April 2017

This article lists areas that have a significant impact on soaring realism.

Note that as of 06/2010, weather modeling is under active development: A local weather system - for additional details you may want to check back with the flightgear forums or mailing lists.

Other open source simulators that provide support for simulating gliders, and that may be useful when improving FlightGear's support for gliding, include:

Gliders

This section reviews the design issues affecting the user aircraft.

Flight Model

Of course, gliders need a custom-designed flight model.

Glider external 3D models

This is the best understood bit of glider simulation... designing a decent 3D model. You can tell if it's any good just by looking at it, although performance plays a part too. For the current FG glider state of the art, here's the ASK21 (April 2017):
ASK21-Fuselage-Tail.jpg ASK21-Wing.jpg
ASK21-Landing-Innsbruck.jpg

Glider cockpit 3D models

Less well understood, but still not rocket science, gliders need a good 3d model for the cockpit with the panel and the various levers (joystick, flaps, airbrakes, water ballast, landing gear). The current (January 2017) panels are displayed below - already quite well but mostly still lacking important parts such as levers:

ASK 21 Panel

ASK21-Front-Panel.jpg

ASK 13 Panel

ASK13-Panel.jpg

DG300 Panel

This is an old version, currently the glider is lost in the "Bermuda Triangle": http://wiki.flightgear.org/Glaser-Dirks_DG-300
DG-300-Cockpit.jpg

DG-101G Panel

DG-101G cockpit.png

DG LS-8 Panel

LS8-Panel.jpg


FSX Comparison

The (upcoming) Aerosoft Discus sets the high ground for glider cockpit and panel modelling. To see how high the bar has been raised see here

Gauges

See also Soaring instrumentation SDK, a toolkit allowing configuration of advanced soaring specific instruments.

Unfortunately it is not possible to create a decent glider by simply copying across existing instruments from a power aircraft. The minimum instrument set is an altimeter, air speed indicator, and variometer. The variometer (vario) is unique to soaring.

Glider instruments are generally 80mm or 57mm in diameter. This standardisation makes it easier to add/remove/move instruments in the panel.

The mandatory instruments are the altimeter and the air speed indicator. These two and the main variometer are generally 80mm diameter instruments. The panel often includes a 'flight computer' with a digital display showing a variety of flight parameters which also takes up an 80mm 'hole' on the panel. The flight computer often drives a separate 'slave' variometer often in a 57mm hole.

Note: As of 10/2013 there is active development going on to improve FlightGear support for gliding specific instrumentation. More information can be found here and at FlightGear Newsletter October 2013#Soaring Instrumentation Toolkit.

Variometer

At its simplest, a variometer is a rate of climb indicator. However, this pure (uncompensated) indication of vertical speed is very poor for climbing effectively in thermals as the effect of the vertical movement of the air is swamped by the pilot's actions with the control column (so called 'stick thermals'). Since the 1930's, real gliding variometers have used some method to compensate for the climb rate induced by the pilot pushing or pulling on the control column.

It is common for a glider panel to have more than one variometer - the largest (80mm) analogue dial may be displaying Total Energy compensated climb rate (see immediately below) while a smaller dial connected to the flight computer may be displaying Netto or speed-to-fly.

  • Total energy compensation. If the glider is climbing, a factor can be subtracted from the indicated lift if the glider is decelerating, and the reverse during descent. So if the glider is neither accelerating or decelerating the absolute rate of climb (or sink) will be shown.
    • Potential energy = mass x G x height (or height = energy / (mass x G))
    • Kinetic energy = 0.5 x mass x velocity squared
    • if in time period 't' the glider goes from height 'h1'..'h2' and speed 'v1'..'v2':
    • uncompensated vario reading = (h2-h1)/t
    • TE adjustment = height the glider would have gained if it hadn't accelerated / time
    • = (change in kinetic energy / (mass x G))/t
    • = ((0.5 * mass * v2^2 - 0.5 * mass * v1^2) / (mass x G)) / t
    • = (v2^2 - v1^2) / 2Gt where G = 9.81 meters per second per second
    • TE reading = uncompensated reading + TE adjustment
    • TE reading = (h2-h1)/t + (v2^2 - v1^2) / (19.62*t)
    • (all units meters, seconds, meters per second)
  • Netto compensation. The design sink rate of the glider at the current airspeed is added to the total energy vario reading, so the variometer actually displays the vertical rate of the air outside the glider. For a perfectly compensated instrument, the vario will show zero in still air regardless of the airspeed of the aircraft
  • Speed-to-fly display. Generally in a glider, if the variometer needle moves negative you assume sinking air and speed up. Or if the vario needle indicates lift you slow up and if the lift is good enough you pull up into a turn. So for cruising flight you continually speed up and slow down according to what the vario is doing - this is called dolphin flying and is a particularly efficient way of flying cross-country, giving you more time in lift (because you slow down) and less time in sink (because you speed up). But what is the optimum speed to fly in any given rising or sinking air? To take out the guesswork, some electronic variometers (those slaved from a flight computer) are configured to read in the lift/sink value but indicate positive if you should slow down, and negative if you should speed up. To an uninitiated observer, the gauge looks like an ordinary variometer - even though the computation being performed is more complex, the needle moves up (slow down) and down (speed up) in a natural way, just like an 'ordinary' vario.

In order of complexity, the uncompensated 'rate of climb' vario is the simplest but less useful, the TE vario is still pretty simple but a lot more useful, the Netto vario is a fair bit more complex requiring the gauge to know the glide performance of the glider at every speed and ballast load, and the speed-to-fly vario is fairly complex to code as it has to know the Netto stuff plus tables for the optimum speed to fly at different ballast settings and external lift/sink rates.

Please Note that as of 06/2010 there is now a TE compensated variometer available in FlightGear HEAD: $FG_ROOT/Aircraft/Instruments-3d/glider/vario/ilec-sc7. It has been implemented for the ASK13 glider. (As of 02/2011 there is also a second TE compensated variometer available, implemented for the DG-101G.)

People interested in adding this instrument to other gliders, will want to refer to the README_install file.

Also see:

Flight Computer

Note: As of 08/2012 (FG 2.8) there's a new Canvas subsystem available in FlightGear, which provides support for fully scripted avionics, so that custom avionics, including flight computers and MFDs can be entirely created in scripting space.

These electronic instruments primarily drive slave variometers of various types (see above) and compute your arrival height at the next waypoint or final destination (for which they are generally connected to a GPS). The screenshot below is taken from the Aerosoft Discus for FSX - this flight computer is the most complex gauge ever created for FSX, containing 3500 lines of code to perform computations then displayed through the simple interface, i.e. the slave variometer needle (top left), the 'petal' variometer needle on the display itself, and the digital numeric displays. The other analogue gauges (ASI, TE vario, engine tachometer) are not connected to the flight computer. An open source implementation of a "gliding computer" is available in the form of XCSoar for Pocket PCs.

Glider flight computer.jpg


For a comparison of some of the more common flight computers, and a list of features, see: http://www.cumulus-soaring.com/flightcomputers.htm

IGC file logger

To compare flights with others, it helps to have a log of your flight in the 'IGC format'. This is a text file with an agreed format, with some header rows and then one-row-per-timestamp for the lat/long/alt.

The specification for the IGC format log file is available on the FAI website.

The full specification has become unbelievably tortuous, but most of the records are optional and an example of a working file would be:

AXXXb21_sim_probe 2.55
HFDTE070608
HFFXA035
HFPLTPILOTINCHARGE: not recorded
HFCM2CREW2: not recorded
HFGTYGLIDERTYPE:DG
HFGIDGLIDERID:B21
HFDTM100GPSDATUM: WGS-1984
HFRFWFIRMWAREVERSION: 2.55
HFRHWHARDWAREVERSION: 2008
HFFTYFRTYPE: sim_probe by Ian Forster-Lewis
HFGPSGPS:Microsoft Flight Simulator
HFPRSPRESSALTSENSOR: Microsoft Flight Simulator
HFCIDCOMPETITIONID:B21
HFCCLCOMPETITIONCLASS:Microsoft Flight Simulator
I013638FXA
B1658174040958N07737022WA0094000940000
B1658214040875N07737069WA0095200952000
B1658254040811N07737136WA0095300953000
... and more B records for the rest of the file
G123456789

IGC files can be uploaded to everytrail.com or can be converted by gpsvisualizer.com for viewing in Google Earth. Also, there's an open source tool available, named "gpligc".

Enviroment lift modelling

This section reviews the requirements for the environment modelling, in particular the simulation of the vertical component of air movement on which gliders depend for soaring flight.

Thermals

Ridgelift

A paper on the efficient calculation of ridge lift is available from Ian Forster-Lewis. This is now implemented in CVS. Ridge lift is enabled by default but may be disabled by using

--prop:/environment/ridge-lift/enabled=0

on the command line or by setting this property at runtime.


The FlightGear issues are also discussed in this forum thread

Wave

Multiplayer

Solo soaring is all about admiring the scenery, and multiplayer soaring is predominantly about comparing times to complete the same cross-country task.