]> git.mxchange.org Git - flightgear.git/log
flightgear.git
15 years agoreturn the len of the string
ehofman [Thu, 4 Jun 2009 11:03:27 +0000 (11:03 +0000)]
return the len of the string

15 years ago- METAR winds have magnetic heading
torsten [Thu, 4 Jun 2009 09:59:29 +0000 (09:59 +0000)]
- METAR winds have magnetic heading
- memory leak in read_table()

15 years agoMore default setup for FG_ROOT
frohlich [Thu, 4 Jun 2009 04:30:51 +0000 (04:30 +0000)]
More default setup for FG_ROOT

Modified Files:
fgviewer/Makefile.am fgviewer/fgviewer.cxx

15 years agothat cleanup code was not working
torsten [Wed, 3 Jun 2009 22:18:58 +0000 (22:18 +0000)]
that cleanup code was not working

15 years agoAdd some camera manipulators to the viewer.
frohlich [Wed, 3 Jun 2009 19:31:59 +0000 (19:31 +0000)]
Add some camera manipulators to the viewer.
Set up more of the flightgear internal environment.

Modified Files:
  utils/fgviewer/fgviewer.cxx

15 years agoAdd variable winds (direction and gusts) for the boundary layer if defined in METAR.
torsten [Wed, 3 Jun 2009 16:29:58 +0000 (16:29 +0000)]
Add variable winds (direction and gusts) for the boundary layer if defined in METAR.

15 years agocalculate internal properties only once on read()
torsten [Wed, 3 Jun 2009 16:19:27 +0000 (16:19 +0000)]
calculate internal properties only once on read()

15 years agoDave LUFF: bugfixes; leave dlg with crsr button; heading info; cleanup
mfranz [Tue, 2 Jun 2009 14:59:38 +0000 (14:59 +0000)]
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."

15 years agoDave LUFF: Fix buffer overrun with longer runways
mfranz [Mon, 1 Jun 2009 10:32:44 +0000 (10:32 +0000)]
Dave LUFF: Fix buffer overrun with longer runways

15 years agoUpgrade to JSBSim 1.0-prerelease
ehofman [Mon, 1 Jun 2009 08:52:34 +0000 (08:52 +0000)]
Upgrade to JSBSim 1.0-prerelease

15 years agoSave more than 20 percent execution time by avoiding multiple calculation of properties.
torsten [Sun, 31 May 2009 10:18:45 +0000 (10:18 +0000)]
Save more than 20 percent execution time by avoiding multiple calculation of properties.

15 years agoUpdate MSVC 7.1 projects
fredb [Sat, 30 May 2009 16:26:01 +0000 (16:26 +0000)]
Update MSVC 7.1 projects

15 years agoUpdate MSVC 7.1 projects
fredb [Sat, 30 May 2009 16:17:22 +0000 (16:17 +0000)]
Update MSVC 7.1 projects

15 years agonew command line option --metar="some metar"
torsten [Fri, 29 May 2009 10:26:35 +0000 (10:26 +0000)]
new command line option --metar="some metar"
new handling of real-weather-fetch
major code cleanup

15 years agosmall fixes
ehofman [Mon, 25 May 2009 11:51:08 +0000 (11:51 +0000)]
small fixes

15 years agoMake it compile with gcc-4.4.0
frohlich [Mon, 25 May 2009 05:03:27 +0000 (05:03 +0000)]
Make it compile with gcc-4.4.0

Modified Files:
utils/GPSsmooth/UGear_command.cxx

15 years agoBetter error message when materials cannot be loaded.
frohlich [Mon, 25 May 2009 05:02:11 +0000 (05:02 +0000)]
Better error message when materials cannot be loaded.

Modified Files:
fgviewer.cxx

15 years agoFix cacheFree
ehofman [Sun, 24 May 2009 14:23:59 +0000 (14:23 +0000)]
Fix cacheFree

15 years ago * Implement a node cache that can be enabled at compile time.
ehofman [Sun, 24 May 2009 14:09:46 +0000 (14:09 +0000)]
  * Implement a node cache that can be enabled at compile time.
    the node cache prevents recursively walking the xml tree over and over
    again to find the specified nodes.

15 years agojean pellotier: test for positions near the pole was in fact a test for positions...
torsten [Sat, 23 May 2009 12:48:18 +0000 (12:48 +0000)]
jean pellotier: test for positions near the pole was in fact a test for positions near the equator.

15 years agoAdd osg stats and other usefull stuff.
frohlich [Sat, 23 May 2009 12:04:54 +0000 (12:04 +0000)]
Add osg stats and other usefull stuff.

Modified Files:
utils/fgviewer/fgviewer.cxx

15 years agoAvoid division by zero.
frohlich [Sat, 23 May 2009 12:02:23 +0000 (12:02 +0000)]
Avoid division by zero.

Modified Files:
src/Instrumentation/inst_vertical_speed_indicator.cxx

15 years agodon't write past end of buffer
mfranz [Sat, 23 May 2009 11:13:29 +0000 (11:13 +0000)]
don't write past end of buffer

15 years agoUpdate MSVC 7.1 projects - Add fgviewer to the solution
fredb [Sat, 23 May 2009 06:50:58 +0000 (06:50 +0000)]
Update MSVC 7.1 projects - Add fgviewer to the solution

15 years agoUpdate MSVC 7.1 projects - Remove useless directories in link command
fredb [Sat, 23 May 2009 06:50:14 +0000 (06:50 +0000)]
Update MSVC 7.1 projects - Remove useless directories in link command

15 years agoAdd a new tool called fgviewer.
frohlich [Fri, 22 May 2009 18:23:01 +0000 (18:23 +0000)]
Add a new tool called fgviewer.

Modified Files:
configure.ac utils/Makefile.am
Added Files:
  utils/fgviewer/.cvsignore utils/fgviewer/Makefile.am
utils/fgviewer/fgviewer.cxx

15 years agoAdapt to simgears changes.
frohlich [Fri, 22 May 2009 18:20:58 +0000 (18:20 +0000)]
Adapt to simgears changes.
The season is already checked by the properties.

Modified Files:
src/Main/fg_init.cxx

15 years agoClouds in scenario none and metar were above 0ft not above ground elevation, which...
torsten [Fri, 22 May 2009 18:19:25 +0000 (18:19 +0000)]
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.

15 years agowrong value for station_elevation_ft, meters != feet
torsten [Fri, 22 May 2009 09:42:15 +0000 (09:42 +0000)]
wrong value for station_elevation_ft, meters != feet

15 years agoFunctions should always return a value
fredb [Thu, 21 May 2009 14:49:57 +0000 (14:49 +0000)]
Functions should always return a value

15 years agoFunctions should always return a value
fredb [Thu, 21 May 2009 14:44:55 +0000 (14:44 +0000)]
Functions should always return a value

15 years agocheck for dt <= 0 aka paused sim
torsten [Wed, 20 May 2009 09:24:56 +0000 (09:24 +0000)]
check for dt <= 0 aka paused sim

15 years agoAdd --enable-fpe option to cause a trap on floating point exceptions
timoore [Tue, 19 May 2009 22:14:35 +0000 (22:14 +0000)]
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.

15 years agoFix two sources of floating point exceptions
timoore [Tue, 19 May 2009 22:14:04 +0000 (22:14 +0000)]
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.

15 years agoadded support for the <abs> element
torsten [Mon, 18 May 2009 20:34:43 +0000 (20:34 +0000)]
added support for the <abs> element

15 years agosupport
torsten [Mon, 18 May 2009 20:27:57 +0000 (20:27 +0000)]
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

15 years agoFix Carriers without catapults and wires.
frohlich [Sat, 16 May 2009 17:39:23 +0000 (17:39 +0000)]
Fix Carriers without catapults and wires.

Modified Files:
src/AIModel/AICarrier.cxx

15 years agoRemove few warnings
fredb [Sat, 16 May 2009 09:40:48 +0000 (09:40 +0000)]
Remove few warnings

15 years agoUpdate MSVC 7.1 projects
fredb [Sat, 16 May 2009 09:39:41 +0000 (09:39 +0000)]
Update MSVC 7.1 projects

15 years agoFunctions should always return a value
fredb [Sat, 16 May 2009 09:39:10 +0000 (09:39 +0000)]
Functions should always return a value

15 years agoturn a few #include paths from the "foo" form to <foo>
mfranz [Thu, 14 May 2009 20:55:09 +0000 (20:55 +0000)]
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.)

15 years agouse safer and faster property methods instead of creating property
mfranz [Thu, 14 May 2009 20:48:31 +0000 (20:48 +0000)]
use safer and faster property methods instead of creating property
paths via snprintf+strncat+absolute paths every time

15 years agouse safer and faster property methods instead of creating property
mfranz [Tue, 12 May 2009 20:51:02 +0000 (20:51 +0000)]
use safer and faster property methods instead of creating property
paths via snprintf+strncat+absolute paths every time (more to come)

15 years agotestair.cxx is a 21 lines long, obsolete test application. After removing
mfranz [Tue, 12 May 2009 15:07:06 +0000 (15:07 +0000)]
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; }

15 years agofixes for compiling without syntax validation.
ehofman [Mon, 11 May 2009 08:46:03 +0000 (08:46 +0000)]
fixes for compiling without syntax validation.

15 years agoSync. with JSBSim CVS
ehofman [Sun, 10 May 2009 12:23:35 +0000 (12:23 +0000)]
Sync. with JSBSim CVS

15 years agoAllows multi samples > 1
fredb [Fri, 8 May 2009 16:45:49 +0000 (16:45 +0000)]
Allows multi samples > 1

15 years agoSkip one recursive function call for leaf nodes at the cost of a bit of code size...
ehofman [Fri, 8 May 2009 09:10:56 +0000 (09:10 +0000)]
Skip one recursive function call for leaf nodes at the cost of a bit of code size. Fix comment support in some cases

15 years agoCompile xmlgrep with MSVC 7.1
fredb [Thu, 7 May 2009 20:25:27 +0000 (20:25 +0000)]
Compile xmlgrep with MSVC 7.1

15 years agomore small fixes
ehofman [Thu, 7 May 2009 12:23:30 +0000 (12:23 +0000)]
more small fixes

15 years agoleak fixes
mfranz [Thu, 7 May 2009 10:27:16 +0000 (10:27 +0000)]
leak fixes

15 years agofix leaks; make destructors virtual
mfranz [Wed, 6 May 2009 18:55:20 +0000 (18:55 +0000)]
fix leaks; make destructors virtual

15 years agoFix broken ATC/AI-Frequencies dialog.
torsten [Wed, 6 May 2009 17:26:05 +0000 (17:26 +0000)]
Fix broken ATC/AI-Frequencies dialog.

15 years ago * Various bugfixes, required to get fgrun working
ehofman [Wed, 6 May 2009 14:29:12 +0000 (14:29 +0000)]
  * Various bugfixes, required to get fgrun working
  * add testxml as sort of a stress test application

15 years agoVarious bugfixes. This allows me to run fgrun on all FlightGear aircraft in the base...
ehofman [Tue, 5 May 2009 12:50:00 +0000 (12:50 +0000)]
Various bugfixes. This allows me to run fgrun on all FlightGear aircraft in the base packageusing this xml code.

15 years agoRemoved hardcoded performance data.
durk [Tue, 5 May 2009 10:36:38 +0000 (10:36 +0000)]
Removed hardcoded performance data.

15 years agoMerge branch 'maint' into next
Tim Moore [Mon, 18 May 2009 10:23:33 +0000 (12:23 +0200)]
Merge branch 'maint' into next

15 years agoMake flightgear compile with todays osg trunk.
frohlich [Sat, 16 May 2009 08:16:20 +0000 (08:16 +0000)]
Make flightgear compile with todays osg trunk.

Modified Files:
src/Scenery/SceneryPager.cxx src/Scenery/SceneryPager.hxx
src/Scenery/tilemgr.cxx

15 years agoAICarrier fixes from Vivian
Tim Moore [Mon, 4 May 2009 14:16:00 +0000 (16:16 +0200)]
AICarrier fixes from Vivian

15 years agoFrom Vivian: add a tunable launchbar acceleration, to better support some
andy [Fri, 1 May 2009 16:11:23 +0000 (16:11 +0000)]
From Vivian: add a tunable launchbar acceleration, to better support some
of the Jets on the catapult.

15 years agoallow C++ to include the header
ehofman [Fri, 1 May 2009 08:05:37 +0000 (08:05 +0000)]
allow C++ to include the header

15 years agogeneral cleanups.
ehofman [Fri, 1 May 2009 08:00:17 +0000 (08:00 +0000)]
general cleanups.

15 years agoAdd support for CDATA
ehofman [Thu, 30 Apr 2009 19:26:57 +0000 (19:26 +0000)]
Add support for CDATA

15 years agoFix an off by one problem.
ehofman [Thu, 30 Apr 2009 13:56:50 +0000 (13:56 +0000)]
Fix an off by one problem.

15 years agoa small cleanup and make Windows simple_mmap function return the proper value if...
ehofman [Wed, 29 Apr 2009 07:05:22 +0000 (07:05 +0000)]
a small cleanup and make Windows simple_mmap function return the proper value if an error was detected.

15 years ago * add printxml, an example utility that walks an xml-tree and prints it
ehofman [Tue, 28 Apr 2009 16:47:48 +0000 (16:47 +0000)]
  * add printxml, an example utility that walks an xml-tree and prints it
    contenst

15 years ago * changes to the code to allow walking the xml-tree using "*" as a node name
ehofman [Tue, 28 Apr 2009 13:59:26 +0000 (13:59 +0000)]
  * changes to the code to allow walking the xml-tree using "*" as a node name

15 years agobrighten te sky color towards the sun at dusk and dawn
ehofman [Mon, 27 Apr 2009 20:26:28 +0000 (20:26 +0000)]
brighten te sky color towards the sun at dusk and dawn

15 years agoOuch, forgot to allocate memory for the root node in xmlInitBuffer. Update xmlgrep...
ehofman [Mon, 27 Apr 2009 19:27:29 +0000 (19:27 +0000)]
Ouch, forgot to allocate memory for the root node in xmlInitBuffer. Update xmlgrep to allow compiling it using xmlInitBuffer instead of xmlOpen

15 years agozero is a valid file descriptor, use -1 instead and better not use 'open' as a variab...
ehofman [Mon, 27 Apr 2009 17:03:16 +0000 (17:03 +0000)]
zero is a valid file descriptor, use -1 instead and better not use 'open' as a variable name.

15 years ago * add xmlInitBuffer() for processing of a preallocated buffer
ehofman [Mon, 27 Apr 2009 16:54:46 +0000 (16:54 +0000)]
  * add xmlInitBuffer() for processing of a preallocated buffer
  * add xmlErrorGetColumnNo to get the column number of the syntax error
  * pass an error at a higher level to lower levels
  * detect a number of extra syntax errors

15 years agofix a buffer overflow
ehofman [Mon, 27 Apr 2009 11:50:08 +0000 (11:50 +0000)]
fix a buffer overflow

15 years agocatch one more syntax error and remove a stale debug printf
ehofman [Mon, 27 Apr 2009 09:45:59 +0000 (09:45 +0000)]
catch one more syntax error and remove a stale debug printf

15 years agojust in case that someone does not like ridge lift at all, set the property
torsten [Sun, 26 Apr 2009 09:18:13 +0000 (09:18 +0000)]
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.

15 years ago * add support for comments inside xml-tags, e.g.: <test><!-- --></test>
ehofman [Sun, 26 Apr 2009 09:05:22 +0000 (09:05 +0000)]
  * add support for comments inside xml-tags, e.g.: <test><!-- --></test>

15 years ago * add support for self-contained tags like <test/>
ehofman [Sat, 25 Apr 2009 09:54:28 +0000 (09:54 +0000)]
  * add support for self-contained tags like <test/>
  * fix a problem if a file could not be mmaped
  * add a few comments which hopefully makes the code easier to understand
  * code cleanups

15 years agoone final(?) cleanup:
torsten [Fri, 24 Apr 2009 20:38:05 +0000 (20:38 +0000)]
one final(?) cleanup:
- no need for sign() to be a class member
- rename local ground elevation variable and make it method local

15 years ago- avoid duplicate computations
torsten [Fri, 24 Apr 2009 13:52:30 +0000 (13:52 +0000)]
- 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

15 years agoMelchior FRANZ: fix array subscript is above array bounds
torsten [Fri, 24 Apr 2009 10:11:10 +0000 (10:11 +0000)]
Melchior FRANZ: fix array subscript is above array bounds

15 years agoPatrice Poly: correction for the lee side
torsten [Fri, 24 Apr 2009 08:20:48 +0000 (08:20 +0000)]
Patrice Poly: correction for the lee side
attempt to fix nan issue

15 years agoUpdate MSVC 7.1 projects - add ridge lift
fredb [Mon, 20 Apr 2009 20:18:15 +0000 (20:18 +0000)]
Update MSVC 7.1 projects - add ridge lift

15 years agoRemove spurious semi-colon
fredb [Mon, 20 Apr 2009 20:17:34 +0000 (20:17 +0000)]
Remove spurious semi-colon

15 years agofix a case where a single-element root path (e.g. /printer) would not pass xmlNodeGetPath
ehofman [Mon, 20 Apr 2009 19:56:09 +0000 (19:56 +0000)]
fix a case where a single-element root path (e.g. /printer) would not pass xmlNodeGetPath

15 years agorestoring original copyright of David Culp
torsten [Mon, 20 Apr 2009 18:32:41 +0000 (18:32 +0000)]
restoring original copyright of David Culp

15 years ago * Setting an error when a node isn't found isn't he best way,
ehofman [Mon, 20 Apr 2009 17:05:03 +0000 (17:05 +0000)]
  * Setting an error when a node isn't found isn't he best way,
    need to find another way to report that.
  * Fix a bug where an error was incorrectly set in xmlNodeCopyName

15 years ago * fix a problem where attributes or elements starting with the same letter
ehofman [Mon, 20 Apr 2009 16:46:39 +0000 (16:46 +0000)]
  * fix a problem where attributes or elements starting with the same letter
    sequence could give a false negative result
  * Add a 'clear' attribute to the xmlErrorGet functions that indicates whether
    the error should be cleared or not
  * detect more xml syntax errors

15 years agoImplementation of ridge lift from Patrice Poly based on an algorithm of Ian Forster...
torsten [Mon, 20 Apr 2009 14:20:05 +0000 (14:20 +0000)]
Implementation of ridge lift from Patrice Poly based on an algorithm of Ian Forster-Lewis

15 years agoerrno is a reserved macro in some compilers
fredb [Sat, 18 Apr 2009 22:20:50 +0000 (22:20 +0000)]
errno is a reserved macro in some compilers

15 years agoFix a typo.
ehofman [Sat, 18 Apr 2009 21:28:19 +0000 (21:28 +0000)]
Fix a typo.

15 years ago * Introduce a root-node that can hold extra information which is necessary
ehofman [Sat, 18 Apr 2009 21:25:23 +0000 (21:25 +0000)]
  * Introduce a root-node that can hold extra information which is necessary
    for thread safety under windows
  * Add xmlErrorGetString, xmlErrorGetLineNo for syntax error detetction
  * Add xmlErrGetNo for detection of, and clearing the last error

15 years agoUpdate MSVC 7.1 projects - add xmlgrep
fredb [Sat, 18 Apr 2009 14:18:26 +0000 (14:18 +0000)]
Update MSVC 7.1 projects - add xmlgrep

15 years agoCompile xmlgrep with MSVC 7.1
fredb [Sat, 18 Apr 2009 14:13:13 +0000 (14:13 +0000)]
Compile xmlgrep with MSVC 7.1

15 years ago * Rename xmlGetNode functions to xmlNodeGet for better consistancy
ehofman [Thu, 16 Apr 2009 19:03:22 +0000 (19:03 +0000)]
  * Rename xmlGetNode functions to xmlNodeGet for better consistancy
  * likewise for xmlCopyNode en xmlCompareNode
  * add xmlAttributeGetDouble, xmlAttributeGetInt, xmlAttributeGetString
    xmlAttributeCopyString and xmlAttributeCompareString functions
  * fix some small bugs and problems along the way
  * add support for filtering on attribute value in xmlgrep

15 years agoSync. w. JSBSim: fix a few unexpected glitches
ehofman [Thu, 16 Apr 2009 06:48:20 +0000 (06:48 +0000)]
Sync. w. JSBSim: fix a few unexpected glitches

15 years agoBe compatible with newer versions of tail and gnuplot.
curt [Wed, 15 Apr 2009 18:20:29 +0000 (18:20 +0000)]
Be compatible with newer versions of tail and gnuplot.

15 years agonewest gnuplot doesn't like the "set terminal png color" command,
curt [Mon, 13 Apr 2009 18:41:31 +0000 (18:41 +0000)]
newest gnuplot doesn't like the "set terminal png color" command,
change to "set terminal png"

15 years agoSync. w. JSBSim CVS
ehofman [Mon, 13 Apr 2009 11:47:57 +0000 (11:47 +0000)]
Sync. w. JSBSim CVS

15 years agoRemove unused code
ehofman [Sun, 12 Apr 2009 11:43:06 +0000 (11:43 +0000)]
Remove unused code

15 years agoFix a problem with node traversal masks and paged model loading that
frohlich [Sun, 12 Apr 2009 09:53:05 +0000 (09:53 +0000)]
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

15 years agoLet the fog color transition into the sky dome to give a more natural effect
ehofman [Sat, 11 Apr 2009 12:28:23 +0000 (12:28 +0000)]
Let the fog color transition into the sky dome to give a more natural effect