1
0
Fork 0
Commit graph

852 commits

Author SHA1 Message Date
Gijs de Rooy
d84168d36d About dialog: update year 2016-01-07 15:20:24 +01:00
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
Thorsten Renk
04524c0cca Tentative improvements to AW gust modeling 2015-11-16 17:41:57 +02:00
Gijs de Rooy
1274c933ba Canvas style: add missing icon 2015-11-10 13:40:49 +01:00
Stuart Buchanan
733027e67b Ignore unnamed views in replay dialog
Patch from Denk PADJE.
2015-07-24 18:30:40 +01:00
Torsten Dreyer
50c388f634 Workaround for "AI Models invisible"
expose the ai-range-mode flag to the static-lod dialog.
PagedLOD culling based on distance seems to be more reliable than that based
on projected screen size.
2015-07-09 10:15:40 +02:00
Torsten Dreyer
0d9266a13a Use Phi's map for Equipment->Browser Map 2015-06-12 12:05:38 +02:00
janodesbois
12af1482e7 little adjustements for the mp patch 2015-06-09 21:12:48 +02:00
Torsten Dreyer
19fe180e3e Merge commit 'e033ac2f106efd45155341f877242b448dd8ded5' into next
This is merge request #20
MP Patch first step fgdata part: nasal to check wich planes we are
displaying in the futur, with a distance check , one plane each frame.
2015-06-07 21:29:32 +02:00
janodesbois
e033ac2f10 FgData part for the MP patch, we allow lag compensation only if the mp plane
is close enough, we check only one plane each frame
2015-06-06 07:05:05 +02:00
Richard Senior
b09f116653 Checklists: Fix bug where first checklist has multiple pages
The change introduced in commit 8c7fc119 to go to the last checklist
on open causes a problem when the first checklist has multiple pages.
If the last opened checklist did not have multiple pages, the previous
and next page buttons are still shown.

This commit runs the same binding as used by the combo box to reset
the visibility of these buttons immediately before the page is
displayed.
2015-06-06 07:02:13 +02:00
Stuart Buchanan
d04903ddb1 Make METAR string editable in GUI. Fix bug 1764 2015-06-03 20:14:28 +01:00
Aidan Fell
01f1f9e6c1 notify users of AW 2015-05-15 20:08:53 +01:00
Stuart Buchanan
f5a3913a31 Fix resizing behaviour broken by b4d166 (bug #1750) 2015-05-10 15:38:25 +01:00
Stuart Buchanan
b4d16682ce GUI Cleanup from Michael HABARTA. Part 3/3 2015-05-03 17:13:50 +01:00
Richard Senior
e177cf535a Checklists: Fix bug where first checklist has multiple pages
The change introduced in commit 8c7fc119 to go to the last checklist
on open causes a problem when the first checklist has multiple pages.
If the last opened checklist did not have multiple pages, the previous
and next page buttons are still shown.

This commit runs the same binding as used by the combo box to reset
the visibility of these buttons immediately before the page is
displayed.
2015-04-24 15:24:49 +01:00
Torsten Dreyer
2bf8bed453 Use new browser map location in menubar 2015-04-18 13:25:37 +02:00
Torsten Dreyer
89b304cd1f Airports dialog: Don't implement backend logic in UI
Now that request-metar/clear-metar commands work properly, use those
instead of direct manipulation of metar properties. Also, don't write
to properties intended for read-only use.
2015-03-30 17:13:40 +02:00
Thorsten Renk
59e01f4edc Improvements and bugfixes for orbital rendering 2015-03-29 13:16:19 +03:00
Richard Senior
8c7fc11905 Checklists: go to last selected page on open 2015-03-22 11:23:13 +00:00
Torsten Dreyer
f4a3977127 Fix failed-to-load-server in multiplayer dialog 2015-03-15 22:22:13 +01:00
Torsten Dreyer
3f13b1b3e2 Fix broken multiplayer dialog
dialog used to force port 5000 for rx and tx. This patch restores this.
2015-03-15 21:00:52 +01:00
Stuart Buchanan
0581ad323d GUI Cleanup from Michael HABARTA. Part 2 2015-03-14 23:03:31 +00:00
Stuart Buchanan
9f0a780279 GUI clean up from Michael HABARTA. Part 1 2015-03-14 22:33:05 +00:00
Torsten Dreyer
6ae95ea10a Use new multiplayer commands in gui 2015-03-12 09:50:16 +01:00
Thorsten Renk
3b44cbd6bd Random vegetation shadows for ALS 2015-02-20 09:55:13 +02:00
Clément de l'Hamaide
913b6db91f oops, remove debug code 2014-12-30 17:40:28 +01:00
Clément de l'Hamaide
c42da1014d Instruments GUI: format value with Nasal 2014-12-30 17:32:21 +01:00
Clément de l'Hamaide
2ce60a3659 Instruments GUI: add QNH setting
Thanks to Omega & jam007 on forum

http://forum.flightgear.org/viewtopic.php?f=6&t=20045
2014-12-30 16:27:10 +01:00
Gijs de Rooy
18270fddc3 About dialog: update year 2014-12-27 14:17:45 +01:00
Stuart Buchanan
b1e356e538 Replace airport parking position dropdown with text 2014-12-10 22:24:21 +00:00
Thorsten Renk
9369073c5a Auto-adjust ground wetness to maximum of noise-spike filtered rain-norm or user-set wetness 2014-11-07 10:31:19 +02:00
Clément de l'Hamaide
654ef82691 Add an help-button for FGCom 2014-10-15 22:00:54 +02:00
Clément de l'Hamaide
5f342fdc7c Add new LOD key: AI/MP Interior, default value: 50.0 2014-09-21 22:15:52 +02:00
Torsten Dreyer
b2b6750d37 Complain if browser-map is started without running httpd 2014-09-12 23:07:41 +02:00
Torsten Dreyer
fd720ac8bf Add the Browser based moving map to the menubar
needs --httpd=nnnn on startup
2014-09-12 21:55:42 +02:00
Thomas Geymayer
246c480ea3 canvas.gui: Add a basic LineEdit for text input. 2014-08-31 19:40:14 +02:00
Clément de l'Hamaide
5e5914da75 FGCom: add a PTT checkbox for test + make them as live 2014-08-09 19:01:13 +02:00
Stuart Buchanan
a0c93de91c Reload scenery only after change to relevant param 2014-08-01 22:18:19 +01:00
Stuart Buchanan
bbb501e36a Reload scenery on exit from Rendering dialog.
Various updates to the Rendering Dialog
- Remove experimental reduced LoD options
- Remove Reload Scenery
- Automatically Reload Scenery on OK.
2014-07-31 21:34:48 +01:00
Thomas Geymayer
4673e862a2 radios.xml: fallback to OFF if transponder mode not set. 2014-06-21 12:09:34 +02:00
Thomas Geymayer
5d723e6eab canvas.gui: Add checkbox widget. 2014-06-17 21:02:59 +02:00
Thomas Geymayer
e496ca56ab canvas.gui: Add MessageBox class.
Use canvas.MessageBox.critical/warning/information/question
to show a standard, but also customizable dialog box.
2014-06-17 17:16:02 +02:00
Thomas Geymayer
9933398a37 canvas.gui: missing return and minor color update. 2014-06-17 17:12:21 +02:00
Thomas Geymayer
b5dae5b567 canvas.gui: Button color tweaking. 2014-06-17 11:44:05 +02:00
Rebecca Palmer
81607f734e Remove ATC chatter, as previously discussed:
http://sourceforge.net/p/flightgear/mailman/message/32440533/
http://sourceforge.net/p/flightgear/mailman/message/32428167/
2014-06-12 23:53:17 +01:00
Thomas Geymayer
1b5fc0cbdf canvas.gui: allow disabling widgets. 2014-06-11 00:36:42 +02:00
Thomas Geymayer
e4d60f2153 Simple canvas based "Aircraft Center".
- Needs FlightGear compiled with -DENABLE_PACKAGE_SYSTEM.
 - Shows only first 100 available aircrafts.
 - Now progress indication on install/remove (need to reopen
   dialog afterwards)
2014-06-10 18:47:13 +02:00
Anton Gomez Alvedro
5df7a784e5 Failure Management Framework (1st milestone)
Replaces existing Nasal/failures.nas script with a programmable failure
manager. The failure manager allows dynammic creation and removal of
failure modes, on demand activation and a flexible set of triggers.
The public interface can be found in Nasal/FailureMgr/public.nas

Aircraft/Generic/Systems/failures.nas provides a library of triggers and
failure actuators ready to use for programming the failure manager.

A compatibility layer is included under
Aircraft/Generic/Systems/compat_failure_modes.nas.
This compatibility layer is currently loaded on startup and programs the
FailureMgr to emulate the former behavior (same set of failure modes and
compatible interface through the property tree).

This first milestone is only intended to replace the failure management
engine underneeth with minimum visible changes, and hopefully no aircraft
breakages. Future milestones will build upon this to add a Canvas based
procedural GUI and example integration on aircrafts.
2014-06-06 21:41:11 -05:00
Philosopher
807062d0b6 Misc. Nasal cleanup 2014-06-06 21:19:11 -05:00