1
0
Fork 0
Commit graph

7750 commits

Author SHA1 Message Date
Stuart Buchanan
221235063b Add button bindings for engine to joystick config
At the suggestion of Gilberto AGOSTINHO, add
button bindings for throttle, mixture and prop
to the joystick configuration dialog.

Specific use-case is users of game-pads, but also
useful to users with a single throttle axis on their
joystick.
2016-02-10 22:21:18 +00:00
Edward d'Auvergne
c6da4a2b65 Improved latitude and longitude formatting for the HUD.
This follows from http://thread.gmane.org/gmane.games.flightgear.devel/78650 and
resolves the sign bug https://sourceforge.net/p/flightgear/codetickets/1778/ .

Combined with a matching change to the flightgear repository, this changes the
HUD formats from the current set of 3 (note that the text in brackets is not
shown in the HUD preferences PUI dialog, but is show here for reference):

    0) Decimal degrees (37.618890N -122.375000W)
    1) Degrees, minutes (37*37.133N -122*22.500W)
    2) Degrees, minutes, seconds (37*37 08.0 N -122*22 30.0 W)

to (here the text in brackets is shown in the PUI dialog):

    0) DDD format (37.618890N 122.375000W)
    1) DMM format (37*37.133'N 122*22.500'W)
    2) DMS format (37*37'08.0"N 122*22'30.0"W)
    3) Signed DDD format (37.618890 -122.375000)
    4) Signed DMM format (37*37.133' -122*22.500')
    5) Signed DMS format (37*37'08.0" -122*22'30.0")
    6) Zero padded DDD (51.477500N 000.461389W)
    7) Zero padded DMM (51*28.650'N 000*27.683'W)
    8) Zero padded DMS (51*28'39.0"N 000*27'41.0"W)
    9) Trinity House Navigation (51* 28'.650N 000* 27'.683W)
2016-02-10 21:43:32 +00:00
Stuart Buchanan
f44db83b25 Merge of the c172p-detailed
From https://github.com/Juanvvc/c172p-detailed/ release/2016.1
commit 3f33b88bb015a8ee685ab3178932d16d6e072410

A big Thank-You to the c172p-detailed team for their ongoing work.
2016-02-10 21:32:19 +00:00
Stuart Buchanan
cdf9e5f12d Merge commit '28c2fb' into next 2016-02-10 21:07:48 +00:00
Rebecca N. Palmer
37dcf9512f gui: display help when access to a directory is denied 2016-02-09 23:19:57 +00:00
Richard Harrison
28c2fb0bb2 TimeDialog: remove sliders and checkbox 2016-02-09 14:23:35 +01:00
Richard Harrison
661090c861 Add time of day slider 2016-02-09 14:23:34 +01:00
Richard Harrison
920fd6d880 TimeDialog: Add valid ranges to day of month.
Add valid ranges for day based on selected month and year taking into account leap years.

With this change it should no longer be possible to enter an invalid date.
2016-02-09 14:23:34 +01:00
Richard Harrison
24699c5a24 Time dialog refinements.
Added combobox for the month (using name).
Added sliders for all date components (year is between 1971 and 2037 to avoid invalid values in time_t).

Relabelled easing, added a bit of layout context with some ruling.
2016-02-09 14:23:33 +01:00
Richard Harrison
0fed5b2f6b Added year,month,date and control of easing to time dialog 2016-02-09 14:23:33 +01:00
Olivier JACQ
5be0303429 Committing updates and fixes by Brett Harrison, gooneybird. Fixing liveries, replacing missing aircrafts by existing ones, Updating models and liveries (Ian Tolosa), Updating traffic for DLH and EVA (Ian Tolosa). 2016-02-08 15:02:31 +01:00
Olivier JACQ
5490c21feb Updates and fixes by Brett Harrison, gooneybird. Fixing liveries, Aircrafts definitions in traffic files, removing Alpha channels and resizing 757 liverines. 2016-02-08 10:24:09 +01:00
Olivier JACQ
36aa9dfac2 Updates and fixes by Gooneybird. Fixing wrong XML attributions for Aircrafts, adding new liveries for Air Berlin, Air China, fixing traffic files, new traffic files and liveries for Thomas Cook 2016-02-08 10:11:35 +01:00
Thorsten Renk
2366eaec94 More customizable ALS airport keep effect 2016-02-03 10:01:59 +02:00
Thorsten Renk
f08f21902c More structure for Aurora Borealis rendering in ALS 2016-02-03 09:14:42 +02:00
Thorsten Renk
97cc53d7b3 Procedural aircraft lights for ALS - WIP 2016-02-03 09:13:30 +02:00
Torsten Dreyer
4676d19237 Credit Martin's work for the world scenery 2016-01-31 20:49:21 +01:00
Olivier JACQ
5eefd27c6d New company HOP, merging Regional, Britair and other regional FR companies. Added a few flights too. Flights formely operated by Air France will have to be merged here later on. 2016-01-31 20:03:47 +01:00
Gijs de Rooy
da50e51aa3 Fix #1823: prevent 16-bit overflow by navdisplay trend vector 2016-01-24 17:36:31 +01:00
Gijs de Rooy
d628e656c0 Fix #1827: convert altitude from meters to feet in GPS dialog 2016-01-23 17:53:16 +01:00
Stuart Buchanan
46a914fa05 Upated documentation for 2016.1.0 2016-01-22 15:19:01 +00:00
Torsten Dreyer
85a45fc1c9 Fix KSFO air train
credits to M.Herweg:
I adjusted the elevation for the  KSFO skytrain AI scenario so that it
runs on the tracks and not under the tracks.
2016-01-22 15:25:52 +01:00
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