torsten
949981a6d7
only complain about binary record length mismatch if mode is binary.
2009-09-18 10:38:34 +02:00
Tim Moore
0044bd4436
Merge branch 'jmt/navradio' into next
2009-09-17 22:55:43 +02:00
jmt
a683b5e0ed
NavRadio: By way of an experiment, make false courses/lobes disable-able via a property.
2009-09-17 22:55:18 +02:00
Tim Moore
e888e209e3
Merge branch 'tat/configure' into next
2009-09-17 22:54:58 +02:00
torsten
16eefc84d1
Tatsuhiro Nishioka:
...
Patches for configure.ac and Makefile.am files in FG/SG so Mac developers can build these in a unix way.
These also enables Mac developers to choose either PLIB framework or PLIB static libs.
2009-09-17 22:54:42 +02:00
Tim Moore
37ffe7be35
Merge branch 'jmt/navradio' into next
2009-09-17 22:53:30 +02:00
jmt
5947f3fcd5
NavRadio DME in-range flag, and audio code improvements. By John Denker, adapted to current trunk by me.
2009-09-17 22:53:15 +02:00
Tim Moore
19d2d70da6
Merge branch 'jmt/reciprocal' into next
2009-09-17 22:52:17 +02:00
jmt
29f84492a2
Different approach to handling the paired-ILS-on-opposite-runways situation. This uses additional information we now store (in FGRunway) to be more explicit about the behaviour (i.e only look at paired navids), and crucially, does not misbehave near either threshold. Instead it always switches about the runway midpoint (so back-course/missed-approaches are broken as before), leading to stable behaviour when touching down.
...
I am pretty confident this is (was, from FS2004) also the 'solution' taken by MSFS.
2009-09-17 22:51:44 +02:00
jmt
44bc440d32
Associate non-ILS localisers with their runway.
2009-09-17 22:51:44 +02:00
jmt
d4d1d827d0
Make FGRunway track reciprocal runways.
2009-09-17 22:51:44 +02:00
Tim Moore
2ef77e4314
Merge branch 'jmt/navradio' into next
2009-09-17 22:49:07 +02:00
jmt
bf830f681d
One more divide by zero fix from Torsten.
2009-09-17 22:48:10 +02:00
jmt
ebf5dcb828
Work around the penaltyForNav broken-ness, by ensuring GS behaves sanely even if non-matches LOC and GS transmitters are selected. Which happens. Yuck.
2009-09-17 22:47:57 +02:00
jmt
c1598361ca
navradio: fix crash spotted by Torsten, when nav range is unspecified.
2009-09-17 22:47:45 +02:00
jmt
a650cf4239
Fix the has-gs flag when switching to a VOR (thanks Torsten), and expose GS validity via a new gs-in-range boolean prop, as suggested by John Denker.
2009-09-17 22:47:32 +02:00
jmt
971e87bb49
Logging: less verbose about navaids we didn't align.
2009-09-17 22:45:30 +02:00
jmt
daadb16370
Logging: less verbose traffic-manager startup.
2009-09-17 22:45:30 +02:00
jmt
fbf7d58c25
Logging: less verbose panel loading.
2009-09-17 22:45:29 +02:00
Tim Moore
d11ad100cc
Merge branch 'topic/atmos-merge' into next
...
John Denker's atmosphere changes. Original commit message:
Two-parameter physics-based model of atmosphere up to 262,467 ft i.e.
the top of the mesosphere. Correctly exhibits the HALT phenomenon.
2009-09-12 15:51:11 +02:00
jmt
3c48943e81
Various LOC/GS improvements from John Denker, adapted to trunk by me (hopefully not introducing too many bugs along the way). Includes:
...
- false LOC courses and GS lobes
- LOC sensitivity based on runway dimensions
- GS cutoff based on range
- More accurate GS deviation computation, making final approach more stable
2009-09-12 15:47:52 +02:00
curt
606f9173b2
Avoid strtof() for portability reasons.
2009-09-12 15:47:52 +02:00
curt
bf423ef0ca
Handle "double" type fields correctly for ascii input data. Previously double
...
data was being down-cast to float and the loss of precision impacted data types like lon/lat positions dramatically, preventing smooth replay of data.
2009-09-12 15:47:52 +02:00
frohlich
d09c0ec8b9
Disable collisions with the MP aircraft again.
...
Modified Files:
src/AIModel/AIMultiplayer.cxx
2009-09-12 15:47:52 +02:00
jmt
5f16e4da60
Add clamped degrees deviation for glideslope.
2009-09-12 15:47:52 +02:00
Tim Moore
a6db6d89ff
Merge branch 'jsd/atmos' into topic/atmos-merge
...
Conflicts:
src/Environment/environment.cxx
src/Environment/environment.hxx
John Denker's atmosphere changes. Original commit message:
Two-parameter physics-based model of atmosphere up to 262,467 ft i.e.
the top of the mesosphere. Correctly exhibits the HALT phenomenon.
2009-09-10 12:31:04 +02:00
Tim Moore
7b6d15d537
cleanup of atmosphere patch
...
Remove some dead code and space changes. Replace boost::tuple with std::pair,
but do use boost::tie.
2009-09-10 11:42:42 +02:00
John Denker
abc7ae96a5
Two-parameter physics-based model of atmosphere up to 262,467 ft i.e. the top of the mesosphere. Correctly exhibits the HALT phenomenon.
2009-09-10 10:59:51 +02:00
jmt
77a8b4db30
Add normalised heading deflection property to navradio.
2009-09-09 23:42:21 +02:00
daveluff
08dfa30d87
Fix MSVC compilation
2009-09-09 08:56:32 +02:00
torsten
a893748d4e
Tatsuhiro Nishioka:
...
Handle number keys on Keypad properly on Mac OS X
2009-09-09 08:56:32 +02:00
ehofman
10611c1522
Dont execute code in case the soundmanager isn't properly initialized
2009-09-09 08:56:32 +02:00
jmt
049e1ae23e
Fix compilation - missing include of globals.hxx
2009-09-09 08:56:32 +02:00
jmt
6fa1b3dfd0
Add normalised glideslope deviation property to nav-radio.
2009-09-09 08:56:32 +02:00
jmt
e2f0d1960e
Further re-factoring of nav-radio code, again no functionality changed should occur. Radio reception / GPS slaving / Glideslope handling and CDI updating are all separate functions now.
2009-09-09 08:56:32 +02:00
ehofman
e8db3a514a
Dont execute code in case the soundmanager isn't properly initialized
2009-09-09 08:56:32 +02:00
jmt
80e67b17c2
Set runway elevation to the airport elevation, and don't reset ILS/LOC elevation when aligning with runways.
2009-09-09 08:56:31 +02:00
frohlich
2f6107982c
Use the new vector conversion functions.
...
Modified Files:
src/FDM/groundcache.cxx src/Main/renderer.cxx
src/Main/viewer.cxx src/Scenery/scenery.cxx
2009-09-09 08:56:31 +02:00
frohlich
5c56757303
Move dynamic_casts to EffectGeode into the findMaterial method.
...
Modified Files:
src/Scenery/scenery.cxx
2009-09-09 08:56:31 +02:00
frohlich
690231ff64
Fix a problem introduced with the past vector changes.
...
Fix a potential nan problem with the scenery_available method.
Modified Files:
src/Scenery/scenery.cxx
2009-09-09 08:56:31 +02:00
ehofman
1fa48722b4
One last update; remember whether input or output is requested. This will make sure FlightGear isn't communicating in both directions all the time.
2009-09-09 08:56:31 +02:00
ehofman
aeefd12522
Don't forget to clear the previous configuration
2009-09-09 08:56:31 +02:00
ehofman
ea4a3ee1df
Make FGIO a proper subsystem and add a reinit method for the generic protocol. This should allow for easy runtime reloading of the configuration file.
2009-09-09 08:56:31 +02:00
ehofman
f220feb684
Sync. with JSBSim (CVS) again
2009-09-09 08:56:31 +02:00
frohlich
d9d725f28d
Remove obsolete version test.
...
Modified Files:
src/Main/fg_os_osgviewer.cxx
2009-09-09 08:56:31 +02:00
frohlich
4e7b084568
Simplify, fix some comments.
...
Modified Files:
src/Main/viewer.cxx
2009-09-09 08:56:31 +02:00
frohlich
93d2f8a963
Correct logic to determine if we really have a hit.
...
Modified Files:
src/Scenery/scenery.cxx
2009-09-09 08:56:31 +02:00
frohlich
cb10d714fd
Initialize all members.
...
Modified Files:
src/AIModel/AIAircraft.cxx src/AIModel/AIBase.cxx
2009-09-09 08:56:31 +02:00
frohlich
ccb9e64caf
Avoid division by zero.
...
Modified Files:
src/Instrumentation/dme.cxx
2009-09-09 08:56:31 +02:00
torsten
e98d7a1ea4
Tatsuhiro Nishioka:
...
FG crashes at exit at very high likelihood.
The cause of the crash is that some subsystems (input and gui) call get_subsystems() at their destructor.
This is very dangerous since SGSubSystemMgr::get_subsystem() can refer to already deleted subsystems.
2009-09-09 08:56:31 +02:00
frohlich
8676c2bbd8
Replace the SGVec*::sg() methods with the equivalent SGVec*::data() calls.
...
Modified Files:
src/Traffic/Schedule.cxx src/Sound/fg_fx.cxx src/Main/main.cxx
src/Instrumentation/navradio.cxx
src/AIModel/AIFlightPlanCreateCruise.cxx
2009-09-09 08:56:30 +02:00
torsten
a26ca9f3e3
Tatsuhiro Nishioka:
...
Fixed: wrong event name for abs-hat0-y
Modified: let AxisElement to generate normalized input (-1.0 to 1.0).
This can be temporal and can be removed when AxisEvent normalizes its value.
Modified: clean up code
Added: some comments so other Mac developers can see what's going on
2009-09-09 08:56:30 +02:00
jmt
80a6317ab6
Re-structure the nav-radio code, in preparation for cleaner GPS-slave separation. No functionality changes (hopefully).
2009-09-09 08:56:30 +02:00
jmt
5a01c55335
Allow the joystick hat to move the view, even when the sim is paused.
2009-09-09 08:56:30 +02:00
jmt
25c55f67bf
More precise matching of ILS records to navaids.
2009-09-03 00:02:48 +02:00
ehofman
98b5e7e6fe
Bertrand Coconnier:
...
Additionally to the original fix (problem with the Tec2b matrix initialization) I have modified the code for the "STRUCTURE" contacts in order not to generate NaNs when the z direction of the body frame is normal to the ground normal. Now there should no longer be any NaN generated by the landing gear code.
2009-09-03 00:02:48 +02:00
jmt
294a7b675a
Add support for processing the ICAO.ils.xml scenery data into ILS/LOC nav records.
2009-09-03 00:02:48 +02:00
durk
ce084ab1c5
Two minor (codewise) fixes to ensure everything works as advertised:
...
- Make sure to initialize the groundnetwork after succesful loading.
- Ensure that the AI groundnetwork code proximity detection code used the
correct values for bearing. (Note that detecting the proximity of the
user aircraft appears still to be broken. I'll look into that later).
2009-09-03 00:02:48 +02:00
durk
1ae2b59333
Added two missing files from JSBSim.org that were missing in the last sync.
2009-09-03 00:02:48 +02:00
ehofman
48cad71a70
Sync with JSBSim CVS again
2009-09-03 00:02:48 +02:00
curt
f07a83c73a
Allow setting of NED velocities.
2009-09-03 00:02:48 +02:00
jmt
2dee4ef14f
Update FGRunway to process information from threshold.xml files.
2009-09-03 00:02:47 +02:00
jmt
7ff374ef8b
Trigger lazy loading of Airport data from the scenery on access.
2009-09-03 00:02:47 +02:00
torsten
b1e2b7ee20
missing declaration of SGPropertyNode
2009-09-03 00:02:47 +02:00
jmt
cc0c19f62e
XMLLoader re-factoring.
2009-09-03 00:02:47 +02:00
jmt
1c015387ba
Initial framing for reading in-scenery airport data.
2009-09-03 00:02:47 +02:00
torsten
a1a610f7d5
- added support for MAC OSX and initial hotplug support from Tatsuhiro Nishioka
...
- added support for per-device <nasal> <open> and <close>
2009-09-03 00:02:47 +02:00
Tim Moore
be4b46b894
change back unsigned byte count to signed (multiplaymgr)
...
Also, small fixes to generic protocol from AndersG
2009-08-27 00:12:44 +02:00
Tim Moore
acbcf94bde
AIGroundVehicle from Vivian Meazza
2009-08-25 12:52:50 +02:00
Tim Moore
5b29cd4cc0
fix warnings in Multiplayer, Scripting, and Time
2009-08-24 18:07:19 +02:00
Tim Moore
62620177aa
Fix transmission of float and double values in generic protocol
...
gcc -Wall -Werror turned up some problems with the type-punning of pointers
used to write the message buffer; it turns out that truncated ints were being
written to the message buffer when values needed to be swapped to network byte
order.
2009-08-24 18:06:06 +02:00
Tim Moore
0a64405cad
fix warnings in Main
2009-08-24 18:03:49 +02:00
Tim Moore
67c7d8642a
fix warnings in Instrumentation
...
Mostly signed comparisons and order of initializers in constructors
2009-08-24 18:02:15 +02:00
Tim Moore
8238bcddbd
fix warnings in GUI code
2009-08-24 18:00:10 +02:00
Tim Moore
185ede0159
Fix order of initializers in constructor
2009-08-24 17:58:27 +02:00
Tim Moore
5a1e0d92f4
fix gcc warnings
...
Mostly comment out unused variables.
2009-08-24 17:57:32 +02:00
Tim Moore
1e049f24b0
fixes to remove warnings
...
Comment out unused variables; fix a real bug in uiuc_gear().
2009-08-24 17:56:39 +02:00
Tim Moore
bfe942268e
Initialize some variables
2009-08-24 17:54:48 +02:00
Tim Moore
c6d4f3b0ff
Fix to LaRCsim interpolation code
...
Is this code still used? I don't know, but -Wall -Werror turned up a problem.
2009-08-24 17:53:57 +02:00
Tim Moore
d838ef5f40
compilation fixes for gcc -Wall -Werror
...
Most are cosmetic, but the changes in the FGATCInstruction constructor
fix unitialized members.
2009-08-24 17:13:31 +02:00
torsten
b3ceb9a2fd
warning fixes
2009-08-23 21:43:10 +02:00
torsten
8d98e4cd49
warning fixes
2009-08-23 21:43:10 +02:00
torsten
1b08957f2a
Olaf Flebbe: the plib/ul.h is needed for the TGT_PLATFORM Macro to make the tags <windows> or
...
<mac> work in the joystick xml files.
2009-08-23 21:43:10 +02:00
ehofman
9a01f8bf73
temporary fix for a division by zero problem for some aircraft
2009-08-23 21:43:10 +02:00
torsten
b772e5872a
add option <grab/> to the device configuration. If this is set to 'true', the events from this devices are exclusively handled by our handler and are not distributed to other driver(s).
2009-08-23 21:43:10 +02:00
torsten
cd89ce7d0a
warning fixes
2009-08-23 21:43:10 +02:00
torsten
6ba395969c
warning fixes
2009-08-23 21:43:09 +02:00
torsten
2ea02594c0
even more warning fixes
2009-08-23 21:43:09 +02:00
torsten
e294ab7b39
warning fixes
2009-08-23 21:43:09 +02:00
torsten
e0b2d43fb4
the warning extinguisher hits again...
2009-08-23 21:43:09 +02:00
torsten
c672f2aba5
warning fixes
2009-08-23 21:43:09 +02:00
torsten
4d977e9411
warning fixes
2009-08-23 21:43:09 +02:00
torsten
5e9864994c
fix warnings (order of initialization)
2009-08-23 21:43:09 +02:00
fredb
f2b9b9f441
Compile under MSVC9 again
2009-08-23 21:43:09 +02:00
ehofman
5ee9cd1fcc
Add Bertrand Coconnier's latest landing gear code
2009-08-23 21:43:09 +02:00
torsten
5a04b82dfc
Tom P: magnetic-variation isn't boolean.
2009-08-23 21:43:09 +02:00
fredb
4c29f8711b
Compile under MSVC9 again
2009-08-23 21:43:08 +02:00
ehofman
83675c7216
Changed my mind, the 'scene specular' color is actually the diffuse color and the sun specular color is the scene specular color
2009-08-23 21:43:08 +02:00
ehofman
37e1581964
forgot a few untie's and fix a small bug
2009-08-23 21:43:08 +02:00
ehofman
cf25f69d36
Update to the latest version of JSBSim
2009-08-23 21:43:08 +02:00
ehofman
25a99a2417
Expose the color of the sun (which is not the scene specular color anymore)
2009-08-23 21:43:08 +02:00
curt
0590333e53
Fix a bug that is screwing me!
2009-08-23 21:43:08 +02:00
fredb
efbe6984c2
Win32 fix and suppress one warning
2009-08-23 21:43:08 +02:00
timoore
8bac481865
fgviewer: support random objects, vegetation, and static models
2009-08-23 21:43:08 +02:00
torsten
8cf74b8f2d
Add a debug property to make devices print out incoming events on the console.
2009-08-12 23:45:55 +02:00
torsten
3231561e5a
fixed typo. Thanks m.
2009-08-12 23:45:54 +02:00
torsten
d7eab6061c
be compatible with older kernels
2009-08-12 23:45:54 +02:00
torsten
da9a4c3216
missing dbus include path
2009-08-12 23:45:54 +02:00
torsten
5c57153e62
Advanced input subsystem - Step3: Adding support for the Linux event devices
2009-08-12 23:45:54 +02:00
timoore
3bce312213
Get fgviewer working as a part of fgfs
...
Move fgviewer code into fgfs binary. Its osgViewer-style main function is
called from bootstrap.cxx if the --fgviewer argument is passed to fgfs.
Use fgfs initialization functions in fgviewer codepath. Read
command-line arguments and autosave.xml.
2009-08-12 23:45:54 +02:00
frohlich
bb2e5fb2c9
Use the 'all but self' capability of the scenery elevaton code instead of
...
playing with node masks.
Modified Files:
src/AIModel/AIAircraft.cxx src/AIModel/AIBallistic.cxx
src/AIModel/AIBase.cxx src/AIModel/AIBase.hxx
src/AIModel/AIShip.cxx src/AIModel/AIShip.hxx
src/AIModel/AIThermal.cxx src/ATCDCL/AILocalTraffic.cxx
2009-08-10 23:31:21 +02:00
fredb
71d7f043a8
Compile under MSVC9
2009-08-10 07:14:38 +02:00
timoore
b65f0ae0dc
From Till Busch - reload shaders command
...
Also, more documentation for effects.
2009-08-10 07:14:38 +02:00
torsten
aea9c750f3
Advanced input subsystem - Step2: Split up current input subsystem
...
- encapsulate code into classes
- create separate subsystem for keyboard, mouse and joystick
- group new subsystems into subsystemgroup "input"
2009-08-08 08:37:15 +02:00
frohlich
aac4bec5c7
Add a possible node not to visit.
...
Modified Files:
scenery.cxx scenery.hxx
2009-08-08 08:37:14 +02:00
torsten
0c2db22988
Advanced input subsystem - Step1: cleanup dependencies
2009-08-08 08:37:14 +02:00
torsten
c5f63a4ac1
Advanced input subsystem - Step1: cleanup dependencies
2009-08-08 08:37:14 +02:00
fredb
abe00db6aa
Compile under MSVC9 again
2009-08-08 08:37:14 +02:00
ehofman
a7976b835d
Sync. with JSBSim
2009-08-08 08:37:14 +02:00
fredb
94caa0b891
Fix case typo
2009-07-27 23:52:33 +02:00
fredb
9718338560
Compile under MSVC9
2009-07-27 23:52:33 +02:00
daveluff
443f3f3654
Fix the rendering of the KLN89 on the 2D panel that was broken during the move to osg. This is an interim step with the aim being to eventually use render-to-texture.
2009-07-27 23:52:32 +02:00
torsten
0c1c224443
At startup, fetch METAR for closest airport that has one, which is not necessarily the same.
2009-07-27 23:52:32 +02:00
Tim Moore
7d6c567fde
Refer to property types using props:: namespace
...
BOOL, FLOAT etc. conflict with typedefs in windows.h.
2009-07-17 14:54:12 +02:00
Tim Moore
ddb6551a91
SGRawValue::DefaultValue is now a function
2009-07-17 11:47:11 +02:00
timoore
e2b21c1e0c
Property predicate for techniques
2009-07-16 12:10:48 +02:00
timoore
d7a07bdd58
Find material from EffectGeode and Effect
...
The scenery now uses the Effect class.
2009-07-16 12:10:48 +02:00
timoore
890b584b8f
Enable EffectCullVisitor
2009-07-16 12:10:48 +02:00
timoore
ca3bd1c309
accomodate changed getDisplayName interface in yasim::Hitch
2009-07-16 12:10:47 +02:00
timoore
5cf18d30c6
Support for VEC3D and VEC4D properties.
...
Tiny update to property_list for extended properties.
New property types in nasal.
2009-07-16 12:10:47 +02:00
timoore
4cc3084256
SGPropertyNode::Type moves to simgear::props namespace
2009-07-16 12:10:47 +02:00
Tim Moore
e342d879e8
Radar patch from Vivian
2009-07-12 01:02:58 +02:00
ehofman
a4a593745e
Hopefuly fix what might be a 64-bit OS problem
2009-07-12 00:55:33 +02:00
ehofman
f5ab3756a1
although the official name is 'bool' also support 'boolean' for backward compatibility.
2009-07-02 08:59:16 +02:00
ehofman
38d538cdb8
Add the statement about the wrong received-buffer size again which might be a useful debugging tool.
2009-07-02 08:59:16 +02:00
ehofman
0dfd7b8024
If more than one packet has arrived in the mean time, process them all.
2009-07-02 08:59:16 +02:00
jmt
6c65a26ddf
Switch some log message from the traffic code to SG_BULK (with Durk's permission)
2009-07-02 08:59:16 +02:00
frohlich
05a0a1f231
Remove ViewPartitionNode that is obviously superseeded by the
...
CameraGroup implementation and that is not used by flightgear.
Modified Files:
FlightGear.dsp configure.ac projects/VC7.1/FlightGear.vcproj
src/FDM/Makefile.am src/Main/Makefile.am
Removed Files:
src/Main/ViewPartitionNode.cxx src/Main/ViewPartitionNode.hxx
2009-07-02 08:59:16 +02:00
frohlich
e9c0c01ebb
Remove now unused functions.
...
Modified Files:
src/Main/renderer.cxx src/Main/renderer.hxx
2009-07-02 08:59:16 +02:00
torsten
786c10a69e
fix self initialized of average variable in FGPredictor
2009-07-02 08:59:16 +02:00
fredb
219be77f1e
Suppress warnings
2009-07-02 08:59:16 +02:00
fredb
0783a96d4d
Suppress MSVC warnings
2009-07-02 08:59:15 +02:00
fredb
00d7c1865f
Suppress warnings
2009-07-02 08:59:15 +02:00
ehofman
6079ff58fd
sync. with JSBSim again
2009-07-02 08:59:15 +02:00
ehofman
1ed6276f16
Don't create a new instance of /fdm/jsbsim upon reset
2009-07-02 08:59:15 +02:00
ehofman
a9c47a7b78
split up binary and ascii message handling functions, mostly for readability
2009-07-02 08:59:15 +02:00
torsten
14f4354523
added GPL license header
2009-06-25 10:20:24 +02:00
torsten
d23628a9ce
hack to stop startup.nas complaining if metar arrives after nasal-dir-initialized
...
is fired. Immediately fetch and wait for the METAR before continuing. This gets the
/environment/metar/xxx properties filled before nasal-dir is initialized.
2009-06-25 10:20:24 +02:00
frohlich
33a2e2128f
Simplify AI model loading.
...
Modified Files:
AIBallistic.cxx AIBallistic.hxx AIBase.cxx AICarrier.hxx
Makefile.am
Removed Files:
AIModelData.cxx AIModelData.hxx
2009-06-23 10:54:10 +02:00
frohlich
8f501de78c
Remove carrier wire and catapult configuration from the scenario file.
...
This is now included in the model xml file.
So, wires and catapults also work even if they are not loaded by an AICarrier.
Modified Files:
AICarrier.cxx AICarrier.hxx
2009-06-23 10:54:10 +02:00
torsten
40d2925126
don't mix geodetic and geocentric coordinates
2009-06-23 10:54:09 +02:00
ehofman
90581f8bf0
changes matching those of generic.?xx
2009-06-23 10:54:09 +02:00
ehofman
36f8519973
* Add proper support for float and double values
...
* properly honour network byte order on little-endian and big-endian systems
* various cleanups and bug-fixes
2009-06-23 10:54:09 +02:00
ehofman
30e925bb38
Anders Gidenstam:
...
Add support for generic binary input.
This patch has been sitting in my source tree since 2007.
2009-06-23 10:54:09 +02:00
ehofman
879b4df9fc
Return an error when not enough tokens are parsed for the generic protocol, that must be better than causing a segmentation fault.
2009-06-23 10:54:09 +02:00
Tim Moore
b588a92b7f
adapt to changes in sg_exception interface
...
sg_location now uses C strings. Also, change uses of sg_throwable to more
specific exceptions like sg_io_exception.
2009-06-16 11:46:47 +02:00
timoore
d30398f2b2
uninitialized variable fix from Vivian Meazza
2009-06-16 11:32:14 +02:00
timoore
f0bfb4d137
Realize viewer explicitly
...
The osgViewer needs to be "realized" so that, among other things, threading
will start. This is normally done by osgViewer::run, but we don't call
that.
Don't realize graphics contexts; Let osgViewer code do it. This way
osgViewer::isRealized returns the correct answer.
2009-06-15 11:25:06 +02:00
fredb
862f59aded
Reserve a special FGPositionned type for pavements
2009-06-15 10:29:45 +02:00
fredb
522787c173
Retrieve the full pavement/taxiway description, made of several words
2009-06-15 10:29:45 +02:00
fredb
97c214e4fc
Suppress warnings
2009-06-15 10:29:45 +02:00
fredb
40586c77fd
X-Plane 850 airport file format parsing. 810 is still supported and may be mixed with new format.
...
Ground radar updated to display new pavements.
2009-06-15 10:29:45 +02:00
fredb
73fbc05a6b
Projection matrix and texture size should be coherent
2009-06-15 10:29:44 +02:00
fredb
3b024e3dab
Suppress warnings
2009-06-15 10:29:44 +02:00
ehofman
d27097d7b8
don't forget to include the new header for the tardist
2009-06-15 10:29:44 +02:00
ehofman
cb435814c1
latest changes for JSBSim (1.0 prerelease)
2009-06-15 10:29:44 +02:00
jmt
21a8522160
Whoops, type codes for localizers and ILSs were swapped in the nav.dat reader
2009-06-15 10:29:44 +02:00
jmt
86d1e4ea9d
Directly associate runways objects with their ILS navrecord (if one exists)
2009-06-15 10:29:44 +02:00
jmt
83c29b4f43
Fix a bad copy-and-paste bug in namedFindClosest, which broke things in the
...
multiple-matches case.
2009-06-11 16:05:21 +02:00
frohlich
e837aefceb
Remove old osg 2.2 code.
...
Modified Files:
src/Main/renderer.cxx
2009-06-11 16:05:21 +02:00
frohlich
173af5d55f
Remove dead variables.
...
Modified Files:
./src/Model/acmodel.cxx ./src/Model/acmodel.hxx
2009-06-11 16:05:21 +02:00
torsten
86d11cffce
- fill in probe[0] before using
...
- add a note about the mixing of SGGeoc and SGGeod
2009-06-11 16:05:20 +02:00
torsten
93cc7e0e5b
- use SGGeodesy
...
- fade out strong lift when disabled
- some tiny optimizations
2009-06-11 16:05:20 +02:00
jmt
a29e5ce666
Remove some remaining non-route-related uses of SGWayPoint.
2009-06-11 16:05:20 +02:00
jmt
52bac46535
Replace CourseAndDistance uses in traffic code with SGGeodesy calls.
2009-06-11 16:05:20 +02:00
jmt
6e42458a55
Convert waypoint::CourseAndDistance users to use SGGeodesy helper functions.
2009-06-11 16:05:20 +02:00
jmt
e1583cb28c
Update FGViewer position clients to work with SGGeod directly
2009-06-11 16:05:20 +02:00
jmt
2fa160d41a
Replace plain doubles with SGGeod in FGViewer for position and target pos.
2009-06-11 16:05:20 +02:00
torsten
6d12675161
immediately fetch a metar if real-weather-fetch is re-enabled at runtime
2009-06-11 16:05:20 +02:00
frohlich
c56b2f0047
Also take the current BVH nodes transform into account.
...
Modified Files:
src/FDM/groundcache.cxx
2009-06-11 16:05:20 +02:00
frohlich
ee9dc0c93a
No need to zero the _props variable.
...
This reference is released by the SGSharedPtr destructor anyway.
Modified Files:
src/Scripting/NasalSys.cxx
2009-06-11 16:05:20 +02:00
fredb
40ad35acf7
disambiguate pow usage
2009-06-11 16:05:20 +02:00
frohlich
f291636ee4
Remove unused header.
...
Modified Files:
src/Scenery/scenery.cxx
2009-06-11 16:05:19 +02:00
torsten
0503f82781
some minor optimization
2009-06-11 16:05:19 +02:00
jmt
031f9bb33b
Dave Luff's patch to fix findNextWithPartialId
2009-06-11 16:05:19 +02:00
torsten
5ae40c1c30
- METAR winds have magnetic heading
...
- memory leak in read_table()
2009-06-11 16:05:19 +02:00
torsten
49b42a171a
that cleanup code was not working
2009-06-11 16:05:19 +02:00
torsten
ab4928f7a9
Add variable winds (direction and gusts) for the boundary layer if defined in METAR.
2009-06-03 23:45:33 +02:00
torsten
1873346d18
calculate internal properties only once on read()
2009-06-03 23:45:33 +02:00
mfranz
cc29182283
Dave LUFF: bugfixes; leave dlg with crsr button; heading info; cleanup
...
"General cleanup: Fix several potential segfaults, ensure delete
approach dialog can be exited with the crsr button, implement heading
information in DTO mode, make the comments more useful, and remove old
debugging comments."
2009-06-03 00:18:56 +02:00
mfranz
5a200cb5f4
Dave LUFF: Fix buffer overrun with longer runways
2009-06-03 00:18:56 +02:00
ehofman
4aff7b279d
Upgrade to JSBSim 1.0-prerelease
2009-06-03 00:18:56 +02:00
torsten
5917e80bf0
Save more than 20 percent execution time by avoiding multiple calculation of properties.
2009-06-03 00:18:56 +02:00
torsten
4aacda2390
new command line option --metar="some metar"
...
new handling of real-weather-fetch
major code cleanup
2009-06-03 00:18:56 +02:00
torsten
301efcd529
jean pellotier: test for positions near the pole was in fact a test for positions near the equator.
2009-06-03 00:18:55 +02:00
frohlich
8a6bad9c59
Avoid division by zero.
...
Modified Files:
src/Instrumentation/inst_vertical_speed_indicator.cxx
2009-06-03 00:18:55 +02:00
mfranz
70dea9a2c1
don't write past end of buffer
2009-06-03 00:18:55 +02:00
frohlich
28996902a1
Adapt to simgears changes.
...
The season is already checked by the properties.
Modified Files:
src/Main/fg_init.cxx
2009-06-03 00:18:54 +02:00
torsten
cef9eb3d73
Clouds in scenario none and metar were above 0ft not above ground elevation, which lead to clouds at or below ground level for high altitude airfields. Reason: For the scenario none, the station_elevation was computed before the terrain was loaded, for METAR scenario station_elevation was not computed at all.
2009-06-03 00:18:54 +02:00
torsten
685132b5d2
wrong value for station_elevation_ft, meters != feet
2009-06-03 00:18:54 +02:00
fredb
8585b2c7b7
Functions should always return a value
2009-06-03 00:18:54 +02:00
fredb
5b93117e2d
Functions should always return a value
2009-06-03 00:18:54 +02:00
torsten
a38d050ddf
check for dt <= 0 aka paused sim
2009-06-03 00:18:54 +02:00
timoore
8e1248e1e1
Add --enable-fpe option to cause a trap on floating point exceptions
...
Only on Linux for now; traps on divide by zero and "invalid", which includes
generating a NaN and overflowing an integer conversion.
2009-06-03 00:18:54 +02:00
timoore
0ce5f350ff
Fix two sources of floating point exceptions
...
When a subsystem is updated, dt can be 0 if the program is paused. There
may be other subsystems that don't check that dt is non-zero.
2009-06-03 00:18:54 +02:00
torsten
ec0ed21b73
support
...
<abs>true</abs>
for input elements.
If set to true, the input value is filtered thru fabs() function.
Defaults to false if absent, so there is no impact for existing configurations
2009-05-20 00:00:06 +02:00
frohlich
d9c3c6da96
Fix Carriers without catapults and wires.
...
Modified Files:
src/AIModel/AICarrier.cxx
2009-05-20 00:00:05 +02:00
fredb
19eab15f8e
Remove few warnings
2009-05-18 12:24:17 +02:00
fredb
25c633af3e
Functions should always return a value
2009-05-18 12:24:17 +02:00
mfranz
b07ad149ae
turn a few #include paths from the "foo" form to <foo>
...
The quotes form is normally only used for headers with path relative
to the including file's path, though the standard doesn't strictly
mandate this. This is consistent with the rest of sg/fg, it makes the
code's intent clearer and helps to find headers. (And it's a few
milliseconds faster, too.)
2009-05-18 12:24:17 +02:00
mfranz
f1d39fad28
use safer and faster property methods instead of creating property
...
paths via snprintf+strncat+absolute paths every time
2009-05-18 12:24:17 +02:00
mfranz
3700a42783
use safer and faster property methods instead of creating property
...
paths via snprintf+strncat+absolute paths every time (more to come)
2009-05-18 12:24:17 +02:00
mfranz
b87e8ba3ee
testair.cxx is a 21 lines long, obsolete test application. After removing
...
all lines that refer to no longer existing headers/classes/functions, then
this is what remains: int main() { printf("boo!\n"); return 0; }
2009-05-18 12:24:17 +02:00
ehofman
88478f03d0
Sync. with JSBSim CVS
2009-05-18 12:24:17 +02:00
fredb
7d1440adb8
Allows multi samples > 1
2009-05-18 12:24:16 +02:00
mfranz
095c710c0e
leak fixes
2009-05-18 12:24:16 +02:00
mfranz
744a23d0aa
fix leaks; make destructors virtual
2009-05-18 12:24:16 +02:00
torsten
3c138c8345
Fix broken ATC/AI-Frequencies dialog.
2009-05-18 12:24:16 +02:00
durk
a4debec122
Removed hardcoded performance data.
2009-05-18 12:24:15 +02:00
Tim Moore
70be1629e6
Merge branch 'maint' into next
2009-05-18 12:23:33 +02:00
frohlich
047af7dec4
Make flightgear compile with todays osg trunk.
...
Modified Files:
src/Scenery/SceneryPager.cxx src/Scenery/SceneryPager.hxx
src/Scenery/tilemgr.cxx
2009-05-16 17:15:03 +02:00
Tim Moore
f528fc7154
AICarrier fixes from Vivian
2009-05-04 16:16:00 +02:00
andy
2eebd94dac
From Vivian: add a tunable launchbar acceleration, to better support some
...
of the Jets on the catapult.
2009-05-02 00:44:22 +02:00
ehofman
bdccfb587d
brighten te sky color towards the sun at dusk and dawn
2009-05-02 00:44:21 +02:00
torsten
c8d321f3b9
just in case that someone does not like ridge lift at all, set the property
...
/environment/ridge-lift/enabled=true
works also at runtime.
And some tiny code optimization.
2009-05-02 00:44:21 +02:00
torsten
1ce2924c28
one final(?) cleanup:
...
- no need for sign() to be a class member
- rename local ground elevation variable and make it method local
2009-05-02 00:44:21 +02:00
torsten
6af3e0eec3
- avoid duplicate computations
...
- move local variables out of the class into the methods
- use SG_xxx constants where applicable
- use indexed properties instead of _0, _1, ...
- code cleanup
2009-05-02 00:44:21 +02:00
torsten
2f868fb68e
Melchior FRANZ: fix array subscript is above array bounds
2009-05-02 00:44:21 +02:00
torsten
4b9a8ae9e4
Patrice Poly: correction for the lee side
...
attempt to fix nan issue
2009-05-02 00:44:21 +02:00
fredb
7b20e6caa4
Remove spurious semi-colon
2009-05-02 00:44:20 +02:00
torsten
2fc7f94154
restoring original copyright of David Culp
2009-05-02 00:44:20 +02:00
torsten
7e3531ef5c
Implementation of ridge lift from Patrice Poly based on an algorithm of Ian Forster-Lewis
2009-05-02 00:44:20 +02:00
ehofman
86b34010f3
Sync. w. JSBSim: fix a few unexpected glitches
2009-05-02 00:44:20 +02:00
ehofman
720b6fa3f6
Sync. w. JSBSim CVS
2009-04-15 23:19:30 +02:00
ehofman
71c9cb9f48
Remove unused code
2009-04-15 23:19:30 +02:00
frohlich
58a427fb12
Fix a problem with node traversal masks and paged model loading that
...
shows up as a non solid carrier under some circumstance.
Modified Files:
AIBase.cxx AIBase.hxx AIShip.cxx
2009-04-15 23:19:30 +02:00
ehofman
30ae6e0564
Let the fog color transition into the sky dome to give a more natural effect
2009-04-15 23:19:30 +02:00
curt
6eec37b1f9
Don't compute radio station range when nav1 slaved to gps.
2009-04-15 23:19:30 +02:00
curt
d83286354c
One more minor tweak on glideslope handling when slaved to gps.
2009-04-15 23:19:30 +02:00
curt
12c5a631f6
Better handling of glide slope and in range flags when slaved to external
...
GPS.
2009-04-15 23:19:30 +02:00
ehofman
2923bd15bc
Also adjust diffuse based on visibility although probably nobody will notice the difference
2009-04-15 23:19:29 +02:00
mfranz
a57b626633
Ctrl-Shift-click on the '.' entry fires listeners of the parent node.
...
This can be used to validate atomic branches after individual members
have been changed.
(This is useful no matter how the discussion on aggregate property types
ends, and not meant to enforce/accelerate a decision.)
2009-04-15 23:19:29 +02:00
ehofman
c2af121c00
fog color and cloud color are the same anyhow, remove one of them in the ambient color calculation
2009-04-15 23:19:29 +02:00
ehofman
846d756e55
logarithmic decrease in shinines/specular and limited linear increased ambient color due to reduced visibility.
2009-04-15 23:19:29 +02:00
mfranz
0ec4bf22bf
Ron JENSEN: fix division by zero problem (asin -> atan2; navradio.cxx)
2009-04-15 23:19:29 +02:00
ehofman
b7e8be8ceb
Adjust the lighting once more, the previous behavior wasn't really satisfactory to me. Now specular is also influenced by visibility.
2009-04-15 23:19:29 +02:00
durk
3edf4f35ea
Maik Justus: Crash Fix.
2009-04-01 09:23:55 +02:00
ehofman
48ac04456f
Adding ambient support for ac3d aircraft models reveiled a mistake in the scne ambient calculation. Decreasing visibility now increases ambient color giving a nice dark color on bright days and a much more visible color on normal days.
2009-04-01 09:23:55 +02:00
torsten
b0dd43e022
added new features:
...
- conditions for InputValues
- multiple InputValues
some more code cleanup
2009-04-01 09:23:55 +02:00
mfranz
6a590ce9de
gui/embedded nasal: don't rely on the nasal system being available
2009-04-01 09:23:54 +02:00
ehofman
1a1b11b96c
Fixes:
...
* line 343: comparison between signed and unsigned integer expressions
* line 441: 'lon', 'lat', 'slr' and 'alt' might be used uninitialized
* line 565: enumeration value 'etUnknown' not handled in switch
2009-04-01 09:23:54 +02:00
mfranz
35ed31972a
Csaba HALASZ: fix uninitialized _aspect_ratio member in Main/viewer.cxx
2009-04-01 09:23:54 +02:00
ehofman
81b9bb61e5
Sync. w. JSBSIm one more time to fix at least one bug
2009-04-01 09:23:54 +02:00
ehofman
27a7305736
Sync. w. JSBSim cvs
2009-04-01 09:23:54 +02:00
mfranz
3930967645
FGNasalModelData: use model XML path as module source
2009-04-01 09:23:54 +02:00
mfranz
5b32c9ab1c
degrade MP chat messages from SG_ALERT fo SG_WARN
...
(they should not drown real error messages)
2009-04-01 09:23:54 +02:00
mfranz
16dd71a044
wxradar: display transponder-id by default, fall back to callsign
2009-04-01 09:23:54 +02:00
mfranz
de35bbe4ed
assign a unique module name to ai/mp embedded nasal (again): __model%u
2009-04-01 09:23:54 +02:00
durk
c478cdd35f
Allow the AI Traffic controller to set a transponder code. This code is
...
used in ATC chatter, and writted to the property, so it can -in principle-
be picked up by the radar.
2009-04-01 09:23:54 +02:00
mfranz
b07eec93f1
don't keep 'nasal-dir-initialized' node after removing
2009-04-01 09:23:54 +02:00
fredb
9ff286ea01
Support old compilers
2009-04-01 09:23:54 +02:00
torsten
abcc94d8ee
- created a class for InputValues
...
- moved common code into the base class FGXMLAutoComponent
- adapted the documentation
2009-04-01 09:23:54 +02:00
mfranz
27389e0742
geodinfo: make vector origin altitude configurable
2009-04-01 09:23:54 +02:00
frohlich
5af98c0063
Remove unused switch node.
...
Modified Files:
src/Model/acmodel.cxx src/Model/acmodel.hxx
2009-04-01 09:23:53 +02:00
mfranz
3cdd8fedf6
wxradar: read aircraft data from the property tree, rather than AIBase
...
This allows to display objects that are in /ai/models/, but not managed
by the AI manager, and it follows fgfs' design principle that subsystems
should communicate over the property tree (if possible). This is a tad
slower, but the radar is only updated once every second.
2009-03-18 08:00:09 +01:00
frohlich
5168166a9f
Update with changes in simgear.
...
Modified Files:
src/Main/renderer.cxx src/Main/main.cxx
2009-03-18 08:00:09 +01:00
frohlich
183b871b48
Fix a problem with two concurent 'round to multiple of basic simulation
...
time' code paths. The problem may lead to skipped fdm updates at very high
frame rates. The most visible effect of that was that the aircraft
slips backwards wrt the forward moving carrier.
Remove unused stuff.
Modified Files:
configure.ac projects/VC7.1/FlightGear.vcproj
projects/VC8/FlightGearLib.vcproj src/Cockpit/cockpit.cxx
src/FDM/Makefile.am src/FDM/flight.cxx src/FDM/flight.hxx
src/FDM/SP/Balloon.cxx src/FDM/SP/BalloonSim.cpp
src/FDM/SP/BalloonSim.h src/Main/Makefile.am
src/Main/fg_init.cxx src/Main/main.cxx src/Time/Makefile.am
Removed Files:
src/Time/fg_timer.cxx src/Time/fg_timer.hxx
2009-03-18 08:00:09 +01:00
frohlich
aadf568c91
Remove unused stuff.
...
Modified Files:
src/Main/main.cxx src/Main/main.hxx
2009-03-18 08:00:09 +01:00
frohlich
22888ca8a5
Use simgear vector instead of plib vectors.
...
Modified Files:
SP/Balloon.cxx SP/BalloonSim.cpp SP/BalloonSim.h
2009-03-18 08:00:09 +01:00
frohlich
a99ea1c7b5
Port over remaining Point3D usage to the more type and unit safe SG* classes.
...
Remove leftover headers from plib/sg.
Modified Files:
src/AIModel/AIBase.cxx
src/AIModel/AIFlightPlanCreateCruise.cxx
src/ATCDCL/AIEntity.cxx src/ATCDCL/AIEntity.hxx
src/ATCDCL/AIGAVFRTraffic.cxx src/ATCDCL/AIGAVFRTraffic.hxx
src/ATCDCL/AILocalTraffic.cxx src/ATCDCL/AILocalTraffic.hxx
src/ATCDCL/AIMgr.cxx src/ATCDCL/ATC.hxx
src/ATCDCL/ATCDialog.cxx src/ATCDCL/ATCProjection.cxx
src/ATCDCL/ATCProjection.hxx src/ATCDCL/ATCutils.cxx
src/ATCDCL/ATCutils.hxx src/ATCDCL/approach.cxx
src/ATCDCL/commlist.cxx src/ATCDCL/ground.cxx
src/ATCDCL/ground.hxx src/ATCDCL/tower.cxx
src/ATCDCL/tower.hxx src/Airports/calc_loc.cxx
src/Airports/dynamics.cxx src/Airports/groundnetwork.cxx
src/Airports/parking.cxx src/Airports/runwayprefs.cxx
src/Airports/simple.cxx src/Cockpit/cockpit.cxx
src/Cockpit/hud.hxx src/Cockpit/hud_card.cxx
src/Cockpit/hud_rwy.cxx src/Environment/environment.cxx
src/FDM/UFO.cxx src/FDM/SP/MagicCarpet.cxx src/GUI/dialog.hxx
src/Instrumentation/HUD/HUD.hxx
src/Instrumentation/HUD/HUD_runway.cxx
src/Instrumentation/KLN89/kln89.cxx src/Main/fg_init.cxx
src/Main/viewer.cxx src/Main/viewmgr.cxx
src/Model/panelnode.cxx src/MultiPlayer/mpmessages.hxx
src/Scenery/tilemgr.cxx src/Traffic/SchedFlight.cxx
src/Traffic/TrafficMgr.cxx
2009-03-18 08:00:08 +01:00
frohlich
6ac5dd61e9
Remove unused variables.
...
Modified Files:
src/ATCDCL/AIEntity.cxx src/ATCDCL/AIEntity.hxx
src/ATCDCL/AIGAVFRTraffic.hxx src/ATCDCL/AILocalTraffic.cxx
2009-03-18 08:00:08 +01:00
frohlich
4a9484ac25
Remove unsed code.
...
Modified Files:
ATCProjection.cxx ATCProjection.hxx
2009-03-18 08:00:08 +01:00
frohlich
c254bb9c38
Make use of the fast bv intersection tests even for the croaser altitude
...
queries. This also fixes some issues with the carrier and the croaser
altitude values that is used when no hit is found.
Include some ifdefed out debugging code, that might be interresting.
Modified Files:
groundcache.hxx groundcache.cxx
2009-03-18 08:00:08 +01:00
mfranz
51b46283df
Roy V. OVESEN: add support for heading bug
2009-03-18 08:00:08 +01:00
frohlich
8f660b97ad
Make a simulation reset on the carrier work again.
...
Modified Files:
src/FDM/flight.cxx src/FDM/groundcache.cxx
src/FDM/groundcache.hxx
2009-03-18 08:00:08 +01:00
mfranz
845323eadd
remove redundant checks (and one indentation level)
2009-03-18 08:00:08 +01:00
frohlich
db2d4a7a68
Fix some sim time issues with the locations of the ground cache and the
...
queries in there.
Modified Files:
flight.cxx flight.hxx groundcache.cxx
groundcache.hxx JSBSim/JSBSim.cxx YASim/YASim.cxx
YASim/YASim.hxx
2009-03-18 08:00:08 +01:00
frohlich
da8b3f9ce5
The simtime alread contains the increment. So do not add that twice.
...
Modified Files:
src/AIModel/AIShip.cxx
2009-03-18 08:00:08 +01:00
mfranz
b00e1c10e0
Merge branch 'master' of ../.fg.osg
2009-03-18 08:00:08 +01:00
frohlich
2d1d8120f6
Set the reference time the transform is meant for.
...
Modified Files:
src/AIModel/AICarrier.cxx src/AIModel/AIShip.cxx
2009-03-18 08:00:08 +01:00
frohlich
7cb7ba9f90
Fix cmpiler warning.
...
Modified Files:
Rotorpart.cpp Rotorpart.hpp
2009-03-18 08:00:08 +01:00
frohlich
f9f9350b96
Adapt to SGTimeStamp changes.
...
Modified Files:
configure.ac src/Cockpit/panel.cxx src/FDM/Makefile.am
src/FDM/flight.hxx src/FDM/ExternalNet/ExternalNet.hxx
src/Instrumentation/marker_beacon.cxx src/Main/Makefile.am
src/Main/fg_init.cxx src/Main/main.cxx
src/MultiPlayer/multiplaymgr.cxx src/Time/fg_timer.cxx
utils/GPSsmooth/MIDG_main.cxx utils/GPSsmooth/UGear_main.cxx
utils/GPSsmooth/gps_main.cxx
2009-03-18 08:00:08 +01:00
fredb
648247b71e
Win32 fix
2009-03-18 08:00:07 +01:00
frohlich
7e73a87882
Improove FGTileMgr::scenery_available for small ranges.
...
Use SGGeod in FGTileMgr, FGScenery apis.
Modified Files:
src/AIModel/AIBallistic.cxx src/Main/main.cxx
src/Scenery/scenery.cxx src/Scenery/scenery.hxx
src/Scenery/tilemgr.cxx src/Scenery/tilemgr.hxx
src/Scripting/NasalSys.cxx
2009-03-18 08:00:07 +01:00
frohlich
16211c9440
More robust behaviour when the tilemanager reports 'no scenery'.
...
Insert log if this happens.
Modified Files:
flight.cxx groundcache.cxx
2009-03-18 08:00:07 +01:00
mfranz
0e72224559
add <label-offset> param for adjusting number labels in scales
2009-03-18 08:00:07 +01:00
mfranz
92510697f3
restore consistent coding-style; remove obsolete code; fix typo
2009-03-18 08:00:07 +01:00
mfranz
d3b2b9f1e3
allow to change/reload HUD by setting path in /sim/path/path[1]
2009-03-18 08:00:07 +01:00
frohlich
f07e8a7e94
Avoid casts if there is a method for the apropriate job.
...
Modified Files:
src/Main/main.cxx
2009-03-11 23:14:34 +01:00
torsten
43880b201c
Make hardcoded error values configurable.
...
This patch introduces the optional elements
<config>
<spin-thresh>0.8</spin-thresh>
<max-roll-error-deg>40</max-roll-error-deg>
<max-pitch-error-deg>12</max-pitch-error-deg>
</config>
under the corresponding /instrumentation/attitude-indicator element.
The values are initialized to the shown default values if omitted.
These are the values of the former hardcoded constants.
2009-03-11 23:14:34 +01:00
durk
9cc92035b1
A set of additions related to allow the use of SID and STAR procedures.
...
The current code still has some rough edges, in particular memory still
needs to be deallocated where possible, and the actual use of the code
needs more testing. This code has been running without noticable problems,
so I think it's ready for some wider exposure. Detailed changes include:
- Finetuning of the SID/STAR data concept.
- Preloading of all SIDs, from one xml file.
- ATC determines which SID should be used and echoes this over the com1 or
com2 radio.
2009-03-11 23:14:34 +01:00
frohlich
19331f2813
Fix problem introduced with yesterdays viewer change.
...
Modified Files:
src/Main/viewer.cxx
2009-03-11 23:14:34 +01:00
frohlich
e51c8bdce9
Silence valgrind error.
...
Modified Files:
src/Main/viewer.cxx
2009-03-11 23:14:34 +01:00
mfranz
b57f623520
don't call change-only listeners at first trigger event
2009-03-11 23:14:34 +01:00
frohlich
b125315e50
Avoid SGLocation usage.
...
Again, the previous commit did not complete for some reason.
Modified Files:
configure.ac src/AIModel/AIBase.cxx
src/ATCDCL/AILocalTraffic.cxx src/FDM/Makefile.am
src/FDM/flight.hxx src/FDM/LaRCsim/LaRCsim.cxx
src/Main/Makefile.am src/Main/fg_init.cxx src/Main/main.cxx
src/Main/viewer.cxx src/Main/viewer.hxx
src/Scenery/tilemgr.cxx src/Scenery/tilemgr.hxx
2009-03-11 23:14:34 +01:00
frohlich
82b54e7a25
Avoid SGLocation usage.
...
Modified Files:
configure.ac src/AIModel/AIBase.cxx
src/ATCDCL/AILocalTraffic.cxx src/FDM/Makefile.am
src/FDM/flight.hxx src/FDM/LaRCsim/LaRCsim.cxx
src/Main/Makefile.am src/Main/fg_init.cxx src/Main/main.cxx
src/Main/viewer.cxx src/Main/viewer.hxx
src/Scenery/tilemgr.cxx src/Scenery/tilemgr.hxx
2009-03-11 23:14:34 +01:00
frohlich
30b05ee7a3
ompute some vectors from the current view when they are used.
...
Simplifies the update hell in the viewer a bit.
Modified Files:
src/Main/renderer.cxx src/Main/viewer.cxx src/Main/viewer.hxx
src/Time/tmp.cxx
2009-03-11 23:14:34 +01:00
frohlich
85be5659a7
Remove SGLocation based api.
...
Modified Files:
src/Scenery/tilemgr.cxx src/Scenery/tilemgr.hxx
2009-03-11 23:14:34 +01:00
frohlich
5f76fdd07a
Use the positon from the model placment.
...
Use SGGeod based apis in the scenery/tilemanager.
Remove ground query that is no longer used.
Modified Files:
src/Main/main.cxx
2009-03-11 23:14:33 +01:00
frohlich
f14b69f9e6
Use the position from the model placement.
...
Modified Files:
src/Sound/fg_fx.cxx
2009-03-11 23:14:33 +01:00
frohlich
6b72986b27
Use api's with objects instead of scalars.
...
Modified Files:
src/AIModel/AIAircraft.cxx
2009-03-11 23:14:33 +01:00
frohlich
6c0959468f
Use an AIEntity variable for the ground elevation instead of SGLocation.
...
Modified Files:
AIEntity.cxx AIEntity.hxx AILocalTraffic.cxx
2009-03-11 23:14:33 +01:00
frohlich
2229491ffe
Use new function.
...
Modified Files:
src/FDM/groundcache.cxx
2009-03-11 23:14:33 +01:00
frohlich
1845a95fd3
Add scenery functions working on SGGeod in place of SGLocation.
2009-03-11 23:14:33 +01:00
frohlich
55a978f2a8
Update groundcache api:
...
Make leaner interfaces to the groundcache.
Remove legacy interfaces.
Update users of them.
Add new query routines for 'nearest point' and 'body with given id'.
Modified Files:
src/FDM/flight.cxx src/FDM/flight.hxx src/FDM/groundcache.cxx
src/FDM/groundcache.hxx src/FDM/JSBSim/JSBSim.cxx
src/FDM/JSBSim/JSBSim.hxx src/FDM/YASim/FGGround.cpp
src/FDM/YASim/FGGround.hpp src/FDM/YASim/Gear.cpp
src/FDM/YASim/Gear.hpp src/FDM/YASim/Ground.cpp
src/FDM/YASim/Ground.hpp src/FDM/YASim/Model.cpp
2009-03-11 23:14:33 +01:00
frohlich
d2466d605f
Set the motion transform id in the collection step.
...
Modified Files:
src/FDM/groundcache.cxx
2009-03-05 10:52:03 +01:00
frohlich
b120d9dfb3
Casaba Halász: Fix some const warnings.
...
Modified Files:
src/FDM/YASim/Rotor.cpp src/FDM/YASim/Rotor.hpp
src/GUI/fonts.cxx
2009-03-05 10:52:03 +01:00
frohlich
8150f47155
Remove the StaticLeaf visitor methods.
...
Modified Files:
src/FDM/groundcache.cxx
2009-03-05 10:52:03 +01:00
frohlich
3afc7e0690
Move the velocity computations for aimodels into AIShip.
...
You should now be able to step on any ship with your model.
Modified Files:
src/AIModel/AICarrier.cxx src/AIModel/AIShip.cxx
src/AIModel/AIShip.hxx
2009-03-05 10:52:03 +01:00
frohlich
1708e43a39
Make initial use of the boundingvolumes for the ground cache.
...
Modified Files:
src/AIModel/AICarrier.cxx src/AIModel/AICarrier.hxx
src/FDM/flight.hxx src/FDM/groundcache.cxx
src/FDM/groundcache.hxx
2009-03-05 10:52:03 +01:00
frohlich
ff2e5d5999
Zap compiler warning.
...
Modified Files:
src/Main/options.cxx
2009-03-05 10:52:03 +01:00
frohlich
3efab8ddb8
Link with the bvh library. It is used from simgear up t o now.
...
Modified Files:
src/Main/Makefile.am
2009-03-05 10:52:03 +01:00
durk
321706a007
Remove stray debug statement.
2009-03-05 10:52:03 +01:00
durk
c7e9c7a610
Some initial code for AI Aircraft making use of SIDs. Current code is a bit
...
experimental: Only one SID per runway is supported, and the waypoints are
read from file at every request, which is not very efficient. The current
code is only executed when FlightGear is configured to use airport dynamics
data from the scenery repository, instead of the base package. Since the
latter is still the default, I believe that this will provide enough safe-
guarding to commit SID/STAR support in small, incremental steps.
Next step will be buffering and support for multiple departure routes per
runway.
2009-03-05 10:52:03 +01:00
torsten
78e45727d0
Added support for <condition> elements under <enable> elements.
...
The old <prop> and <value> elements are still supported but ignored, if a <condition> element exists.
Also for the DigitalFilter
2009-03-05 10:52:03 +01:00
torsten
3f0e9b0161
Added support for <condition> elements under <enable> elements.
...
The old <prop> and <value> elements are still supported but ignored, if a <condition> element exists.
2009-03-05 10:52:02 +01:00
curt
f3b750fbc9
Read remote gps messages back and drive panel CDI and to/from flag.
2009-03-05 10:52:02 +01:00
frohlich
fc35624a4f
Use that static material function instead of the member one.
...
Modified Files:
src/FDM/groundcache.cxx src/Scenery/scenery.cxx
2009-02-27 23:42:34 +01:00
andy
4a683bed1e
"min throttle" tunable from Maik:
...
Background are problems modeling the rotax 912 engine. The idle speed
of the real engine is about half of the speed I could achieve with the
default minimum manifold pressure. While on ground I can switch off
the engine by pulling the throttle. The audible difference between the
different minimum idle speed (real vs. simulated) is extreme. With the
patch I get quite realistic sound. For the rotax engine I use
min-throttle="0.05" which is half of the former default value.
2009-02-27 23:42:33 +01:00
andy
8b98937e4d
Patch from Maik: as helijah found out, there was a bug within the rotor simulation.
2009-02-27 23:42:33 +01:00
fredb
1d4aaa2f0d
Compile with VS2005 in debug mode
2009-02-22 23:52:17 +01:00
mfranz
83edcb2949
add /sim/time/real/ (local machine time) analog to /sim/time/utc/
...
localtime() is once commented out in simgear/io/sg_binobj.cxx and
a warning says the it can screw up sim time. This is only because
localtime() isn't thread-safe (and its thread-safe cousin localtime_r()
isn't portable). As long as all timing is done in the main thread
(which is the case) there should be no problem. Otherwise we'd have
to implement a simple mutex locked wrapper.
2009-02-16 00:56:44 +01:00
durk
d24fe19914
One step further toward better integration of AI and ATC systems.
...
* Changed the runway XX. ATC message to actually report the real
designated departure runway
* In case of multiple active runways, select the one with a heading that is
closest to the direction of the ultimate departure destination / lines up
with the arrival path.
2009-02-16 00:56:44 +01:00
Tim Moore
050221c306
Merge branch 'topic/gcintersect' into next
2009-02-16 00:16:06 +01:00
Tim Moore
c59d30febb
Fix off-by-one problem in new ground intersection code
2009-02-16 00:11:46 +01:00
Tim Moore
1e776b903f
Merge branch 'topic/tape' into maint
2009-02-13 13:44:31 +01:00
Tim Moore
f9de92f53d
merging in topic/makej
...
Merge branch 'topic/makej' into next
* topic/makej:
get make -j to work
2009-02-13 12:36:06 +01:00
Tim Moore
28337e84fa
get make -j to work
2009-02-13 12:33:23 +01:00
Tim Moore
8be4e97f54
Merge branch 'topic/gcintersect' into next
2009-02-13 10:18:42 +01:00
mfranz
0bc3ec940d
make resize margin smaller
2009-02-13 10:18:20 +01:00
mfranz
880533037a
call puaLargeInput's checkKey() if active (fixes ctrl-c)
2009-02-13 10:18:17 +01:00
Tim Moore
d5a893589c
Use OSG polytope intersector to fill ground cache
...
This gets rid of a lot of messy code. Although the performance is about
the same as the old code, there is the possibility of a big performance
boost if/when the polytope intersector is taught about KD trees.
2009-02-13 09:47:31 +01:00
mfranz
f3ba7a3bd4
- pass return values in set{,Bool,Int,Double}Value() and setprop()
...
- make some char* "const" to silence warnings
This removes the warning that (rarely) occurred if one wrote to a
write protected property with setprop(). While this was a useful
hint, it needlessly floods the terminal if one protected a property
intentionally. (Consider to add an SG_DEBUG warning instead.) It's
now the caller's job to check for the result if it actually cares.
2009-02-10 00:22:16 +01:00
durk
916240693f
Some further work toward adding more AI/ATC messages. This patch provides
...
some prepratory work for assigning different operations to different
frequencies. It also returns a stub for returning an ATIS message ID.
Currently, the ATIC information ID is hardcoded to "Sierra", which needs
to be replaced by a dynamic ID once ATIS services are fully integrated
with the new trafficcontrol code. At least, it's marginally more realistic
then the previous information XX. :-).
2009-02-10 00:22:16 +01:00
durk
6b2dff5c83
BUGFIX: If/else bracket misplacement.
2009-02-10 00:22:16 +01:00
ehofman
9cd26d8b34
Sync. w. JSBSim CVS
2009-02-06 22:40:10 +01:00
Tim Moore
1e71177e7c
Merge branch 'topic/tape' into next
2009-02-06 15:44:51 +01:00
Tim Moore
3e37d81f1d
HUD::Tape: avoid floating point exception
2009-02-06 15:44:07 +01:00
Tim Moore
157eb857ef
Merge branch 'topic/multiplayer' into next
2009-02-06 12:18:09 +01:00
Tim Moore
0cbfd8bdb5
MP cleanup
...
Expand the message union to provide member functions that return pointers into
the message buffer.
2009-02-06 11:59:40 +01:00
Tim Moore
e83caa6321
Fix various mp bugs.
...
In multiplaymgr.cxx:
The length of a string property that is too big was written out in the message
even though the string was truncated. Also, it was possible to overrun the
message buffer.
In incoming messages, null-terminate the callsign to prevent any funny
business. Don't believe invalid string lengths. Turn the warning about unknown
properties from a warning into info; there are too many buggy clients out there,
not to mention people who add their own MP properties (hi vivian :)
2009-02-06 08:50:14 +01:00
curt
67c4eec677
Add analog output support to the ATC hardware interface.
2009-02-04 23:51:22 +01:00
mfranz
4b5353d396
make default model configurable (default: Models/Geometry/glider.ac)
...
This allows to set Models/Geometry/null.ac or something that doesn't
look bad in multiplayer for both fast and slow speeds, for example
the harrier.
2009-02-04 23:51:22 +01:00
Tim Moore
43c47f3823
Merge branch 'maint' into next
2009-02-02 00:59:18 +01:00
mfranz
d9e9331422
do_save: s/reading/writing/ in the error message
2009-02-02 00:59:05 +01:00
mfranz
46d381cc87
x/y/z offsets are in m, not deg
2009-02-02 00:58:01 +01:00
mfranz
ec03d4ce01
move <text> before <property> part, so that <format>s are applied initially
2009-02-02 00:58:01 +01:00
durk
9a19c238a9
And some more cleanup.
2009-02-02 00:58:00 +01:00
fredb
11d18d3e5f
Support --fg-root in fgjs
2009-02-02 00:58:00 +01:00
durk
7ad2bee1a8
Brian Schack: Patch to the atlas protocol that allows nav1 &2 frequencies
...
and radials, as well the selected ADF frequency to be transmitted to Atlas
DT: Two minor modifications to the adf part to make it work, and some
testing.
2009-02-02 00:58:00 +01:00