1
0
Fork 0
No description
Find a file
Florent Rougon 9037441778 Fix bearing calculation in the GPS Settings dialog
Magnetic declination being "the direction of the horizontal component of
the magnetic field measured clockwise from north" according to
MagneticField(1), it must be substracted, not added, from true bearings
in order to obtain the corresponding magnetic bearings.

Example illustrating the bug:

  Start at  KSFO, open Equipment -> GPS Settings, enter KHTH as the
  destination and click on "Search". Before the bug fix, the dialog
  gives a bearing of 85, whereas the correct magnetic bearing is 58.

  Digging a bit further, the true bearings/azimuths for the shortest
  path (geodesic line) from KSFO to KHTH are approx. 71.5 at KSFO and
  73.8 at KHTH. This can be verified with two independent libraries
  (GeographicLib and PROJ.4):

    % echo "37d37'08N 122d22'30W 38d32'45N 118d38'00W" | \
      GeodSolve -i
    71.44943076 73.75785283 343987.398
    % echo "37d37'08N 122d22'30W 38d32'45N 118d38'00W" | \
      geod +ellps=WGS84 -I -f '%0.3f'
    71.449  -106.242        343987.398

  (-106.242 + 180 = 73.758: -106.242 is the "back azimuth" at KHTH for
  this path)

  The bearing of 85 given by the code in gui/dialogs/gps.xml before
  this commit is indeed 71.5 + magnetic declination at the starting
  point (KSFO), whereas it should be 71.5 - magnetic declination.

  Another, more experimental way:

  Start FlightGear with:

     fgfs --aircraft=ufo --disable-real-weather-fetch \
     '--metar=KSFO 070956Z 36000KT 10SM FEW023 11/07 A2977 RMK AO2 SLP080 T01060067' \
     --lat=37.61867421 --lon=-122.37500761 --heading=71.45931

   (just in case wind influences the ufo, I have no idea whether this is
   the case or not...)

   During your flight, progressively increase your heading (as seen in
   the HUD, i.e., true heading) so that it smoothly changes from 71.5 at
   KSFO to 73.8 at KHTH. You should arrive pretty close to KHTH, whereas
   the initial heading of 85 given by the GPS Settings dialog is way too
   high, be it interpreted as a magnetic heading (which was visibly the
   intention---it would be nice to write that in the dialog BTW) or as a
   true heading (in which case the result is even further from the
   correct value).
2015-12-08 22:46:47 +01:00
AI Merge /u/wkitty42/flightgear/ branch AI-paper-cut-bugs into next 2015-10-18 17:08:31 +00:00
Aircraft Updated the generic JSBSim hydrodynamics system. 2015-11-15 15:10:13 +01:00
Aircraft-uiuc fix path for beech99 doco 2002-05-01 01:27:18 +00:00
Airports Update *.dat files to 2013.10 state to match new terrain 2013-12-13 23:53:57 +01:00
Astro Brandon Craig Rhodes: 2003-11-27 16:55:39 +00:00
ATC Fix wrong ATIS for negative temperatures 2015-01-12 16:45:36 +01:00
Docs Add a svg version of our FG logo 2015-11-05 20:52:31 +01:00
Effects Improved light curves for Earthview in low light 2015-12-07 08:43:58 +02:00
Environment Tentative improvements to AW gust modeling 2015-11-16 17:41:57 +02:00
Fonts Boeing CDU fonts 2015-01-27 16:08:42 +01:00
Geodata Add some additional NaturalEarth data. 2015-11-27 23:27:11 +00:00
gui Fix bearing calculation in the GPS Settings dialog 2015-12-08 22:46:47 +01:00
HLA hla: Bring the object model in line with fgviewer. 2012-12-16 17:46:34 +01:00
Huds Bugfix: HUD GPS data only shown if WP1 is valid. 2014-01-14 13:16:50 +00:00
Input Joystick HOTAS-Cougar: fix typo 2015-11-02 11:57:53 +01:00
Lighting Cancel specular highlights due to sun at night 2012-07-12 09:27:35 +02:00
Materials Use hires tree textures in US Southwest 2015-11-08 20:38:15 +02:00
Models Earthview loads only texture sheets actually used 2015-11-08 20:42:20 +02:00
MP Sync with VirtualAir (http://virtualair.sourceforge.net/). 2010-02-10 10:41:25 +00:00
Nasal NavDisplay: Added mode, when heading bug is always displayed regardless of track-heading switch. Switched off by default. 2015-11-30 13:34:54 +01:00
Navaids Calibrate the GS antenna height to match with FG sceanary 2014-03-27 14:33:43 -04:00
Phi Add a simple Phi Example 2015-11-19 15:33:46 +01:00
Protocol FGCom: add silence threshold setting 2014-01-26 16:41:18 +01:00
Scenery Readd AI/ Models/ and Scenery/ with clean history 2015-03-07 22:11:00 +01:00
Shaders Improved light curves for Earthview in low light 2015-12-07 08:43:58 +02:00
Sounds Environment sounds by c172p team for common use 2015-11-26 16:29:47 +02:00
Textures Gilberto Agostinho: 2015-10-30 10:24:13 +01:00
Timezone Removed. 2000-11-03 20:18:05 +00:00
Translations Translating some missing French help entries 2015-07-27 21:36:00 +02:00
.gitignore Add gitignore file. 2012-02-18 14:26:17 +01:00
AtlasPalette Fix type 2005-01-31 14:20:38 +00:00
AUTHORS Updates in preparation for the 0.9.8 release. 2004-12-21 00:21:11 +00:00
ChangeLog text file updates. 2002-02-18 15:37:50 +00:00
COPYING Updates in preparation for the 0.9.8 release. 2004-12-21 00:21:11 +00:00
httpd-settings.xml Phi: move URL to the browsers root directory 2015-04-18 13:03:46 +02:00
joysticks.xml joysticks.xml: Manual revert of unintended changes from Alexis merge. 2010-10-29 20:43:09 +02:00
keyboard.xml Fix conflict Tab key vs cycle mouse mode 2014-01-16 19:11:58 +01:00
mice.xml able to change FoV in spring-loaded mode 2014-01-19 23:29:33 +01:00
NEWS Preparation for 0.9.11-pre1 release. 2007-05-15 16:09:55 +00:00
options.xml Update options.xml 2014-08-29 13:53:59 +02:00
preferences.xml Earthview loads only texture sheets actually used 2015-11-08 20:42:20 +02:00
README spelling fixes 2007-11-20 18:09:20 +00:00
README-textures-ng Stat adding Direct Draw Surface terrain textures 2011-09-05 12:01:45 +01:00
runfgfs.bat Initial revision. 2001-06-11 22:11:49 +00:00
Thanks Replace CC-BY-SA textures. 2015-07-05 19:49:32 +01:00
version Bump version to 3.7.0 2015-07-27 21:55:35 +02:00

Welcome to the FlightGear Flight Simulator project.
===================================================

The primary web page for this project is: http://www.flightgear.org

For basic installation instructions see the "INSTALL" file.

Before you can run FlightGear you will also need to download and
install the "base" package which is a collection of textures, sounds,
sample scenery, and other data files needed by the sim.

For additional install help for specific platforms please browse the
"docs-mini/" subdirectory.

More complete documentation is available from our web page as a
separate distribution.

Please take a look at the "Thanks" file for a list of people who have
contributed to this project.  If you have contributed something but
don't find your name in this file.  Please send a polite reminder to
http://www.flightgear.org/~curt

For a summary of changes/additions by version see the "NEWS" file.

This project is GPL'd.  For complete details on our licensing please
see the "COPYING" file.

For information on available mailing lists, mailing list archives, and
other available source code and documentation, please visit our web
site.

FlightGear is a product of the collaboration of large international
group of volunteers.  FlightGear is a work in progress.  FlightGear
comes with no warranty.  We hope you enjoy FlightGear and/or find it
of some value!