James Turner
92864265af
Refactor aircraft helper classes
...
- move the aircraft list and delegate to their own files
2015-03-11 17:09:59 +00:00
Torsten Dreyer
f32f1fba59
Fix recently introduced bug in json-to-prop conversion
2015-03-11 16:59:58 +01:00
Torsten Dreyer
fced50f480
JSON Properties: encode NaN as null
...
JSON doesn't know about NaN, probably null matches best
2015-03-09 16:17:20 +01:00
Torsten Dreyer
8b141025cd
httpd: expose if airport has metar in navdb uri handler
2015-03-09 14:53:40 +01:00
Torsten Dreyer
4564dbd95e
Live weather: ensure valid flag is set correctly
2015-03-09 12:24:36 +01:00
James Turner
585235ce01
One more log item for the tile-cache.
2015-03-08 09:41:27 +00:00
James Turner
2e452e78f3
Fix non-Qt build.
2015-03-08 09:40:44 +00:00
James Turner
c3543f8fdd
GUI ‘restore defaults’ support.
...
- Hold ‘alt’ on launch to restore defaults, including launcher prefs.
2015-03-08 00:42:39 +00:00
James Turner
f9c23eb096
Add missing GPL boilerplate.
2015-03-08 00:42:39 +00:00
James Turner
bfeb41858d
Cmake always generates version.h
...
- simplify some code as a result
2015-03-08 00:42:39 +00:00
James Turner
a466dbce73
Very crude work on GUI base package selection.
...
- feedback on wording greatly appreciated.
- needed to make nightly builds usable without bundled data.
2015-03-08 00:42:05 +00:00
James Turner
8d9db2824e
Launch aircraft data cache
...
- makes successive aircraft scans much faster since -set.xml parsing
can be skipped when the file is unmodified.
2015-03-08 00:42:05 +00:00
James Turner
4038ba3d51
Arrow icons for variant selection.
2015-03-05 15:53:40 +00:00
James Turner
7ca9fba4a8
Fix some off-by-one errors in variants GUI
2015-03-05 14:51:33 +00:00
James Turner
13d50853df
Launcher support for aircraft variants.
...
- Allows for a less confusing UX when aircraft has several variants.
- Requires changes to aircraft -set.xml files.
2015-03-05 14:01:53 +00:00
Torsten Dreyer
0f72564140
Use the pagedPathForHistory in the FlightHistoryUriHandler
2015-03-03 17:10:16 +01:00
Torsten Dreyer
265c99a149
FlightHistory: add pagedPathForHistory
...
pathForHistory() halts the sim for a few seconds when called on long flights.
pagePathForHistory allows to retrieve the complete history in chunks
2015-03-03 17:08:20 +01:00
Torsten Dreyer
2e5db3ce85
httpd: fix misplaced warning message
2015-03-02 20:39:23 +01:00
Torsten Dreyer
0fcfbe9221
wrap the json flight history as a feature
...
this allows to attach properties later
2015-02-27 15:54:28 +01:00
James Turner
548b899fb6
Fix a couple more Qt version issues.
...
- only set the clearButton on QLineEdit if we have 5.2
- use itemData/currentIndex to avoid currentData()
2015-02-27 11:58:22 +00:00
Torsten Dreyer
146efcafa4
JsonUriHandler: allow POST updates without child
...
updates to properties used to be
POST /json/some/property/path
{
name: 'somechild',
value: 'somevalue'
}
which required some ugly path hacking when directly updating a node.
now, this works too (and in a probably more intuitive way)
POST /json/some/property/path/somechild
{
value: 'somevalue'
}
2015-02-27 11:07:25 +01:00
Torsten Dreyer
4b5dec2cae
HTML Property Browser: use radiobuttons for bools
2015-02-26 18:14:09 +01:00
James Turner
2d8cf78328
Fix Linux compilation.
...
- <memory> needed for auto_ptr
2015-02-25 23:53:49 +00:00
James Turner
a3d3e81a86
Set placeholderText from code
...
Avoids a hard requirement of Qt 5.3; only 5.1 is
needed.
2015-02-25 23:14:02 +00:00
James Turner
e1def22193
Fix cleanup of RouteDataPrivate
2015-02-25 22:58:56 +00:00
Torsten Dreyer
0034d6b59a
flighthistory service: use GeoJSON instead of own invention
...
Track now comes as a LineString object
{
"type":"LineString",
"coordinates": [ [lon,lat,alt], [lon,lat,alt], ... ]
}
ref: http://geojson.org/geojson-spec.html#linestring
2015-02-25 10:38:22 +01:00
James Turner
1898a5fef8
Guard against a crash Torsten encountered once.
2015-02-23 18:22:52 +00:00
Torsten Dreyer
cc6178a9f3
Expose FlightHistory as a http service
...
usage:
GET http://localhost:8080/flighthistory/track.json
retrieves track as JSON data
{
flightHistory: [
{
latitude: (number),
longitude: (number),
altitude: (number)
}
]
}
GET http://localhost:8080/flighthistory/track.kml
retrieves track as KML path
optional request parameter:
LineColor=(hex encoded rgba color)
LineWidth=(line width in pixel)
PolyColor=(hex encoded rgba color)
interval=(number of seconds to auto-refresh)
2015-02-23 16:33:58 +01:00
Torsten Dreyer
68c9adb489
FlightHistory: make clear() public
2015-02-23 16:31:49 +01:00
James Turner
c9c0833741
Qt launcher: additional arguments UI
...
Add a plain text edit widget to the launcher to support
custom command line arguments.
2015-02-23 13:41:50 +00:00
James Turner
564177933b
FlightPlan activation, delegate hook.
2015-02-23 13:41:50 +00:00
Torsten Dreyer
8451b6c7c7
Merge commit 'refs/merge-requests/1591' of https://gitorious.org/fg/flightgear into merge-requests/1591
2015-02-22 21:25:08 +01:00
Torsten Dreyer
6ecbca9e01
package system: de-hardcode default catalog id and url
...
make default catalog id and url configurable through properties
on startup. Provide defaults to preserve current functionality.
/sim/package-system/default-catalog/id
/sim/package-system/default-catalog/url
2015-02-17 12:41:18 +01:00
Torsten Dreyer
828f14c4f7
Ooops...
2015-02-17 12:09:22 +01:00
Torsten Dreyer
ae91b9cede
Initial work for a PKG http service
2015-02-17 12:06:50 +01:00
bcoconni
5349d3367f
JSBSim syncing. The changelog is:
...
* The Pitot angle can now be tweaked with the <pitot_angle> tag in the <metrics> block.
* The refuel rate is now configurable with the <refuel-rate> tag in the <propulsion> block.
* Fixed C++11 compliance. JSBSim can now be compiled with a C++11 compiler.
* Avoid a spurious mass report to be issued when resetting.
* Fixed the moments computation. Previously they were computed with the previous time step CG position.
* Fixed a bug where the CG update was delayed to the next time step when point masses location were modified via the FCS.
2015-02-15 11:37:13 +01:00
Torsten Dreyer
6e3486349b
PropertyBrowser: Add a JSON link and the path
2015-02-13 11:42:45 +01:00
portree_kid
ee63507f22
Code to stop loading of invalid flightplans
2015-02-12 22:09:45 +01:00
Rebecca N. Palmer
033957003f
Clear GroundLightManager on exit to avoid segfault
...
While mostly harmless since you're exiting anyway, it's an annoying
distraction when the real problem is "unexpected exit" (e.g.
https://bugs.debian.org/763285 ), and blocks testing with LeakSanitizer
2015-02-12 16:39:28 +00:00
James Turner
1cffd2b8c0
Fix encoding / C++11 compliance
...
- convert text encoding to UTF-8
- C++11 requires a space between literal and identifier
2015-02-11 16:44:05 +00:00
Torsten Dreyer
6970ea69a8
httpd/json: send as correct typ for bools and numbers
2015-02-11 11:34:16 +01:00
Torsten Dreyer
b42841ccd2
Add formatted KDI572/574 properties
...
Syd Adams:
I've added an update to dme.cxx /dme.hxx.
It adds a formatted KDI572-574/nm , min and kt string properties meant
for text animations for these instruments.Existing instruments will funtion
as usual, no breaks. The purpose here is to eliminate yet another nasal
workaround which usually needs to repeat some of what the code already does.
The 3 properties are empty when the dme is off (no need to check for power),
dashes when powered up but no source , out of range ,etc.
The are formatted to the KDI-572/573/574 limits ...
0-99.9/100-389 for distance to station,
0-99 minutes for time to station,
groundspeed 0-999 kt.
2015-02-11 08:35:31 +01:00
Torsten Dreyer
ef2c9b995f
JSBSim: populate fuel tank cg
2015-02-04 12:44:20 +01:00
Rebecca N. Palmer
fe0015bda0
Fix typo, thanks to Markus Wanner
2015-01-18 22:23:49 +00:00
Rebecca N. Palmer
193f2a3fbc
Fix hang in Nasal->C++->Nasal calls
...
https://bugs.debian.org/750939
http://sourceforge.net/p/flightgear/mailman/message/32969200/
2015-01-18 22:23:21 +00:00
Stuart Buchanan
6725b460bf
Clean up some trivial warnings
2015-01-18 19:49:14 +00:00
bcoconni
5d2197ae3c
Fixed a bug that made FG crash when repositionning the aircraft or resetting the simulation. Thanks to Rebecca Palmer for the bug report and the bug patch.
2015-01-17 14:58:48 +01:00
James Turner
dcf8ac1778
route-path: separate turn entry and exit parts.
...
Fixes appearance of runway legs with off-centerline previous
and next points, since we can generate different curves for each
end of the runway.
2015-01-14 23:28:52 +00:00
Torsten Dreyer
01dfd52d69
Fix wrong ATIS for negative temperatures
2015-01-12 16:46:24 +01:00
James Turner
e4f5f71aae
Route path turn helpers.
...
Make the code more readable with some named helper functions.
2015-01-11 13:15:24 +00:00