]> git.mxchange.org Git - flightgear.git/log
flightgear.git
18 years ago- let FGColor setters/mergers report if they found something merge-worthy
mfranz [Mon, 11 Jul 2005 08:01:28 +0000 (08:01 +0000)]
- let FGColor setters/mergers report if they found something merge-worthy
- tune "use-<color>-node-for-pucol" masks

19 years agoadd missing paren
mfranz [Sat, 9 Jul 2005 14:01:52 +0000 (14:01 +0000)]
add missing paren

19 years ago- clear alpha like r/g/b
mfranz [Sat, 9 Jul 2005 13:53:25 +0000 (13:53 +0000)]
- clear alpha like r/g/b
- fix warning
- replace tabs by 4 spaces, according to the style of the file

19 years agotell the layouter about the default font (I wonder why
mfranz [Fri, 8 Jul 2005 20:12:06 +0000 (20:12 +0000)]
tell the layouter about the default font (I wonder why
LayoutWidget::setDefaultFont() wants puFont* /and/ pointsize as extra
parameters, when puFont knows its pointsize anyway. Didn't want to change
that yet, though.) Now the HELVETICA_10 font makes actually sense. :-)

19 years agodisable automatic re-opening of dialogs on re-init; this does currently
mfranz [Fri, 8 Jul 2005 16:42:26 +0000 (16:42 +0000)]
disable automatic re-opening of dialogs on re-init; this does currently
not work correctly (forgets the bindings)

19 years agorename VERA_12B font to SANS_12B (as in sans-serif). This is a "Grotesk"
mfranz [Fri, 8 Jul 2005 13:28:40 +0000 (13:28 +0000)]
rename VERA_12B font to SANS_12B (as in sans-serif). This is a "Grotesk"
font similar to Helvetica/Swiss. The license doesn't allow to redistribute
modified fonts under the original name. While it's only a converted font,
and not manually modified, it can no longer be seen as original. Changes
so far are (a) conversion from vector to bitmap, (b) different empty space
width, (c) different & constant gap value, without other kerning information.
Further changes may be necessary in the future.

19 years agoHarald JOHNSEN:
mfranz [Fri, 8 Jul 2005 11:15:17 +0000 (11:15 +0000)]
Harald JOHNSEN:

[new_gui is] "using copies of puFont objects that are not yet initialized, I
think that dependant of link order (and so tor execution order) it can
work or not. Changing puFont font by puFont *font should work in all cases."

19 years agoshut up
mfranz [Fri, 8 Jul 2005 08:18:34 +0000 (08:18 +0000)]
shut up

19 years agoprogram that generates C code from a built-in font list; used for the
mfranz [Fri, 8 Jul 2005 08:17:43 +0000 (08:17 +0000)]
program that generates C code from a built-in font list; used for the
font definition in src/GUI/fonts.cxx

19 years agoadd missing copyright statements
mfranz [Fri, 8 Jul 2005 07:37:56 +0000 (07:37 +0000)]
add missing copyright statements

19 years agoremove commented out and non-functional code for now
mfranz [Fri, 8 Jul 2005 06:45:00 +0000 (06:45 +0000)]
remove commented out and non-functional code for now

19 years agoread the splash font color from the gui style file. This is a bit of a
mfranz [Thu, 7 Jul 2005 21:43:22 +0000 (21:43 +0000)]
read the splash font color from the gui style file. This is a bit of a
gimmick, but it may be nice to adjust the font color to match the splash
image, e.g. to make it darker for dark images, etc.

19 years agomake property picker consider the new_gui colors; unfortunately, plib
mfranz [Thu, 7 Jul 2005 21:32:33 +0000 (21:32 +0000)]
make property picker consider the new_gui colors; unfortunately, plib
hardcodes the text color as black, which makes them a bit hard to read
on dark backgrounds; fix sent to the plib list; (the added code isn't
pretty and hence fits the existing style quite well ;-)

19 years ago- use color map information from new_gui.cxx and set puObject colors
mfranz [Thu, 7 Jul 2005 21:30:34 +0000 (21:30 +0000)]
- use color map information from new_gui.cxx and set puObject colors
  accordingly;
- cleanup (call all puObjects "obj" for easier editing/copying)
- commented out code: (not-yet functional props preprocessor)

19 years ago- add gui color support: maintain color map with default colors and all
mfranz [Thu, 7 Jul 2005 21:28:15 +0000 (21:28 +0000)]
- add gui color support: maintain color map with default colors and all
  colors from /sim/gui/colors/ into map;
- set default color scheme
- handle fonts
- implement color class
- close all dialogs on reinit, set up style again, and then reopen all
  (non-nasal generated) dialogs again

19 years agoadd fonts.cxx file
mfranz [Thu, 7 Jul 2005 21:24:28 +0000 (21:24 +0000)]
add fonts.cxx file

19 years agocontains two fntBitmap fonts with iso8859-1 character set; this was
mfranz [Thu, 7 Jul 2005 21:23:42 +0000 (21:23 +0000)]
contains two fntBitmap fonts with iso8859-1 character set; this was
generated by freeglut's genfont utility. That application also generates
a copyright message that I did not copy into this file, because it is
wrong: the author of genfont claims copyright for data that *I* generated
using his program; this doesn't fly. Of course, the copyright will remain
in the (heavily edited) version of *his* code. I'll commit that, too.

19 years agoSolaris fix.
ehofman [Thu, 7 Jul 2005 19:09:52 +0000 (19:09 +0000)]
Solaris fix.

19 years agoTune pitch gain, fix a couple annoyance bugs.
curt [Thu, 7 Jul 2005 15:40:44 +0000 (15:40 +0000)]
Tune pitch gain, fix a couple annoyance bugs.

19 years agoPatrick Quirk: fix typo (Norman: "looks like this is probably a bug")
mfranz [Thu, 7 Jul 2005 12:57:00 +0000 (12:57 +0000)]
Patrick Quirk: fix typo  (Norman: "looks like this is probably a bug")

19 years agoFix another dependency.
ehofman [Thu, 7 Jul 2005 09:06:02 +0000 (09:06 +0000)]
Fix another dependency.

19 years agoIRIX fixes.
ehofman [Wed, 6 Jul 2005 11:51:32 +0000 (11:51 +0000)]
IRIX fixes.

19 years agoAttempt to add -lwinmm for windows builds (untested.)
curt [Tue, 5 Jul 2005 13:56:03 +0000 (13:56 +0000)]
Attempt to add -lwinmm for windows builds (untested.)

19 years ago- abstract out reading colors from the property tree into a routine.
mfranz [Mon, 4 Jul 2005 07:27:17 +0000 (07:27 +0000)]
- abstract out reading colors from the property tree into a routine.
  This could also be used to read the default foreground/background color
  from a definition in preferences.xml or gui/color.xml.

19 years agoWhoops. I had missed that we have that already. Reverting. Thanks Erik.
mfranz [Sun, 3 Jul 2005 15:43:32 +0000 (15:43 +0000)]
Whoops. I had missed that we have that already. Reverting. Thanks Erik.

    <binding>
     <command>reinit</command>
     <subsystem>gui</subsystem>
    </binding>

19 years agoRename "menu-reload" to "gui-reload", which is what is actually done
mfranz [Sun, 3 Jul 2005 15:20:05 +0000 (15:20 +0000)]
Rename "menu-reload" to "gui-reload", which is what is actually done
behind the scenes: It reloads all gui files from $FG_ROOT/gui/. That's
useful for gui development. Maybe we'll have a "menu-reload" later ...

19 years ago- add fgcommand to reload menubar; that's necessary to make changes visible
mfranz [Sun, 3 Jul 2005 15:06:29 +0000 (15:06 +0000)]
- add fgcommand to reload menubar; that's necessary to make changes visible
  at runtime. Example:

  <key n="99">
      <name>c</name>
      <desc>Update completely useless menu entry.</desc>
      <binding>
          <command>nasal</command>
          <script>
              time = getprop("/sim/time/elapsed-sec");
              setprop("/sim/menubar/default/menu[9]/label", time);
          </script>
      </binding>
      <binding>
          <command>menu-reload</command>
      </binding>
  </key>

19 years ago- make menubar reloadable ... again. This was lost because FGBindings does
mfranz [Sun, 3 Jul 2005 14:43:47 +0000 (14:43 +0000)]
- make menubar reloadable ... again. This was lost because FGBindings does
  no longer save inaccessible bindings copies, but only pointer to the
  bindings in the property tree (which was desirable to get accurate
  error messages for Nasal bindings).

19 years agobetter error message to help users and support staff
mfranz [Sun, 3 Jul 2005 10:27:35 +0000 (10:27 +0000)]
better error message to help users and support staff

19 years agoMathias Fröhlich:
ehofman [Sun, 3 Jul 2005 09:39:14 +0000 (09:39 +0000)]
Mathias Fröhlich:

I have introduced the posibility to start directly on the carrier.

With that patch you will have a --carrrier=id argument where id can either be
the pennant number configured in the nimitz scenario or the carriers name
also configured in the carriers scenario.
Additionaly you can use --parkpos=id to select different positions on the
carrier. They are also configured in the scenario file.

That includes the switch of the whole FGInterface class to make use of the
groundcache.
That means that an aircraft no longer uses the current elevation value from
the scenery class. It rather has its own local cache of the aircrafts
environment which is setup in the common_init method of FGInterface and
updated either manually by calling
 FGInterface::get_groundlevel_m(lat, lon, alt_m);
or implicitly by calling the above method in the
 FGInterface::_updateGeo*Position(lat, lon, alt);
methods.
A call get_groundlevel_m rebuilds the groundcache if the request is outside
the range of the cache.

Note that for the real usage of the groundcache including the correct
information about the movement of objects and the velocity information, you
still need to set up the groundcache in the usual way like YASim and JSBSim
currently does.
If you use the native interface, you will get only static objects correctly.
But for FDM's only using one single ground level for a whole step this is IMO
sufficient.

The AIManager gets a way to return the location of a object which is placed
wrt an AI Object. At the moment it only honours AICarriers for that.
That method is a static one, which loads the scenario file for that reason and
throws it away afterwards. This looked like the aprioriate way, because the
AIManager is initialized much later in flightgears bootstrap, and I did not
find an easy way to reorder that for my needs. Since this additional load is
very small and does only happen if such a relative location is required, I
think that this is ok.

Note that moving on the carrier will only work correctly for JSBSim and YASim,
but you should now be able to start and move on every not itself moving
object with any FDM.

19 years agoAdd GPSsmooth directory.
curt [Sat, 2 Jul 2005 20:54:19 +0000 (20:54 +0000)]
Add GPSsmooth directory.

19 years agoAdd a small utility that can read a saved GPS track, interpolate data points
curt [Sat, 2 Jul 2005 20:53:42 +0000 (20:53 +0000)]
Add a small utility that can read a saved GPS track, interpolate data points
at some higher frequency, approximate roll/pitch angles, and blast the result
over to FlightGear using FGNetFDM udp packets.

19 years ago- fix <hrule>
mfranz [Sat, 2 Jul 2005 20:49:38 +0000 (20:49 +0000)]
- fix <hrule>
- add <vrule>
- allow elements to default to foreground color (black)
- remove redundant  if (foo) delete foo;

The rules do currently need a dummy child for the layouter to work correctly,
(<hrule><foo/></hrule>). The goal is to make a simple <hrule/> work.

19 years agoRework the MP calculation to make super/turbocharger output dependent
andy [Sat, 2 Jul 2005 17:09:42 +0000 (17:09 +0000)]
Rework the MP calculation to make super/turbocharger output dependent
on RPM via a model developed by Vivian Meazza.  Add a "boost" output
to the property tree.  Fix a bug where MP would be reported "before"
the wastegate clamping.

19 years agorevert last patch
mfranz [Thu, 30 Jun 2005 20:08:02 +0000 (20:08 +0000)]
revert last patch

19 years agoremove my beloved removeChildren() ... sniff
mfranz [Thu, 30 Jun 2005 19:26:29 +0000 (19:26 +0000)]
remove my beloved removeChildren() ... sniff

19 years ago- replace one SGPropertyNode* by SGPropertyNode_ptr to avoid crash with
mfranz [Thu, 30 Jun 2005 18:34:20 +0000 (18:34 +0000)]
- replace one SGPropertyNode* by SGPropertyNode_ptr to avoid crash with
  temporary removeChild(); should be done even after reverting; the node
  is accessed after removal
- cleanup:  if (foo) delete foo  -->  delete foo

19 years agoremove "keep" argument; the new removeChild() doesn't support that any more
mfranz [Tue, 28 Jun 2005 11:23:53 +0000 (11:23 +0000)]
remove "keep" argument; the new removeChild() doesn't support that any more

19 years ago- fix type warnings
mfranz [Mon, 27 Jun 2005 13:59:48 +0000 (13:59 +0000)]
- fix type warnings
- use new removeChildren() to remove the named js nodes that we don't
  need any more (they are now *really* removed, not just detached), and
- move it into postinit(). (getChildren() returns a SGPropertyNode_ptr,
  so all nodes are refcounted and, thus, after the last sg/props change
  no longer removable in that scope ;-)  Maybe we'll need an alternative
  getChildren() that returns SGPropertyNode* ...

19 years agoFrederic Bouvier:
mfranz [Mon, 27 Jun 2005 07:13:02 +0000 (07:13 +0000)]
Frederic Bouvier:
- This doesn't do what the author though it would do:
  if (modifiers&KEYMOD_RELEASED == 0) ...   (see below)
- MSVC and type fixes

mf:
fixing this uncovered an old bug: the "key pressed" branch was
actually never executed -- always only "released". And that is why
the <repeatable> property didn't work. And *that* was the reason
why the Spitfire's starter didn't work with freeglut, and Vivian
had to write a nasty workaround for it.

19 years agoHarald JOHNSEN:
ehofman [Sun, 26 Jun 2005 17:21:18 +0000 (17:21 +0000)]
Harald JOHNSEN:

Changes
=======

New volumetric shadows for FlightGear.

There is now two new checkboxes in the rendering dialog to enable/disable shadows
for the user aircraft and for static scenery objects (ie those defined in the .stg files).
AI and random objects are not handled for the moment.

known bugs
==========
- ghost objects

19 years agoRemove the 'old' 3D clouds code.
ehofman [Sat, 25 Jun 2005 11:21:18 +0000 (11:21 +0000)]
Remove the 'old' 3D clouds code.

19 years agoFrederic Bouvier: work around MSVC bug
mfranz [Sat, 25 Jun 2005 10:25:38 +0000 (10:25 +0000)]
Frederic Bouvier: work around MSVC bug
mf: avoid warning about initialization order

19 years agoTJ:
ehofman [Sat, 25 Jun 2005 08:46:58 +0000 (08:46 +0000)]
TJ:

Annexed an IVSI (instantaneous ertical speed indicator), which bypasses a
limitation with Concorde :

- the cruise at Mach 2 must be with a slow climb rate of 50/60 ft/min
  (2h from 50000 ft).
- with /velocities/vertical-speed-fpm, the real climb rate (altimeter) varies :
  One must constantly (every 5-10 minutes) change the vertical speed hold of
  the autopilot between 10 ft/min and 200 ft/min.
  This is very annoying because not a constant offset : that could be a lack of
  sensitivity of /velocities/vertical-speed-fpm (FDM ?).

This new IVSI :
- Is an emulation with works with environment pressure : a real IVSI works with
  static pressure (with lag) + accelerometers.
  It is not forbidden to later upgrade to the real model.
- Doesn't require a tuning of the autopilot made with
  /velocities/vertical-speed-fpm (also tested with 737, 747) :
    Concorde's autoland works without update.

19 years ago(Frederic Bouvier) avoid gcc'ism
mfranz [Sat, 25 Jun 2005 07:57:42 +0000 (07:57 +0000)]
(Frederic Bouvier) avoid gcc'ism

19 years agokeep panel and gui bindings nicely separated; useful for debugging,
mfranz [Fri, 24 Jun 2005 14:07:15 +0000 (14:07 +0000)]
keep panel and gui bindings nicely separated; useful for debugging,
especially now that the property path is shown in nasal error messages

19 years agoFGBindings doesn't create its own, detached copy of the bindings property
mfranz [Fri, 24 Jun 2005 13:44:22 +0000 (13:44 +0000)]
FGBindings doesn't create its own, detached copy of the bindings property
subtree. Keeping bindings available is in the responsibility of the caller.

19 years agoLaurie Bradshaw:
curt [Thu, 23 Jun 2005 19:21:17 +0000 (19:21 +0000)]
Laurie Bradshaw:

Modified fgjs.cxx so it can produce xml or property list output.
There are also a couple of other additions (like a --deadband <float>
option).

19 years ago- layout frames like groups (I forgot to commit that yesterday :-)
mfranz [Tue, 21 Jun 2005 12:13:07 +0000 (12:13 +0000)]
- layout frames like groups (I forgot to commit that yesterday :-)

19 years ago- fix "frame" (the old code was broken and ... strange)
mfranz [Mon, 20 Jun 2005 20:54:47 +0000 (20:54 +0000)]
- fix "frame" (the old code was broken and ... strange)
- add "hrule" (horizontal rule; accepts color and "pref-height" for thickness)

19 years ago- output property path in error messages
mfranz [Mon, 20 Jun 2005 18:53:00 +0000 (18:53 +0000)]
- output property path in error messages

19 years ago- delete bindings in the *destructor* (must have been an editing accident)
mfranz [Mon, 20 Jun 2005 18:52:54 +0000 (18:52 +0000)]
- delete bindings in the *destructor* (must have been an editing accident)
- create copies of bindings in /sim/bindings/, because FGBindings doesn't
  do that any more  (is there a better way to find the first free child?)

19 years ago- don't store link to a disconnected *copy* of a subtree, but a link to
mfranz [Mon, 20 Jun 2005 18:52:45 +0000 (18:52 +0000)]
- don't store link to a disconnected *copy* of a subtree, but a link to
  that subtree in the property tree itself
- remove a binding from the property tree

19 years ago- fix bug that let <mod-up> bindings be executed before the nasal init
mfranz [Sun, 19 Jun 2005 17:23:41 +0000 (17:23 +0000)]
- fix bug that let <mod-up> bindings be executed before the nasal init
  block (this required to move most of init() into postinit())
- undo the "which" pseudo-namespace workaround, and do it proper:
- let all nasal code in a joystick config file be executed in its own
  namespace. This allows to define functions in the init block that
  can be used throughout the driver file, and to write state variables
  in one binding, while reading them in other bindings, all without
  having to make sure that the values aren't lost in between, or collide
  with another joystick driver's code.
      For this the input subsystem creates a namespace for each joystick:
  "__js0" for joystick 0, etc. The two leading underscores are there to
  avoid collisions with user defined modules (similar to internal compiler
  variables). The namespace shouldn't be used explicitly, at least not in
  releases, and not from outside code, except for testing purposes, for
  which it can be useful. (If using the Cyborg joystick as js[0], you
  can read the modifier level as "__js0.modifier" from any nasal context.)

19 years ago- rename initModule() to createModule() (as suggested by Andy)
mfranz [Sun, 19 Jun 2005 17:09:03 +0000 (17:09 +0000)]
- rename initModule() to createModule()  (as suggested by Andy)
- make it public
- enable handleCommand() to execute a binding (or other nasal code defined
  in a property system subtree) in a particular namespace (-> "module" child)

19 years agoJosh Babcock: fix typo
mfranz [Fri, 17 Jun 2005 19:42:25 +0000 (19:42 +0000)]
Josh Babcock: fix typo

19 years agoAdjust logging output.
curt [Tue, 14 Jun 2005 20:55:46 +0000 (20:55 +0000)]
Adjust logging output.

19 years agoMake readScriptFile() public, and rename it to loadModule(), so that external
andy [Tue, 14 Jun 2005 19:57:24 +0000 (19:57 +0000)]
Make readScriptFile() public, and rename it to loadModule(), so that external
code can have access to the facility for loading modules from files.

Also includes a cast-int-to-pointer fix that causes a warning on 64 bit
systems.

19 years agoUpdated electrical system.
curt [Tue, 14 Jun 2005 17:57:48 +0000 (17:57 +0000)]
Updated electrical system.

These changes represent some attempts to bandaid and patch a hopelessly
flawed system to impliment basic battery charging/discharging as well as
provide the ability to model ammeter gauges and draw current from multiple
sources (like load balancing multiple alternators in a multi-engine aircraft.)
The system design forces all these things to be horrible hacks or depend
on extremely subtle system side effects and call ordering so they may or9
may not work to one degree or another.

As mentioned in the mailing list, my recommendation is to move away from
using this system and instead build a procedural electrical system using
nasal.  Sometime in the future we hopefully can impliment a better conceived
data driven electrical system model.

19 years agoTurn the electrical system into a non-hardcoded system like all the other
curt [Tue, 14 Jun 2005 17:54:19 +0000 (17:54 +0000)]
Turn the electrical system into a non-hardcoded system like all the other
systems.

19 years agoFix a misuse of a return value that lead to an error message being displayed
curt [Tue, 14 Jun 2005 17:53:40 +0000 (17:53 +0000)]
Fix a misuse of a return value that lead to an error message being displayed
when one shouldn't have been.

19 years agoUpdated notes on the FG electrical system model.
curt [Tue, 14 Jun 2005 17:52:16 +0000 (17:52 +0000)]
Updated notes on the FG electrical system model.

19 years agostrip trailing spaces & garbage
mfranz [Mon, 13 Jun 2005 19:27:40 +0000 (19:27 +0000)]
strip trailing spaces & garbage

19 years agorevert last patch, and do it differently: set /input/joysticks/which (int)
mfranz [Mon, 13 Jun 2005 06:14:45 +0000 (06:14 +0000)]
revert last patch, and do it differently: set /input/joysticks/which (int)
to the joystick index (x in /input/joysticks/js[x]) both when initializing
nasal init blocks & whenever updating the joystick. That's the only way to
make these nasal contexts aware of the joytick for which they were called.
And that's useful if a js maintains common variables, such as modifiers or
state variables, that should be shared between the namespace-less bindings
and initialization code. And, yes, it's over-engineered ...  :-)

19 years agoleave temporary hint for the nasal init block, so that it can access
mfranz [Sun, 12 Jun 2005 19:27:20 +0000 (19:27 +0000)]
leave temporary hint for the nasal init block, so that it can access
its own data, and can distinguish itself from other instances of the
same js driver. This property is removed after script execution.
Example:

  self = props.globals.getNode(getprop("/input/joysticks/this"));

19 years agosg_throwable's "origin" argument is optional and defaults to an empty
mfranz [Sun, 12 Jun 2005 16:01:49 +0000 (16:01 +0000)]
sg_throwable's "origin" argument is optional and defaults to an empty
string. "(received from )" doesn't really look good.

19 years agoeven clearer error message :-/
mfranz [Sun, 12 Jun 2005 13:54:27 +0000 (13:54 +0000)]
even clearer error message :-/

19 years agoclearer error message
mfranz [Sun, 12 Jun 2005 13:51:55 +0000 (13:51 +0000)]
clearer error message

19 years agoa missing /input/joysticks/ node is no alarming sign any more. It's
mfranz [Sun, 12 Jun 2005 13:35:55 +0000 (13:35 +0000)]
a missing /input/joysticks/ node is no alarming sign any more. It's
supposed to get populated from $FG_ROOT/Input/Joysticks/.

19 years agothrow an exception if not even a default joystick could be found;
mfranz [Sat, 11 Jun 2005 15:26:32 +0000 (15:26 +0000)]
throw an exception if not even a default joystick could be found;
This can only happen if $FG_ROOT is corrupted or some developer has
broken the default js config. Better not keep that under the rug.

19 years ago- read all joystick files from $FG_ROOT/Input/Joysticks automatically
mfranz [Sat, 11 Jun 2005 14:26:11 +0000 (14:26 +0000)]
- read all joystick files from $FG_ROOT/Input/Joysticks automatically
  (no need to list the paths explicitly in $FG_ROOT/joysticks.xml any more)
- move identified js nodes to /input/joysticks/js[0-9], but
- don't overwrite already set joystick data there
- remove all nodes when they aren't used any more
- add "id" node, which contains the js id that lead to the selection
  of a "named js" config
- add "source" node containing the path of the used js config file
- execute all nasal script groups at initialization time

19 years agocall the subsystems' postinit() methods after all of them are initialized
mfranz [Sat, 11 Jun 2005 09:13:44 +0000 (09:13 +0000)]
call the subsystems' postinit() methods after all of them are initialized

19 years agoA few fixes from David Culp.
ehofman [Sat, 11 Jun 2005 08:19:16 +0000 (08:19 +0000)]
A few fixes from David Culp.

19 years agoFix by Durk Talsma to fix the Airport AI directory preread code.
ehofman [Sat, 11 Jun 2005 08:13:30 +0000 (08:13 +0000)]
Fix by Durk Talsma to fix the Airport AI directory preread code.

19 years agoDavid Culp:
ehofman [Sat, 4 Jun 2005 09:38:52 +0000 (09:38 +0000)]
David Culp:

I added an AIStatic object to my OV-10 sim for use in putting city signs,
vehicles, or anything else that will be static, but that I don't want to put
in the scenery files.  It's inexpensive.  Before, I was making such things
from AIShip.

I also added the ability to set flight plans to repeat, so that when an
airplane reaches the end it just starts over at the beginning.  This is
useful for my OV-10 sim.  I have C-141 and KC-135 traffic flying approaches
to Ramstein, and I only have to define two AI objects to do this.

Also, I found an inefficiency in AIBase, where every AI object was calculating
Mach number at every dt.  Now only AIBallistic objects do this.

19 years agoFix some more of my own stupidity.
curt [Fri, 3 Jun 2005 15:25:19 +0000 (15:25 +0000)]
Fix some more of my own stupidity.

19 years agoFix some stupidity (mine).
curt [Fri, 3 Jun 2005 15:23:10 +0000 (15:23 +0000)]
Fix some stupidity (mine).

19 years agoI had hoped that gmtime's lack of thread-safety wouldn't bite us. It does.
mfranz [Fri, 3 Jun 2005 08:39:50 +0000 (08:39 +0000)]
I had hoped that gmtime's lack of thread-safety wouldn't bite us. It does.
Fix jumping clock hands.

19 years agoMathias Fröhlich:
ehofman [Thu, 2 Jun 2005 08:51:47 +0000 (08:51 +0000)]
Mathias Fröhlich:

this is basically the past patch I sent to the list and which should now
really (...!?!?) fix the no ground below aircraft problem.
Reasons:
I understood my remaining thinko I introduced with the prevous patch, and the
same thinko I made in my test cases.
The feedback from the list told me that it should help.

19 years agoMathias Fröhlich:
ehofman [Mon, 30 May 2005 08:48:27 +0000 (08:48 +0000)]
Mathias Fröhlich:

2.
I made YASim query the the ground cache at the wrong place. This one fixed
this, one can now land the bo105 on top of the oracle buildings  :)

3.
Is a followup of the scenery center update code: Register the scenery center
transform at the time it is put into the scene graph not at creation time.

4.
I held that part back from the past hitlist patch, because I hoped that it
will be sufficient (and the last one was in fact the biggest part) without.
As some test cases from Melchior showed me, it is not. We have additionally
to the wrong computed transform from the prevous patch some roundoff
problems. This patch adds some small tolerance to for the point in triangle
test.
... may be one even needs to increase the eps value further if starting at
some tile boundaries still fails.

5.
That is a big chunk.
Tested now for two days while hunting the second patch  :) .
That is a partial rewrite of the groundcache to use its own datastructures for
that flat scenegraph in the cache. The basic advantage is, what Erik
suggested, to precompute some often used values of these triangles. Also
allmost all computations are now in double precision which should decrease
(hopefully fix), together with a similar tolerance for some point in triangle
tests, the problems with 'no ground below aircraft'.
I am playing with octrees for the groundcache, that will finally solve the
performance problem when high triangular count models end up in the
groundcache. This patch is also some prework for those octrees ...

19 years agoSome small fixes and security updates.
ehofman [Mon, 30 May 2005 08:47:00 +0000 (08:47 +0000)]
Some small fixes and security updates.

19 years agoFix a number of build issues; Not all compilers support strnlen(), some platforms...
ehofman [Fri, 27 May 2005 18:49:45 +0000 (18:49 +0000)]
Fix a number of build issues; Not all compilers support strnlen(), some platforms use more than one lend-ending character and capture lines starting with a whitespace also.

19 years agoBe a tad more clever on readin the apt database; optimize the if statements a bit...
ehofman [Fri, 27 May 2005 17:46:35 +0000 (17:46 +0000)]
Be a tad more clever on readin the apt database; optimize the if statements a bit and dont tokenize strings we don't want to see anyhow.

19 years agoDon't try to open runway and parking files for every airport in the
andy [Fri, 27 May 2005 17:06:13 +0000 (17:06 +0000)]
Don't try to open runway and parking files for every airport in the
database.  Works fine on Linux, but is a huge performance hit (1
minute) on cygwin.  Keep a cache of actual directories and check that
first.

19 years agoA patch from Mathias to fix the startup at a tile boundry problem.
ehofman [Thu, 26 May 2005 08:13:06 +0000 (08:13 +0000)]
A patch from Mathias to fix the startup at a tile boundry problem.

19 years agoThe "catching up on tile delete queue" doesn't justify an ALERT message.
mfranz [Sun, 22 May 2005 17:14:15 +0000 (17:14 +0000)]
The "catching up on tile delete queue" doesn't justify an ALERT message.
It happens regularly during normal operation (ufo!) and only informs about
unfortunate, but known and deliberate behavior. The user can't do anything
about it, anyway. And finally: flooding the console with this message does
only *add* to fgfs' sluggish performance and makes every other message
go unnoticed.

19 years agoHarald JOHSNEN:
ehofman [Sun, 22 May 2005 08:08:22 +0000 (08:08 +0000)]
Harald JOHSNEN:

Changes
=======

- correct the transparency probleme when old 3d clouds were enabled
 (rendering context with an alpha channel)
- changed rain cone orientation, it can now be viewed from helicopter or chase
  view (still not tower view)
- clouds are a bit more yellow/red at dawn/dusk
- weather data is now correctly propagated to the interpolator, this correct
  visibility, wind, etc
- the 'metar' weather scenario now immedialty reuse the real metar data
- real metar no more overwrite custom weather scenario

19 years agoSync. w. JSBSim CVS.
ehofman [Sun, 22 May 2005 08:06:47 +0000 (08:06 +0000)]
Sync. w. JSBSim CVS.

19 years agoMSVC fix.
ehofman [Sun, 22 May 2005 07:36:26 +0000 (07:36 +0000)]
MSVC fix.

19 years agoAdded Farenheit temperature conversion to the property tree.
curt [Fri, 20 May 2005 19:42:53 +0000 (19:42 +0000)]
Added Farenheit temperature conversion to the property tree.

19 years agoRevert the previous patch.
ehofman [Tue, 17 May 2005 09:56:52 +0000 (09:56 +0000)]
Revert the previous patch.

19 years agoDavid Culp:
ehofman [Mon, 16 May 2005 09:48:00 +0000 (09:48 +0000)]
David Culp:

1)  The AIStorm sets the properties:
         /environment/turbulence/magnitude-norm
         /environment/turbulence/rate-hz

    The actual turbulence effects are handled by the FDM.
    If the effects are deemed unrealistic, then that will
    have to be fixed in the FDM(s).

2)  The zone of turbulence is cylindrical, and is centered
    at the AIStorm's lat/lon.  The diameter is set with
    <diameter-ft>, the top with <height-msl>, the bottom is
    assumed to be at <altitude> minus 1000 feet.

3)  Note that the zone of turbulence may not match well with
    the visual model of the storm.  In this case I had to
    x-offset the storm model by 4700 meters to match the zone
    of turbulence. (i.e. the storm model is 4700m off center).

4)  While I was in there I also increased the speed of the
    lightning flashes to look more realistic.

19 years agoOops, I didn't test compile the latest code and this is what happens.
ehofman [Mon, 16 May 2005 09:05:17 +0000 (09:05 +0000)]
Oops, I didn't test compile the latest code and this is what happens.

19 years agoMake the dialogs work again.
ehofman [Mon, 16 May 2005 08:37:18 +0000 (08:37 +0000)]
Make the dialogs work again.

19 years agoHarald JOHNSEN:
ehofman [Sun, 15 May 2005 09:26:17 +0000 (09:26 +0000)]
Harald JOHNSEN:

This is another update for the cloud code, a lot of lines but this time I have started to add the doxygen doc.

Misc
====

- corrected a bug when RTT is not available, the current rendering context was
  altered
- if RTT is not available then 3d clouds are not drawn at all
- impostors lighting is now recomputed when the sun changes position
- distant objects are no more seen in front of clouds
- blending of distant clouds is a bit better now
- litle optimization of code (uses a less cpu time)
- use layer wind speed and direction (no more hardcoded wind)
- fov is no more hardcoded

Changes
=======

- clouds (cu only) are dissipating/reforming (experimental)
- compute a turbulence factor that depends on surrounding clouds and type of
  clouds (experimental)
- clouds shapes are defined in cloudlayers.xml
- type of clouds present in a layer is also defined in cloudlayers.xml
- cloud layers are generated from metar and other misc. data (in progress)
- added a rain effect around the viewer (enabled in the rendering dialog and
  when the metar property says so)
- added a lightning effect (enabled in the rendering dialog) : cb clouds spawn
  new lightnings
- added a dialog to select from different weather source : metar/property,
  a 'fair weather' environment and a 'thunderstorm' environment.

19 years agodo also silence the marker sounds on --disable-sound
mfranz [Thu, 12 May 2005 18:30:59 +0000 (18:30 +0000)]
do also silence the marker sounds on --disable-sound

19 years agocurrently "tailwheel-lock=true" means 'unlocked', which is
mfranz [Tue, 10 May 2005 10:56:55 +0000 (10:56 +0000)]
currently "tailwheel-lock=true" means 'unlocked', which is
confusing and inconsistent with brake properties (where 1.0
means (b)locked) ==> reverse tailwheel-lock meaning

19 years agodon't use /sim/ATC/ and /sim/atc/ wildly mixed together; it's only /sim/atc/
mfranz [Tue, 10 May 2005 09:44:13 +0000 (09:44 +0000)]
don't use /sim/ATC/ and /sim/atc/ wildly mixed together; it's only /sim/atc/
now, just as it was everywhere in ATC/ATCDialog.cxx already

19 years agothere's no such thing as /sim/time/elapsed-ms --> elapsed-sec
mfranz [Tue, 10 May 2005 09:29:24 +0000 (09:29 +0000)]
there's no such thing as /sim/time/elapsed-ms  --> elapsed-sec

19 years agoSimon Hollier:
mfranz [Tue, 10 May 2005 06:26:59 +0000 (06:26 +0000)]
Simon Hollier:
don't crash when using --disable-splash-screen and/or if font can't be found