James Turner
358fb70ee0
Catch XML errors parsing traffic files
...
Sentry-Id: FLIGHTGEAR-EQ
2020-10-25 20:14:10 +00:00
Scott Giese
7b914bc5fb
Removed unreachable code
2020-08-29 11:20:40 -05:00
Scott Giese
04a5c37a55
Memory Leak - Fixed
...
60,200,752 (59,468,656 direct, 732,096 indirect) bytes in 285,907 blocks are definitely lost in loss record 15,499 of 15,501
2020-08-07 12:28:15 -05:00
Scott Giese
75e28368ea
Memory Leak: 57 MB
...
60,200,752 (59,468,656 direct, 732,096 indirect) bytes in 285,907 blocks are definitely lost in loss record 15,499 of 15,501
2020-08-06 22:01:15 -05:00
James Turner
4a568a42e4
Tweak a log-level
2020-06-25 11:03:08 +01:00
James Turner
4e12748b8c
Fix some compiler warnings
2020-06-19 10:46:01 +01:00
legoboyvdlp R
18c0613762
Replace activeTraffic iterations with a standard function
2020-04-30 16:22:59 +01:00
legoboyvdlp R
c789687da0
Formatting, change single-use pointers to std::unique_ptr
2020-04-30 16:22:59 +01:00
legoboyvdlp R
86dae35b37
Document atc_mgr, remove method from SchedFlight
2020-04-30 16:22:59 +01:00
legoboyvdlp R
4af75c4666
ATC / AI subsystem: replace iostream with SG_LOG() and make new function in SchedFlight that will create a new scheduled flight instance
2020-04-30 16:22:59 +01:00
gallaert
fb65f64342
Replace BOOST_FOREACH by C++ 11 for range loop.
2020-04-12 14:40:36 +01:00
James Turner
42a8adb07e
Traffic: use new-style subsystem lookup
2020-04-04 08:06:15 +01:00
Erik Hofman
2d2d5dbb76
Switch to C++11 threads, mutexes and lock_guards. Switching to C++11 condition_variables requires some more thought.
2020-01-22 13:45:28 +01:00
Edward d'Auvergne
34a6cb3c74
SGSubsystem classes: Registration of all subsystems.
2019-07-01 14:51:32 +02:00
Edward d'Auvergne
d259c70560
SGSubsystem classes: Addition of staticSubsystemClassId() to all subsystems.
2019-07-01 14:51:32 +02:00
Edward d'Auvergne
7a6e63ddb9
SGSubsystem classes: Subsystem and subsystem group API declaration standardisation.
...
This is a cleanup commit.
2019-07-01 14:27:30 +02:00
Edward d'Auvergne
60a2444766
SGSubsystem classes: Whitespace standardisation of the declarations.
...
This is a clean up commit prior to the subsystem API standardisation to simplify
the diffs. It includes all SGSubsystem and SGSubsystemGroup derived classes.
2019-07-01 14:27:28 +02:00
Richard Harrison
8e1e6c8254
AI Traffic - better integration with terrasync.
...
- allow on demand update
new property traffic-manager/active indicating that AI Traffic is running
2019-04-07 09:00:01 +02:00
James Turner
c3cd7b3978
Remove public use of sglog()::would_log()
2018-12-14 15:41:53 +00:00
ThomasS
3dcac53952
camelCase identifier in code and hyphenated property names. Suffix "-sec" is used because it complies to other timestamp properties in the property tree. Suffix "utc" is not used because the property just reflects an internal value used by the AI system. Whether it is UTC (currently it is) is up to the AI system and cannot be defined by the property name.
2018-04-24 09:54:35 +02:00
ThomasS
94f82c47ef
Additional departure airport/time and arrival airport/time information in the property tree for AI aircraft.
2018-04-24 06:20:28 +02:00
James Turner
561e39e94f
Quiet a log message.
2017-09-26 16:52:48 +01:00
James Turner
66eb3d2690
Use a unique_ptr to manage FGAIFlightPlan
2017-09-21 18:37:14 +01:00
James Turner
3653508412
Build- and run-time concept of developer mode.
...
Make a single Cmake value to expose the build type to code, and use
this to default a run-time ‘developer-mode’ property, which can be
over-ridden from the command line.
Use this to drive the different warning levels. Policies subject to
review, especially whether nightly builds should default to
developer mode or not.
2017-02-27 23:37:59 +00:00
Florent Rougon
8f24de831d
Adapt includes according to relocation of SimGear's iostreams-related files
...
This change is the logical counterpart of SimGear's change from commit
79f869a7f32910197be72b21f6489fbbba02c836 that moved the following files
from simgear/misc to simgear/io/iostreams:
gzcontainerfile.cxx
gzcontainerfile.hxx
gzfstream.cxx (formerly zfstream.cxx)
gzfstream.hxx (formerly zfstream.hxx)
sgstream.cxx
sgstream.hxx
sgstream_test.cxx
2017-02-12 21:30:51 +01:00
Torsten Dreyer
994ea1674b
replace many auto_ptr by unique_ptr
2016-11-14 22:20:46 +01:00
James Turner
7f3fe584e3
Update for path-aware easyXML API
2016-07-03 23:43:39 +01:00
James Turner
6d0c2070fd
Use future-proof SGPath APIs.
...
Remove uses of .str(), .c_str() and some other methods of SGPath.
Pass SGPath directly where possible, or explicitly convert to the
appropriate 8-bit encoding.
2016-06-28 10:08:38 +01:00
James Turner
16814800ce
Use Paths instead of strings.
2016-06-22 17:36:05 +01:00
James Turner
ef1fd62b4b
Fix an unused variable in non-developer-warning mode.
2016-01-12 12:50:58 -06:00
James Turner
540d4c2111
Use SGTime instead of time() in traffic/AI code
...
- avoids manual handling of /sim/time/warp in many places
2016-01-05 23:19:28 -06:00
Erik Hofman
335fda719d
Prevent two possible nan's
2015-12-29 14:55:22 +01:00
James Turner
7644c74df9
Better Traffic performance data warnings.
2015-12-22 15:15:27 -06:00
James Turner
865bb365ed
Trying to bullet-proof the traffic code.
2015-12-18 21:42:22 -08:00
James Turner
8877b442f8
ATC/Traffic doesn’t crash reset.
...
- remove some global headers from AI headers, to avoid pollution
- change how ATC owns the ‘player’ FGAIAircraft so reset works
- ensure AIAircraft controllers are cleared on unbind for reset
2015-12-11 12:11:59 -06:00
Durk Talsma
8ffbca1b58
Workaround for problem with SGPath: create_dir() does not create the last subdirectory when passed a dir-path only.
2015-05-14 17:41:58 +02:00
Torsten Dreyer
89a7516c62
Fix hangs while scenery-loading
...
don't start the traffic manager before the FDM is initialized
The FDM needs the scenery loaded and will wait for all PagedLOD Nodes
to appear if they are close (less than 1000m) to our initial position.
That's required for scenery models but not for AI traffic.
2014-12-03 10:29:30 +01:00
James Turner
2a354e224c
Make Traffic-via-terrasync conditional
...
GUI dialog already set the property, just need to pick it up.
2014-01-15 22:01:02 +00:00
James Turner
5cf8157a66
Security: more conservative dir permission masks.
...
Use 0755 instead of 077 everywhere we create a directory.
2013-12-19 14:53:39 +00:00
bcoconni
139af0026f
Synchronized FG with the removal of 'using std::*' in simgear's easyxml
2013-11-14 22:07:50 +00:00
James Turner
f6fafffeb5
Initial hacking on terra-sync of traffic files.
2013-10-17 17:33:30 +01:00
James Turner
386d87e098
Cleanup exit handling.
...
Replace many lingering calls to exit() from the code,
replacing most with exception throws, which can be
caught by the existing mechanisms.
Update the option-parsing code to return an explicit
value indicating what to do (e.g., exit status to return
to the shell).
2013-10-15 22:16:50 +01:00
James Turner
7454d4cc4d
Tweak AI Traffic model loading.
...
Traffic with models in additional aircraft dirs or data dirs is
displayed correctly now.
2013-09-18 12:08:20 +01:00
James Turner
33425c671d
Support for multiple data dirs.
2013-09-17 07:47:58 +01:00
Tom Paoletti
81cd33e2fa
Performance optimization: empty() instead of size()>0
...
empty() is guaranteed to be constant complexity for both vectors and lists, while size() has linear complexity for lists.
2013-08-19 09:01:59 +01:00
James Turner
5d9faee463
More unused vars caught by Xcode.
2013-07-04 20:56:04 +01:00
Thomas Geymayer
45e3b7e2d1
Clean up/prepare for porting NasalPositioned to cppbind
2013-03-04 16:31:37 +01: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
ThorstenB
1c6643d7ac
traffic: more pass by reference + member init
2012-11-25 16:41:10 +01:00
ThorstenB
b682ae91d6
Traffic: preemptable flight scheduling
...
FGAISchedule::update can be time consuming. Preempt when necessary to
avoid simulation lags, and call it every sim iteration, until the flight
plan is complete.
2012-11-25 16:41:10 +01:00