Torsten Dreyer
dd6cccdda1
A new comm radio and atis implementation
2014-02-28 11:45:49 +01:00
Torsten Dreyer
c152e7f118
Bind the CAVOK flag to metarproperties
2014-02-25 09:42:00 +01:00
James Turner
99fd9513d9
Metar: finalise-position fast if Metar fails
...
- when METAR lookup fails (as opposed to timing out), report
this immediately so finalise-position doesn't wait.
2014-02-24 19:43:21 +00:00
Torsten Dreyer
16869d0362
publish the metar date/time to metarproperties
2014-02-21 16:23:10 +01:00
James Turner
580a7f07dd
Fix METAR-download bug on Windows.
...
https://code.google.com/p/flightgear-bugs/issues/detail?id=1207
Use the new (in SimGear) sgGMTime helper when comparing METAR age.
This prevents users in time-zones 4 or more hours ahead of GMT from
being unable to use METAR reports.
2014-01-01 21:05:29 +00:00
James Turner
24c1129140
Bugfix: avoid sky colour errors when vis < 1000m
...
(needs the accompanying Simgear change in SGSky)
2013-12-19 17:18:09 +00:00
James Turner
4dcd96c4af
Remove dependency on command-mgr singleton
...
Use explicit instance (from globals)
2013-11-25 09:14:46 +00:00
James Turner
0191b597e7
Environment manager: use aircraft_pos helper
2013-11-16 12:28:51 +00:00
James Turner
4a3b8c5765
Reset: changes for SGSubsystem ownership.
...
Keep in sync with updated ownership model in subsystem groups.
2013-11-12 23:36:18 +00:00
James Turner
0751556aab
Reset: remove commands
2013-11-12 22:47:46 +00:00
James Turner
75a01aa588
Reset: ensure Wx controller destroys cleanly.
2013-10-29 23:01:29 +00:00
Thomas Geymayer
8a582e6376
Update/refactor for simgear HTTP changes.
2013-10-27 19:39:22 +01:00
James Turner
9457ba024a
Fix for #1117 :
...
fix another issue similar to CVE-2012-2090
In FGClouds::buildlayer(), prevent passing '%n' to snprintf().
From: Rebecca Palmer
2013-09-14 17:43:24 +01:00
James Turner
6acf1c12fc
Fix unused private vars.
...
Xcode is warning about these, they're a mixture of
copy-pasted code, evolved use (e.g. using a property
node to store state), and so on.
2013-07-04 20:24:56 +01:00
James Turner
1a4993f08b
Minor cleanup of cloud commands.
2013-03-27 22:48:47 +00:00
James Turner
eb53f3c919
Fix missing include for Linux.
2013-03-17 14:07:07 +00:00
James Turner
c6221b2c84
Fix max-metar-age, bug #1076 .
...
Will merge to 2.10 branch once verified.
2013-03-17 13:14:08 +00:00
James Turner
1eb8ae1fbf
Give the FGAirport class a sane filename.
...
simple.[cxx|hxx] -> airport.[cxx|hxx]
2013-02-21 11:32:02 +00:00
Christian Schmitt
2013f7149d
Some headers missing... ;)
2013-02-07 19:00:54 +01:00
James Turner
2905c96f47
METAR selection of runway works for reset.
...
Explicitly reinit the realwx subsystem on sim-reset, so METAR is updated within the 10-second finalizePosition window.
2012-12-16 15:05:21 +00:00
James Turner
dc132ab475
Issue #809 , restructure position init code.
...
Modify startup sequence, so position can be modified late in the startup process, right before the scenery load starts. This allows two ugly hacks to move to a permanent, less hacky location. If other position init modes required similar late evaluation in the future, this can be accommodated now.
This is a somewhat high-risk change - I've tested both carrier starts and runway-selection based on realwx METAR, but please look out for other position-init issues and test before / after this patch.
2012-12-09 19:41:31 +00:00
Stuart Buchanan
b7f739ced4
Generate RNG at start of day, and pass down the stack for cloud generation.
2012-12-05 22:12:00 +00:00
Stuart Buchanan
fe1d04df8a
Add properties to allow control of precipitation level externally.
2012-11-27 22:17:30 +00:00
James Turner
d886f2a5f8
Make EnvironmentMgr shutdown its subsystems.
...
With this change, Environment subsystem can be removed and re-added at runtime using the factory commands.
2012-11-20 12:31:07 +00:00
James Turner
379e7a2fd5
Make HTTPClient a proper subsystem.
...
Avoid some statics, and incidentally make the proxy host/port settings dynamic (re-init the subsystem to update proxy settings, woo).
2012-11-19 11:30:12 +00:00
ThorstenB
9d067bc890
#918 : fix jsbsim in-air repositioning issue
2012-11-15 20:20:40 +01:00
Stuart Buchanan
b7e79c1231
For clouds use a RNG seed that stays the same for 10 minutes.
...
This allows multi-process systems to stay in sync and display the same
clouds.
2012-11-09 20:29:28 +00:00
James Turner
59f6f330c2
Defer SGEphemeris creation until ::init()
...
Trying to make subsystem *creation* cheap - major work such as IO should be deferred until init() where possible.
2012-09-24 00:37:46 +01:00
James Turner
6c6452c62b
Adapt to revised SGTime API
...
Convert SGTime users to pass SGGeod/SGPath instead of raw values.
2012-09-24 00:03:23 +01:00
James Turner
01be5529ba
Commands to bind metar to the property tree.
...
New commands request-metar and clear-metar will bind metar reports to an arbitrary property tree path. E.g:
fgcommand("request-metar", var n = props.Node.new({ "path": "/foo/mymetar", "station":"LOWI"}));
2012-09-23 16:55:29 +01:00
ThorstenB
f8b689c040
Allow instruments/systems to reset on sim reset
...
so they can instantly adjust to the changed environment.
(Not fully working yet, since some environment settings, like environemnt
pressure/temperature, still changes slowly after a sim reset - instead of
immediately jumping to the new setting. Also, METAR sometimes arrives too
late...).
2012-09-19 20:57:52 +02:00
James Turner
48c26079e1
Fix classes derived from SubsystemGroup.
...
Various classes derive from SubsystemGroup, but extend the init behaviour. Fix those for the incremental init scheme, generally by forcing their init to be atomic. Can convert them to be truly incremental in the future if it's needed, but probably not.
2012-09-19 11:37:19 +01:00
James Turner
505796e349
Make magavr a regular subsystem.
...
Remove various hacks and make magvar work like a normal subsystem, as part of the environment manager. Fix the remaining users of the globals->get_mag accessor, and hence kill off the global pointer.
2012-09-18 00:58:27 +01:00
Frederic Bouvier
75fc136931
Remove redundant inclusion of math/SGMath.hxx
2012-05-05 11:20:04 +02:00
ThorstenB
e59fabaf82
Clean-up some SGMath dependencies.
2012-05-05 00:56:29 +02:00
ThorstenB
89b41395d8
Move viewer-related sources to separate folder.
...
Simple source directory clean-up, so "Main" folder contains fewer stuff
and the list of files in the editors a lot shorter.
2012-04-25 23:28:00 +02:00
James Turner
2218a44ed7
Support loading PropertyList data remotely, as part of #450 . Along the way, centralise the HTTPClient object so it can be used beyond the METAR download engine.
2012-04-18 10:25:27 +01:00
ThorstenB
39ce84ac52
Replace unnecessary use of copy constructor.
2012-03-26 21:11:03 +02:00
Torsten Dreyer
25c6e8acbd
bind the sky disable cutoff distance to a property
...
There used to be a hardcoded visibility of 1000m below which the
sky was disabled. This distance is now bound to
/sim/rendering/minimum-sky-visibility with a default value of 1000
2012-03-09 21:00:23 +01:00
Torsten Dreyer
644bb8c4f4
Spring-cleaning: some minor optimization
...
- initialize uninitialized properties
- use prefix instead of postfix increments
- reduce visibility of variables
- use empty() instead of size() == 0 for vector and string
- pass string by reference, not by value
2012-03-06 22:28:18 +01:00
Mathias Froehlich
c71c9aee0a
Adapt to simgear SGMath change.
...
Simgears SGMath has lost its dependency on osg.
Update includes and code using these methods.
2012-03-03 13:37:43 +01:00
Stuart Buchanan
4c321b6b80
Add property controls for cloud impostors and LoD hierarchy radii.
2012-01-17 22:16:58 +00:00
Torsten Dreyer
de7debe253
simplify the METAR string, remove newline etc.
2011-12-31 17:31:13 +01:00
Torsten Dreyer
520c002058
Fix #535 : METAR from command line ignored
2011-12-22 22:11:37 +01:00
ThorstenB
596c3e5d03
Fix issues related to #419 .
2011-12-19 21:36:42 +01:00
Stuart Buchanan
4d49329dee
Remove 3d clouds reliance on /sim/rendering/shader-effects
2011-11-24 22:28:10 +00:00
James Turner
c1eca1ff6b
Refactor SGSky handling and ownership - sink into Renderer, remove global variable 'the sky', and hence clean up main loop and subsystem creation a little more.
2011-11-05 17:11:52 +00:00
James Turner
d75c0878fe
Switch the realWx controller to use the event-manager, and be slightly quieter.
2011-11-01 22:40:31 +00:00
James Turner
70b4f38ebc
Goodbye automake.
2011-11-01 11:15:53 +00:00
James Turner
43bc61d131
Make environment-manager closest airport updating quieter, and use an event instead of a manual time counter.
2011-10-30 11:59:24 +00:00