]> git.mxchange.org Git - flightgear.git/log
flightgear.git
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

15 years agoDon't compute radio station range when nav1 slaved to gps.
curt [Fri, 10 Apr 2009 18:45:41 +0000 (18:45 +0000)]
Don't compute radio station range when nav1 slaved to gps.

15 years agoOne more minor tweak on glideslope handling when slaved to gps.
curt [Fri, 10 Apr 2009 18:40:54 +0000 (18:40 +0000)]
One more minor tweak on glideslope handling when slaved to gps.

15 years agoBetter handling of glide slope and in range flags when slaved to external
curt [Thu, 9 Apr 2009 15:36:42 +0000 (15:36 +0000)]
Better handling of glide slope and in range flags when slaved to external
GPS.

15 years agoAlso adjust diffuse based on visibility although probably nobody will notice the...
ehofman [Thu, 9 Apr 2009 10:42:32 +0000 (10:42 +0000)]
Also adjust diffuse based on visibility although probably nobody will notice the difference

15 years agoCtrl-Shift-click on the '.' entry fires listeners of the parent node.
mfranz [Tue, 7 Apr 2009 15:05:57 +0000 (15:05 +0000)]
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.)

15 years agofog color and cloud color are the same anyhow, remove one of them in the ambient...
ehofman [Sat, 4 Apr 2009 09:20:33 +0000 (09:20 +0000)]
fog color and cloud color are the same anyhow, remove one of them in the ambient color calculation

15 years agologarithmic decrease in shinines/specular and limited linear increased ambient color...
ehofman [Fri, 3 Apr 2009 07:56:59 +0000 (07:56 +0000)]
logarithmic decrease in shinines/specular and limited linear increased ambient color due to reduced visibility.

15 years agoRon JENSEN: fix division by zero problem (asin -> atan2; navradio.cxx)
mfranz [Thu, 2 Apr 2009 18:14:50 +0000 (18:14 +0000)]
Ron JENSEN: fix division by zero problem (asin -> atan2; navradio.cxx)

15 years agoforgot one small fix
ehofman [Tue, 31 Mar 2009 08:09:11 +0000 (08:09 +0000)]
forgot one small fix

15 years agobetter use of const and fix a bunch of warnings
ehofman [Tue, 31 Mar 2009 08:06:17 +0000 (08:06 +0000)]
better use of const and fix a bunch of warnings

15 years agoAdjust the lighting once more, the previous behavior wasn't really satisfactory to...
ehofman [Mon, 30 Mar 2009 20:10:41 +0000 (20:10 +0000)]
Adjust the lighting once more, the previous behavior wasn't really satisfactory to me. Now specular is also influenced by visibility.

15 years agoMaik Justus: Crash Fix.
durk [Mon, 30 Mar 2009 05:59:18 +0000 (05:59 +0000)]
Maik Justus: Crash Fix.

15 years agoAdding ambient support for ac3d aircraft models reveiled a mistake in the scne ambien...
ehofman [Sun, 29 Mar 2009 11:41:45 +0000 (11:41 +0000)]
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.

15 years agoadded new features:
torsten [Sat, 28 Mar 2009 13:04:36 +0000 (13:04 +0000)]
added new features:
- conditions for InputValues
- multiple InputValues
some more code cleanup

15 years agoadded new features:
torsten [Sat, 28 Mar 2009 13:03:46 +0000 (13:03 +0000)]
added new features:
- conditions for InputValues
- multiple InputValues

15 years agogui/embedded nasal: don't rely on the nasal system being available
mfranz [Fri, 27 Mar 2009 20:04:42 +0000 (20:04 +0000)]
gui/embedded nasal: don't rely on the nasal system being available

15 years agoFixes:
ehofman [Fri, 27 Mar 2009 11:44:33 +0000 (11:44 +0000)]
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

15 years agoCsaba HALASZ: fix uninitialized _aspect_ratio member in Main/viewer.cxx
mfranz [Fri, 27 Mar 2009 09:19:41 +0000 (09:19 +0000)]
Csaba HALASZ: fix uninitialized _aspect_ratio member in Main/viewer.cxx

15 years agoSync. w. JSBSIm one more time to fix at least one bug
ehofman [Thu, 26 Mar 2009 09:25:17 +0000 (09:25 +0000)]
Sync. w. JSBSIm one more time to fix at least one bug

15 years agoSync. w. JSBSim cvs
ehofman [Wed, 25 Mar 2009 10:00:46 +0000 (10:00 +0000)]
Sync. w. JSBSim cvs

15 years agoFGNasalModelData: use model XML path as module source
mfranz [Mon, 23 Mar 2009 18:40:46 +0000 (18:40 +0000)]
FGNasalModelData: use model XML path as module source

15 years agodegrade MP chat messages from SG_ALERT fo SG_WARN
mfranz [Mon, 23 Mar 2009 15:23:50 +0000 (15:23 +0000)]
degrade MP chat messages from SG_ALERT fo SG_WARN
(they should not drown real error messages)