1
0
Fork 0
Commit graph

7828 commits

Author SHA1 Message Date
Torsten Dreyer
6c98468d19 fix #1834: not taps in Phi
Allow missing config.json in fg-home.
2016-01-19 09:44:04 +01:00
Olivier JACQ
6039937023 Fixing missing XML close tag. 2016-01-18 09:34:53 +01:00
Olivier JACQ
b3c103472b More XML testing. New company Chalair with a few flights. 2016-01-16 14:13:37 +01:00
Olivier JACQ
c59b3dbd8a More testing on AI XML autogen. New company Jetairfly, with a few flights. 2016-01-16 12:10:39 +01:00
James Turner
fddc972010 Warp/time-adjust GUI tweaks
- make t/T action press and hold, with some acceleration factor and
  clamping to a maximum rate. (Avoids confusing latching-mode of
  previous system(

- show the local time of day while adjusting.

Values are based on some experimentation, feedback welcome on the
mailing list.
2016-01-15 20:53:43 -06:00
James Turner
fd8a1dece8 ThrustMaster T1600M tweaks
- left/right top of stick buttons cycles views, instead of aileron
  trim, since I judge this to be a more commonly used feature. But
  maybe this will cause a conversation.

- adjust sensitivity of the hat view-direction control, was unusably
  fast for me.
2016-01-15 19:38:38 -06:00
James Turner
bd1fa5b201 (from Denk Padje)
a small patch here that uses math.round() instead of int() for "percent"
mapping in Canvas tooltip.
2016-01-15 19:35:48 -06:00
Jonathan Schellhase
5eeb3d7702 Last commit changed version back to "3.7.0". By this commit this gets fixed 2016-01-14 18:24:03 +01:00
dumbojet
9b5dcee2eb Finistair company traffic file. Testing if my real name appears on commit, too. 2016-01-14 17:09:56 +01:00
dumbojet
b9c779777c Home-made XML, SID and STAR procedures for LFRB 2016-01-14 11:56:58 +01:00
Torsten Dreyer
45bdcd9d2b Phi: fix radiostack layout issue 2016-01-14 10:30:23 +01:00
Torsten Dreyer
fd23166f43 Phi: let plugins register additional properties 2016-01-14 10:29:49 +01:00
Torsten Dreyer
f0588144d1 Phi: simplify plugin json and add user plugin support 2016-01-13 18:16:15 +01:00
Torsten Dreyer
cee599cd0d Phi: Pull topics into a config object
background: prepare for plugins
2016-01-13 13:59:01 +01:00
Thorsten Renk
630a46c11d Restoring the airport keep effect for CA. This isn't just an aesthetic problem - at lower quality levels it's needed for rendering landing lights and in general for snowdrift and the runway edges without creating visual artifacts. Such artifacts at the runway edge where pilots regularly look are far more worrisome than at the interface between airport keep and terrain 2016-01-11 08:44:31 +02:00
Torsten Dreyer
6f4666178a Fix rudder for AI Citation II
Chris:
This patch switches the rudder listening to the right property. The one being used now seems to be obsolete for a long time. Additionally it needs to change polarity to operate properly.
2016-01-10 23:36:29 +01:00
Thorsten Renk
459d8a02e0 Simple Aurora Borealis strength manager dependent on viewer latitude 2016-01-10 13:00:15 +02:00
Thorsten Renk
3ab3ba72e6 Support for Aurora Boeralis for ALS skydome and Earthview 2016-01-10 10:07:21 +02:00
Thorsten Renk
7ab9b4be4f Reduce ALS surface light core desaturation for better color recognition (suggested by HHS) 2016-01-10 09:42:04 +02:00
Florent Rougon
2cf6cf4a93 joystick.PropertyScaleAxis.parse(): copy the property name too
- Since joystick.PropertyScaleAxis instances have a 'prop' attribute
  indicating the property name, it seems logical to have
  joystick.PropertyScaleAxis.parse() set this attribute based on the
  property name in its argument ('p').

- This commit also tries to improve readability by using a 'bindingNode'
  variable instead of repeatedly calling 'p.getNode("binding", 1)'.
2016-01-09 07:56:47 +01:00
Florent Rougon
769a83e64f joystick.PropertyScaleAxis.parse(): always copy 'factor' and 'inverted'
- Commit 5bcf58c7d6 forgot to set the
  'inverted' attribute when there was no 'factor' node in the argument's
  'binding' node. Fix this.

- Also copy the argument's 'factor' value to the 'factor' instance
  attribute for consistency, since joystick.PropertyScaleAxis instances
  have such an attribute initialized in the constructor.
2016-01-09 07:35:23 +01:00
Florent Rougon
703639ec68 Remove inappropriate 'deadband' attribute from joystick.PropertyScaleAxis
As far as I can tell, the dead-band setting belongs to <axis> nodes, not
to <binding> nodes using property-scale. This can be seen in
do_property_scale()'s definition (flightgear/src/Main/fg_commands.cxx)
as well as in fgdata/Docs/README.Joystick.html.

joystick.PropertyScaleAxis creates <dead-band> nodes as children of
<binding> nodes in generated joystick binding files under
$FG_HOME/Input/Joysticks which, AFAICT, are completely useless and thus
confusing. The <dead-band> nodes should be created at a different level
to be effective (cf. FGJoystickInput::postinit() in
flightgear/src/Input/FGJoystickInput.cxx).

This commit removes the 'deadband' attribute from
joystick.PropertyScaleAxis, since it has nothing to do there IMHO.
2016-01-08 15:45:58 +01:00
Florent Rougon
5bcf58c7d6 Fix nuking of property-scale's default factor by joystick-config dialog
As can be seen in do_property_scale()'s definition in
flightgear/src/Main/fg_commands.cxx, property-scale rightfully uses a
default factor of 1.0. However, if a joystick axis' property-scale
binding has no 'factor' node defined, and one opens the joystick
configuration dialog, then PropertyScaleAxis.parse() creates an empty
'factor' node that implicitely gets a value of 0. This method is called
by joystick.readConfig() when the joystick-config dialog is opened. This
has the effect of rendering the corresponding joystick axis inoperant.

How to reproduce the bug:
  - take a joystick such as the SAITEK CYBORG 3D USB, with its default
    binding file from
    fgdata/Input/Joysticks/Saitek/Cyborg-Gold-3d-USB.xml (this file uses
    property-scale for the aileron, with no explicitely defined factor);
  - start FlightGear; move the joystick left or right while looking at
    the plane wings -> the ailerons move, it works fine;
  - now, open the joystick-config dialog and do the same test -> the
    ailerons don't move anymore and the 'Aileron' value at the bottom of
    the dialog stays at 0 (0.0 or -0.0...). Just opening the dialog to
    test the joystick has "corrupted" its setup! This is very confusing
    for users.

This fix corrects the problem by avoiding the apparently unneeded
creation of an empty 'factor' node when there is none inside the
<binding>. An alternative would be to create a 'factor' node with value
1.0. In any case, if someone later expands the joystick-config dialog to
allow modification of property-scale's factor, he should make sure to
use a default value of 1.0!
2016-01-08 12:04:39 +01:00
Gijs de Rooy
d84168d36d About dialog: update year 2016-01-07 15:20:24 +01:00
Edward d'Auvergne
3bf57db6b4 Fixes for all PNG files with corrupted ICC color profiles.
The files were identified using the pngcrush software and repaired by stripping
out the PNG header including the ICC profile using the command:

$ pngcrush -fix -force old.png new.png; mv -f new.png old.png

Each file was manually checked in an image viewer to look for any corruptions.

This follows from the threads
http://thread.gmane.org/gmane.games.flightgear.devel/79895 and
http://thread.gmane.org/gmane.games.flightgear.devel/79898 .
2016-01-06 21:38:13 +01:00
James Turner
8164811d9f Speed-up fix; now included in /sim/time/delta-sec 2016-01-05 23:25:55 -06:00
Torsten Dreyer
2e8369434c Version 2016.1.0 2016-01-05 20:43:09 +01:00
James Turner
b640f64ea8 Overhaul the performance DB
Create many aliases and add stubs for many aircraft. Trying to
reduce the amount of warnings from the traffic code.
2015-12-30 14:28:26 -06:00
Erik Hofman
ba7ec77e43 XMerge branch 'next' of ssh://git.code.sf.net/p/flightgear/fgdata into next 2015-12-30 17:14:17 +01:00
Erik Hofman
41562e4b87 Gilberto Agostinho:
I created a substantial quantity of new work in the New Regional
Textures project and I would like to ask if anyone could review and
perhaps commit them into FGDATA. The modifications are:

- New textures and material definitions for California
- New textures and material definitions for Mexico
- New material definitions for Central America
- New textures and material definitions for Southern Europe
(Mediterranean region: Portugal, Spain, south of Italy, Greece, coast of
Balkans)
- New airport grass texture (global)
- New airport grass texture for Latin America
- New American town texture (global)
- Small improvement to grass blade textures (to better fit the airport
grass texture)

If this will be committed, we must add a note thanking the United States
Geological Survey (USGS) for the satellite images of California (
http://www.usgs.gov/ ) to the Thanks file.
2015-12-30 17:13:18 +01:00
Thorsten Renk
d6659667aa Bugfix - NVIDIA drivers are waaay too tolerant... 2015-12-30 13:14:00 +02:00
Erik Hofman
4cfda541ad Gilberto Agostinho:
I created a substantial quantity of new work in the New Regional
Textures project and I would like to ask if anyone could review and
perhaps commit them into FGDATA. The modifications are:

- New textures and material definitions for California
- New textures and material definitions for Mexico
- New material definitions for Central America
- New textures and material definitions for Southern Europe
(Mediterranean region: Portugal, Spain, south of Italy, Greece, coast of
Balkans)
- New airport grass texture (global)
- New airport grass texture for Latin America
- New American town texture (global)
- Small improvement to grass blade textures (to better fit the airport
grass texture)

If this will be committed, we must add a note thanking the United States
Geological Survey (USGS) for the satellite images of California (
http://www.usgs.gov/ ) to the Thanks file.
2015-12-30 10:06:57 +01:00
Thorsten Renk
3dc8b32f67 De-saturating the core of ALS surface and runway lights as suggested by Gilberto Agostinho 2015-12-29 11:53:46 +02:00
Florent Rougon
afec939218 Proper 'fgfs --help -v' documentation for --aircraft-dir
- Fix documentation for --aircraft-dir: the specified path is
  interpreted relatively to the current directory, not to the path of
  the fgfs executable.

- Add a few precisions (the option bypasses the <path-cache> from
  autosave_X_Y.xml, as well as --fg-aircraft and FG_AIRCRAFT).

- Show the option documentation in 'fgfs --help -v' output (it was
  "hidden" since 2010, but it works very well; cf.
  <https://sourceforge.net/p/flightgear/mailman/message/34494887/> for
  the most recent discussion about this option).

- Show the doc for --aircraft-dir right below that of --aircraft (both
  being closely related).

- Add a pointer to --aircraft-dir in --fg-aircraft's doc, since the
  former can be used as an alternative to the latter (or at least a
  complement, since --fg-aircraft is used to determine some
  permissions).
2015-12-24 12:11:54 +01:00
Thorsten Renk
88bc96d346 Aurora Borealis shader effects for Earthview - not yet used 2015-12-23 13:39:45 +02:00
Curtis L. Olson
2822505f08 Add Gilberto to the list. Thanks! 2015-12-22 07:06:33 -06:00
Thorsten Renk
4c4044b15c AW sets parameters for scattering phenomena 2015-12-21 13:49:23 +02:00
Thorsten Renk
a6110f9b48 Light scattering phenomena for ALS: rainbow, halo, sundogs and light pillar 2015-12-21 13:07:32 +02:00
Torsten Dreyer
e5db4d25cb Phi: update leaflet to v0.7.7
no functional changes
2015-12-18 22:08:19 +01:00
Gijs de Rooy
48fe7a838e Navdisplay: issue #1822, display altitude range arc on centered mode 2015-12-14 15:03:15 +01:00
Michael Soitanen
77abdbe7e8 NavDisplay: Wind direction in Boeing mode now have degree symbol. Position trend vector is not computed with groundspeed less than 100kts to remove possible error with lateral slope runways. Corrected postion trend vector lenght on range smaller than 10 nm 2015-12-10 17:19:20 +01:00
Erik Hofman
5f85a86489 Add a global sound effects file for sound effects which act on scenery events (currently Thunder only). 2015-12-10 13:22:26 +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
c275d3a8ad Improved light curves for Earthview in low light 2015-12-07 08:43:58 +02:00
Michael Soitanen
676a40f912 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
Gijs de Rooy
34b957e63b Navdisplay: add position trend vector to MAP 2015-11-30 13:29:44 +01:00
Gijs de Rooy
30aef3eee1 Navdisplay: magnetic variation for wind arrow by Michael Soitanen 2015-11-29 17:35:09 +01:00
James Turner
082fa759ea Add some additional NaturalEarth data. 2015-11-27 23:27:11 +00:00
James Turner
33f07c8242 Add coastline data for maps. 2015-11-27 23:27:10 +00:00
Torsten Dreyer
00781db6c9 Small optimizations in local_weather
listener functions are called with changed node as arg,
using this spares a getprop()

Signed-off-by: Thorsten Renk <thorsten.i.renk@jyu.fi>
2015-11-27 12:10:28 +02:00