Torsten Dreyer
1ad81ee94e
Silence some warnings
...
AIBallistic: wrong order of member initialization
Other: unused variables
2015-05-29 10:27:25 +02:00
onox
69b055db0a
Revert to old behavior of life randomness
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
46f60b73b3
submodel: Move <yaw-offset> and <pitch-offset> to <offsets>
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
79ea238e1d
submodel: Support <offsets> with <x-m>, <y-m>, and <z-m>
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
d4b4e07c4d
submodel: Use quaternions instead of trigonometry
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
68a53a7546
submodel: Fix incorrect yaw and pitch offsets
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
0ece93074f
submodel: Add random error for azimuth and elevation
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
1b6326e057
submodel: Fix randomness of Cd and life
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
e049a9ab03
submodel: Remove FGSubmodelMgr::setSubData()
...
Signed-off-by: onox <denkpadje@gmail.com>
2015-05-28 10:43:06 +02:00
onox
9f452408c7
Small refactoring of Torsten's refactoring
...
Signed-off-by: onox <denkpadje@gmail.com>
Signed-off-by: Erik Hofman <erik@ehofman.com>
2015-05-18 12:35:00 +02:00
Torsten Dreyer
90622b6873
Small refactoring of the submodel patch from onox
...
Signed-off-by: onox <denkpadje@gmail.com>
Signed-off-by: Erik Hofman <erik@ehofman.com>
2015-05-18 12:34:56 +02:00
onox
0e28621051
Use InputValue for yaw-offset and pitch-offset
...
Signed-off-by: onox <denkpadje@gmail.com>
Signed-off-by: Erik Hofman <erik@ehofman.com>
2015-05-18 12:34:52 +02:00
Durk Talsma
8e2d0d2a76
Reinstate the backbone of the "I" part of the Interactive traffic system.
2015-05-15 13:30:16 +02:00
Durk Talsma
dbde1f2232
Some preparatory work for reinstating a missing piece of code in the routing algorithm for the AI system.
2015-05-14 18:22:42 +02:00
Torsten Dreyer
92e6e25d33
Fix "Error in ground network. Failed to find first waypoint"
...
Fix provided by Jens Thoms Toerring, OK'ed from Durk
http://thread.gmane.org/gmane.games.flightgear.devel/77674
2015-04-21 13:05:41 +02:00
Torsten Dreyer
0758cfbd65
Conditionally enable hot for multiplayer models
...
originally from denk padje alias onox
2015-04-16 20:58:56 +02:00
James Turner
f2d6b76b13
Portability: Fix compile errors on MSVC (cmath)
...
From Scott (xDraconian)
2015-03-24 11:11:42 -05:00
portree_kid
ee63507f22
Code to stop loading of invalid flightplans
2015-02-12 22:09:45 +01:00
Torsten Dreyer
e46ab5faa3
Optionally use SCREEN_SIZE_PIXEL for LOD
...
This patch enables AIModels to use the size on the screen for LOD instead
of distance from eye point.
With /sim/rendering/static-lod/ai-range-mode-pixel set to true
/sim/rendering/static-lod/ai-detailed now contains the minimum size of the
model on the screen to be displayed. Values of 10-50 seem to make some sense.
2014-11-19 17:26:58 +01:00
Clément de l'Hamaide
41865b15c9
Improve <usage> tag feature
...
- Introduce a new LOD: ai-interior
- Load a <model> with <usage>interior</usage> on-demand
- Avoid to load the cockpit of players in MP
- Default LOD is 0.0 - 50.0 meters
2014-09-21 22:11:35 +02:00
Thomas Geymayer
c5c0a7dcf3
AIShip: remove duplicate property tie.
2014-07-12 11:54:47 +02:00
James Turner
876e81edbd
AIModels use PagedLOD
...
- allows AIModels to be unloaded by the Pager
- move AI models into the 'models' sub-branch of FGScenery
2014-02-24 19:43:20 +00:00
Christian Schmitt
ae8ddd04d9
[AIModel] Fix a crash when starting at the poles and reduce property reading
2014-02-05 17:51:28 +01:00
James Turner
80cc2ff8c3
Adjust fg-aircraft handling back to original style.
...
- startup code will warn and fix the alternate style
- man page now documents the option
2014-01-22 10:56:04 +00:00
Clément de l'Hamaide
695a9be75d
Use --fg-aircraft paths for AI model
...
Firstly search model in $fg-root/AI/ path,
if not found, search model in --fg-aircraft paths,
if not found, search model in $fg-root/Aircraft path
This commit should solve the complaint "I have an aircraft in a separate Aircraft/ folder
but during MP session other user are shown with the aircraft from the $fg-root/Aircraft path
instead of this behaviour I want to see the aircraft from my separate Aircraft/ folder"
2014-01-21 00:13:17 +01:00
James Turner
061154d7a6
Reset, fix Nasal timers added on shutdown.
2014-01-13 20:13:34 +00:00
James Turner
0940a33907
Use a real function to wrap isfinite differences.
...
Don't worry about compiler ability to inline the macro for the moment;
use a real function to ensure lookup is stable on different compilers.
2013-12-22 11:18:48 +00:00
James Turner
c717b70231
Support non-C99 mode in MSVC.
2013-12-21 15:31:27 +00:00
James Turner
b3dbfe21fe
Fix some warnings from new Xcode.
...
finite is deprecated, use C99 isfinite as recommended.
2013-12-20 12:42:12 +00:00
janodesbois
71fa329f27
velocities/uBody got a capitale B forgot this in mp tree, maybe it would be better to male it it lower case?
2013-12-04 21:13:09 +01:00
James Turner
b4b0d635bd
Reset: AIbase, drop references
2013-11-16 12:10:53 +00:00
James Turner
ea822a99e1
Fix some warnings identified by Clang
...
_ unused private members. Removed in most cases, commented
out in a couple of cases where it feels as if the code might be used in the future.
2013-11-16 09:41:33 +00:00
James Turner
0751556aab
Reset: remove commands
2013-11-12 22:47:46 +00:00
James Turner
e62a4f502a
Reset: AI shutdown unbinds AIbase instances.
2013-10-29 23:02:22 +00:00
janodesbois
f08ea4a7bb
velocities/u,v,wbody-fps are exposed in the property tree for the mp planes, extracted from motionInfo
2013-10-27 19:32:58 +01:00
James Turner
cc23e29ef0
Fix warning 'AI Aircraft without FlightPlan'
...
Remove the false warning when using AI Aircraft without a flightplan.
This is (it turns out) a supported use case.
2013-10-26 18:45:27 +01:00
James Turner
f5b352429c
Bug 1176, crash loading malformed scenario.
...
http://code.google.com/p/flightgear-bugs/issues/detail?id=1176
Don't crash if a scenario specifies a missing or invalid flightplan
(check the flightplan is valid before setting it)
2013-10-01 19:57:07 +01:00
James Turner
52e5a9abe8
Reduce amount of log output at level=debug.
2013-09-28 14:47:20 +01:00
James Turner
33425c671d
Support for multiple data dirs.
2013-09-17 07:47:58 +01:00
Christian Schmitt
9a7e32d4a9
fix uninitialized variable reported by valgrind
2013-09-15 15:09:43 +02:00
James Turner
38a373ba84
Display AI traffic route in map.
...
Add some helpers so MapWidget can show the
origin and destination of AIAircraft with a FlightPlan.
2013-09-14 12:17:33 +01:00
James Turner
be44fa45eb
Kill some defunct uses of side-slip property.
2013-07-29 22:15:23 +01:00
James Turner
0904017ec5
Couple more unused private vars killed off.
2013-07-27 14:49:27 +01:00
James Turner
5d9faee463
More unused vars caught by Xcode.
2013-07-04 20:56:04 +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
a65f24c137
Bug 1153, guard against no current waypoint.
...
This is a work-around, probably indicates some glitch in the traffic
module flight-plans. Avoid a crash, also refine the exception logic
so individual AI objects can fail.
2013-07-04 10:30:04 +01:00
James Turner
081240c4da
Issue #631 , reset scenarios on sim-reset
2013-06-20 00:24:33 +01:00
James Turner
c242809a3c
Fix for AIAircraft headings.
...
Nick Vatamaniuc: fix AI aircraft not updating waypoint headings when using custom flightplans.
(Commented out log-line following a non-parenthesised if() test causing problems)
2013-06-03 16:48:40 +01:00
James Turner
85bfd27af2
Non-sticky scenarios, simpler UX for everyone.
...
If you want a scenario in a particular session of the sim, ask for
it on the command line / config files, or enable in the GUI.
Note if you had previously 'sticky' scenarios in your autosave.xml, you
will still get them until you clean your autosave, or disable them in
the GUI.
2013-04-05 17:20:22 +01:00
James Turner
295ae6a650
Tweaks for run-time scenario toggling.
2013-04-02 18:00:31 +01:00