Colin Douglas Howell
8cca0adc58
Fix for issue 1427 (YASim fuselage's "cx" affects drag on all axes)
...
Correct Airplane::compileFuselage() so that a Fuselage's "cx"
only affects drag on the X axis.
2014-03-27 02:12:11 -07:00
James Turner
ca3cc03fac
Ignore not-found 'config file' arguments.
...
Fixes confusing startup behaviour with malformed args, when
an argument accidentally contains a space (e.g. a park-pos or
protocol desc). In this case we treat the parts after the space as an XML config file name. When we can't find this file, we
completely abandon options setup, which causes many downstream
errors.
Change the behaviour so we warn in this case, but carry on with normal startup.
2014-03-27 08:05:02 +00:00
James Turner
19528fab8c
Fix duplicated FGIO channels on reset.
...
Thanks to Nicholas Scheel for spotting this.
2014-03-26 19:24:00 +00:00
Torsten Dreyer
75f9d7e66e
add nChildren to json properties
2014-03-26 15:06:24 +01:00
Torsten Dreyer
0dcc8aa34d
Add a timestamp to JSON properties
...
add special attribute 'ts' to a JSON property reflecting
/sim/time/elapsed-sec
always add timestamp for listener properties
add timestamp for json requests if req param t=y is set
2014-03-26 08:51:15 +01:00
Torsten Dreyer
f68ae55068
Don't return invalid JSON if node not found
2014-03-25 21:43:08 +01:00
Torsten Dreyer
e7dec994b8
httpd: provide more airport information in geojson
...
- provide runways as polygon geometry
- provide longest runway lenght, heading and surface type
- some code cleanup
2014-03-23 21:19:04 +01:00
Torsten Dreyer
2c3d779459
Add virtual destructor
2014-03-23 21:17:54 +01:00
James Turner
9847bf3d13
Fix for bug 1419, nav.dat runway binding
...
Clean runway names to standard structure (0-prefix) before looking up
in the cache, when binding ILS navs to runways.
https://code.google.com/p/flightgear-bugs/issues/detail?id=1419
2014-03-23 09:53:00 +00:00
Torsten Dreyer
527eb9d444
httpd navdb: report ils/loc as geojson multilinestring
2014-03-21 13:00:59 +01:00
Thomas Geymayer
58c01b112e
Canvas: update for 'file'->'src' rename
2014-03-20 11:43:12 +01:00
Torsten Dreyer
d59c57717e
Don't allow call with no Filter set. Leads to crash.
2014-03-19 17:24:52 +01:00
Torsten Dreyer
3d33aff7bc
Add a http handler to access the nav database
...
see the browsermap for an example
2014-03-19 17:23:53 +01:00
Thomas Geymayer
f0ef2b9576
Expose HTTP client to Canvas.
2014-03-18 18:35:35 +01:00
Torsten Dreyer
efcc89480d
httpd: don't spam the console with debug messages
2014-03-17 16:38:53 +01:00
Torsten Dreyer
1867ccb4a8
httpd: better handling of first-time notifications
...
ensure new listeners get notified on first update loop
also cleanup the PropertyChangeObserver on reset
2014-03-17 16:22:42 +01:00
James Turner
a42516bcdd
Tweak for Mac nightly GUI launcher
2014-03-17 08:24:28 +00:00
James Turner
070dba29f9
Close dialogs on GUI shutdown
...
- avoids orphaned dialogs on reset
- requires some guards in NasalSys since Nasal is shutdown first, but
dialogs can have Nasal modules.
2014-03-16 22:52:55 +00:00
James Turner
2d5d43a57d
Rename GPSsmooth files.
...
- avoid confusion with GPS instrument files.
2014-03-16 22:35:00 +00:00
James Turner
af451fb138
Fix mac nightly build
...
- Ruby 1.8 (on Lion) needs explicit include of Rubygems
2014-03-16 17:00:32 +00:00
James Turner
849c6ccc6e
GPS fixes
...
- fix corrupted ident on Mac (libc++ issue)
- don't clear scratch when activating DTO mode
- use the real navaid/airport for the waypt where possible
- expose active waypt name
2014-03-16 16:20:03 +00:00
Thomas Geymayer
764fbd519c
CanvasWidget (PUI): make button index consistent with Canvas windows
2014-03-15 15:01:09 +01:00
Torsten Dreyer
a830708252
PropertyChangeWebsocket: fire change after subscribe
2014-03-14 21:36:29 +01:00
Torsten Dreyer
95d4c5898d
httpd: handle url-rewrites
2014-03-14 16:39:16 +01:00
Torsten Dreyer
75933d3e1e
add min/max freq to the frequencyformatter
2014-03-14 15:19:23 +01:00
James Turner
5465895278
Mac nightly build packaging tweaks.
2014-03-14 09:00:50 +00:00
James Turner
7041ed9078
Fix compilation with SYSTEM_SQLITE
2014-03-13 18:19:13 +00:00
James Turner
487546c848
Fix some leaks on reset
...
- tilecache 'clear_cache' is poorly named, ensure the destructor
really deletes all outstanding entries.
2014-03-13 18:19:13 +00:00
Torsten Dreyer
aaa7fca621
NasalSys: arg is never null
2014-03-12 22:42:51 +01:00
Torsten Dreyer
7132947d16
httpd: update mongoose and websockets
...
* mongoose updated to 5.3
* first stab at implementing websockets, here a property change listener
websocket. This websocket is at ws://yourhost:yourport/PropertyListener
see FGDATA/Docs/gui/radio.html for an example
2014-03-12 22:39:37 +01:00
Torsten Dreyer
275d2dc7fa
Partial fix #1408
2014-03-12 21:21:56 +01:00
James Turner
c7f2992904
Add 'set-scenery-paths' command.
2014-03-12 18:56:19 +00:00
James Turner
56ca1fe93b
Don't rebuild navcache for scenery changes
...
- Cache can drop all ground-nets.
2014-03-12 18:56:18 +00:00
James Turner
c00ab21fad
ICAO.ils.xml data works read-only.
2014-03-12 18:56:18 +00:00
James Turner
ffa7854ed9
ICAO.threshold.xml works read-only.
2014-03-12 18:56:18 +00:00
James Turner
5f9c17bd69
ICAO.twr.xml works in read-only mode.
2014-03-12 09:50:39 +00:00
James Turner
afe02b9b36
Reset: tweak property PRESERVE
...
- ensure options are re-processed before restoring PRESERVEd
properties, so that sessions changes survive a reset.
2014-03-11 22:43:25 +00:00
James Turner
f2a3090384
Fix some Clang warnings.
2014-03-11 16:46:00 +00:00
James Turner
1edffd1d10
Reset: fix OSG stats handling
2014-03-11 16:45:47 +00:00
James Turner
f04d5f8758
Reset: work with threaded OSG modes
2014-03-11 16:45:31 +00:00
Torsten Dreyer
64c393d022
http property browser: don't crash on invalid nodes
...
Don't expect users to always pass valid node names
or paths
2014-03-10 23:40:42 +01:00
Torsten Dreyer
7c2ce9acf7
allow binding of arguments for fg-commands thru run.cgi
...
to run a fg-command with args, POST run.cgi?value=my-command
and post the args node as JSON content like this:
{
name: '',
children: [
{
name: 'property',
index: 0,
value: 'first-value is here'
},
{
name: 'property',
index: 1,
value: 'first-value is here'
}
]
}
or whatever arguments the requested command takes
2014-03-10 22:58:52 +01:00
James Turner
f07771f3d5
Fix a crash after reset.
2014-03-10 17:43:15 +00:00
James Turner
cc607ae7e4
Save/restore initial state removed.
2014-03-10 17:29:28 +00:00
James Turner
9489009570
Fix fg-aircraft, fg-scenery props after reset.
...
- restore fg-aircraft properties, and PRESERVE fg-scenery ones,
across reset.
2014-03-10 17:24:42 +00:00
James Turner
4cb80c07af
Ooops, forgot to distclean before adding.
...
Thanks to Jon Stockill for noticing!
2014-03-10 17:24:42 +00:00
James Turner
03aa642155
Old reset code-path is removed.
2014-03-10 17:24:37 +00:00
James Turner
5e6c2b8e82
Reset the Autopilot on reposition.
...
- previously we restored AP state to initial; let's
actually re-init it after re-position.
2014-03-10 12:02:10 +00:00
James Turner
a8fe586e48
Revert wiping of /fdm on reposition.
...
This is too destructive for many established things, so revert it.
Instead, make the FDM shell save /fdm state on postinit(), and
restore it on re-init (which reposition invokes).
2014-03-10 12:00:51 +00:00
James Turner
7b2d710cd0
Add hts_engine 1.08 and flite_hts 1.05 code.
...
- Not compiled by default, nor hooked up to anything yet.
- Both libraries licensed under modified BSD license.
- Added top-level CMake file for both, to create a plain static
library for each.
2014-03-10 09:32:43 +00:00