]> git.mxchange.org Git - flightgear.git/log
flightgear.git
12 years agoSpring-cleaning: some minor optimization
Torsten Dreyer [Tue, 6 Mar 2012 21:28:18 +0000 (22:28 +0100)]
Spring-cleaning: some minor optimization

- initialize uninitialized properties
- use prefix instead of postfix increments
- reduce visibility of variables
- use empty() instead of size() == 0 for vector and string
- pass string by reference, not by value

12 years agofgviewer: Make use of the world texture when no file argument is given.
Mathias Froehlich [Sun, 4 Mar 2012 19:31:14 +0000 (20:31 +0100)]
fgviewer: Make use of the world texture when no file argument is given.

12 years agoAdapt script to changed name.
ThorstenB [Sun, 4 Mar 2012 18:49:28 +0000 (19:49 +0100)]
Adapt script to changed name.

12 years agoRename to "nasal_api_doc.py".
ThorstenB [Sun, 4 Mar 2012 18:49:02 +0000 (19:49 +0100)]
Rename to "nasal_api_doc.py".

12 years agoIgnore .pyc files
ThorstenB [Sun, 4 Mar 2012 18:40:19 +0000 (19:40 +0100)]
Ignore .pyc files
(compiled python binaries)

12 years agoupdated API script
adrian [Fri, 3 Feb 2012 17:16:11 +0000 (19:16 +0200)]
updated API script

12 years agopython script which generates $FGROOT/Nasal API documentation
adrian [Mon, 30 Jan 2012 19:02:19 +0000 (21:02 +0200)]
python script which generates $FGROOT/Nasal API documentation

12 years agoUse tiedPropertyLists instead of manually matched tie/untie calls.
ThorstenB [Sun, 4 Mar 2012 16:38:06 +0000 (17:38 +0100)]
Use tiedPropertyLists instead of manually matched tie/untie calls.
Ensures we don't forget to untie some individual properties.

12 years agoUse tiedPropertyLists instead of manually matched tie/untie calls.
ThorstenB [Sun, 4 Mar 2012 14:30:08 +0000 (15:30 +0100)]
Use tiedPropertyLists instead of manually matched tie/untie calls.
Ensures we don't forget to untie some individual properties.

12 years agoIt does. :)
ThorstenB [Sat, 3 Mar 2012 20:40:40 +0000 (21:40 +0100)]
It does. :)

12 years agoFix type issue.
ThorstenB [Sat, 3 Mar 2012 20:39:22 +0000 (21:39 +0100)]
Fix type issue.
multi-sample-buffers is int, not bool.

12 years agoFix compile past last simgear change.
Mathias Froehlich [Sat, 3 Mar 2012 13:05:43 +0000 (14:05 +0100)]
Fix compile past last simgear change.

12 years agoAdapt to simgear SGMath change.
Mathias Froehlich [Sat, 3 Mar 2012 12:37:43 +0000 (13:37 +0100)]
Adapt to simgear SGMath change.

Simgears SGMath has lost its dependency on osg.
Update includes and code using these methods.

12 years agofgviewer: Does not need plib.
Mathias Froehlich [Sat, 3 Mar 2012 06:07:22 +0000 (07:07 +0100)]
fgviewer: Does not need plib.

12 years agohla: Rename HLAVariantData* to HLAVariantRecordData*.
Mathias Froehlich [Sat, 18 Feb 2012 12:38:59 +0000 (13:38 +0100)]
hla: Rename HLAVariantData* to HLAVariantRecordData*.

Rename the variant record data types and elements to something
more standard conformant. This catches up with recent changes
in simgear.

12 years agohla: Avoid using deprecated readObjectModelTemplate.
Mathias Froehlich [Sat, 18 Feb 2012 12:35:17 +0000 (13:35 +0100)]
hla: Avoid using deprecated readObjectModelTemplate.

Avoid using the now deprecated readObjectModelTemplate() method
in HLAFederate. Make more use of the available general
initialization functions in HLAFederate.

12 years agoWindows...
ThorstenB [Sat, 25 Feb 2012 00:48:13 +0000 (01:48 +0100)]
Windows...
revert to directly using PLIB variables *sigh*

12 years agoFix Windows dependencies
ThorstenB [Sat, 25 Feb 2012 00:05:39 +0000 (01:05 +0100)]
Fix Windows dependencies
SimgGear always needs "winmm" on Windows (due to timeGetTime in sgtimestamp.cxx)

12 years agoClean-up cmake (linker) dependencies.
ThorstenB [Fri, 24 Feb 2012 21:23:15 +0000 (22:23 +0100)]
Clean-up cmake (linker) dependencies.

12 years ago#537 linker issues due to clock_gettime/librt dependencies
ThorstenB [Fri, 24 Feb 2012 21:22:14 +0000 (22:22 +0100)]
#537 linker issues due to clock_gettime/librt dependencies
Simplify dependency check and make it work for Debian.

12 years agoRevert "Try to fix MSVC template instantiation issue with SGVec dependencies."
ThorstenB [Fri, 24 Feb 2012 21:01:20 +0000 (22:01 +0100)]
Revert "Try to fix MSVC template instantiation issue with SGVec dependencies."

This reverts commit 67b3b95310c2e9af2ebc9d0e0936ae01aff5092e.

12 years agoTry to fix MSVC template instantiation issue with SGVec dependencies.
ThorstenB [Fri, 24 Feb 2012 20:47:57 +0000 (21:47 +0100)]
Try to fix MSVC template instantiation issue with SGVec dependencies.

12 years agoFix Windows compile issue.
ThorstenB [Sun, 19 Feb 2012 21:13:41 +0000 (22:13 +0100)]
Fix Windows compile issue.

12 years agoDisable OSG dependencies to osg/Vec2 for simgear compile test.
ThorstenB [Sun, 19 Feb 2012 21:12:52 +0000 (22:12 +0100)]
Disable OSG dependencies to osg/Vec2 for simgear compile test.

12 years agoFix MSVC build issue.
ThorstenB [Sun, 19 Feb 2012 19:30:15 +0000 (20:30 +0100)]
Fix MSVC build issue.
MSVC complained about ambiguous "floor" when T=<int>.

12 years agoMore talkative cmake SimGear checks
ThorstenB [Sun, 19 Feb 2012 19:20:12 +0000 (20:20 +0100)]
More talkative cmake SimGear checks
Give details whether includes or libraries are missing,
or if (and how) the version mismatches.
Also require an exact simgear/flightgear version match.

12 years agoprotocol module: minor clean-up
ThorstenB [Sun, 19 Feb 2012 13:57:25 +0000 (14:57 +0100)]
protocol module: minor clean-up

12 years agoUse simgear functions for clip and wrap around.
Thomas Geymayer [Tue, 14 Feb 2012 13:41:53 +0000 (14:41 +0100)]
Use simgear functions for clip and wrap around.

12 years agoRemove unneeded function and add bool relative changes
Thomas Geymayer [Sun, 12 Feb 2012 23:06:51 +0000 (00:06 +0100)]
Remove unneeded function and add bool relative changes

12 years agoDocument protocol extensions
Thomas Geymayer [Tue, 27 Dec 2011 20:29:37 +0000 (21:29 +0100)]
Document protocol extensions

12 years agoSupport relative changes and wrapping for generic protocol input.
Thomas Geymayer [Tue, 27 Dec 2011 17:56:52 +0000 (18:56 +0100)]
Support relative changes and wrapping for generic protocol input.

12 years ago#669: reset fly-by-view when a new replay loop begins
ThorstenB [Sun, 19 Feb 2012 13:34:43 +0000 (14:34 +0100)]
#669: reset fly-by-view when a new replay loop begins

12 years agoTerrasync clean-up
ThorstenB [Sun, 19 Feb 2012 13:33:41 +0000 (14:33 +0100)]
Terrasync clean-up
Avoid code duplication, only UDP processing and
NMEA message parsing remains.

12 years agoRemove obsolete ignore pattern for automake generated headers.
ThorstenB [Fri, 17 Feb 2012 22:46:42 +0000 (23:46 +0100)]
Remove obsolete ignore pattern for automake generated headers.

12 years agoNavradio: provide property is-localizer-frequency
Torsten Dreyer [Wed, 15 Feb 2012 21:43:15 +0000 (22:43 +0100)]
Navradio: provide property is-localizer-frequency

This property is true if the active frequency is tuned to a
paired LOC/GS frequency in the range 108.00 - 111.95 with a
odd 100kHz digit (108.10, 108.15, 108.30, 108.35 ...)
It only indicates, that this _is_ a LOC/GS frequency,
it does _not_ provide any indication if a LOC/GS station is
actually being received.

12 years agoRemove the deprecated warning for JSBSim's egt_degf
Torsten Dreyer [Wed, 15 Feb 2012 14:13:33 +0000 (15:13 +0100)]
Remove the deprecated warning for JSBSim's egt_degf

At least no FGDATA aircraft uses this property anymore.

12 years agoMerge branch 'next' of gitorious.org:fg/flightgear into next
Torsten Dreyer [Wed, 15 Feb 2012 14:03:53 +0000 (15:03 +0100)]
Merge branch 'next' of gitorious.org:fg/flightgear into next

12 years agoSome xml-autopilot tuning
Torsten Dreyer [Wed, 15 Feb 2012 13:59:10 +0000 (14:59 +0100)]
Some xml-autopilot tuning

- Add update-interval-secs to the entire autopilot
- cache min/max values in InputValue
- a little more relaxed "equals zero" checking in the NoiseSpikeFilter

12 years agoAccept setting-hpa along with setting-inhg for altimeter
Torsten Dreyer [Mon, 13 Feb 2012 21:25:30 +0000 (22:25 +0100)]
Accept setting-hpa along with setting-inhg for altimeter

12 years agoFix file access mode for newnavradio.[ch]xx
Torsten Dreyer [Mon, 13 Feb 2012 21:24:41 +0000 (22:24 +0100)]
Fix file access mode for newnavradio.[ch]xx

12 years agoFix FL_STAT macro
Frederic Bouvier [Sun, 12 Feb 2012 20:20:53 +0000 (21:20 +0100)]
Fix FL_STAT macro

12 years agoUgly hack to detect the presence of fl_filename_free_list without relying on cmake...
Frederic Bouvier [Sun, 12 Feb 2012 19:51:56 +0000 (20:51 +0100)]
Ugly hack to detect the presence of fl_filename_free_list without relying on cmake magic

12 years agoFix compile issue with Fltk 1.1.
ThorstenB [Sun, 12 Feb 2012 19:04:26 +0000 (20:04 +0100)]
Fix compile issue with Fltk 1.1.
fl_filename_free_list not available for older Fltk versions.

12 years ago#663: fgadmin not working properly (with latest Fltk)
ThorstenB [Sun, 12 Feb 2012 16:39:01 +0000 (17:39 +0100)]
#663: fgadmin not working properly (with latest Fltk)
Some things about fltk seem changed, which broke fgadmin:
fl_filename_list could return negative number instead of 0.
fl_filename_list now has a "/" appended to every reported directory name.
free( list ) now caused a segfault - use fltk's method to free memory.
fgadmin should now work with new and old Fltk.

12 years agoMerge branch 'next' of gitorious.org:fg/flightgear into next
Torsten Dreyer [Sun, 12 Feb 2012 10:42:01 +0000 (11:42 +0100)]
Merge branch 'next' of gitorious.org:fg/flightgear into next

12 years agoSome autopilot works
Torsten Dreyer [Sun, 12 Feb 2012 10:41:21 +0000 (11:41 +0100)]
Some autopilot works

- add new <update-interval-secs> for autopilot components.
  This does what it says.
- add new method to PeriodicalValue to normalize symmetric around zero
- move the DigitalFilterImplementation out of the header file
- refactor NoiseSpikeFilter: spare some cpu-cycles and respect periodical
  output

12 years agoMac-specific fgjs / event-input fixes from Tatsuhiro.
James Turner [Sat, 11 Feb 2012 17:33:02 +0000 (17:33 +0000)]
Mac-specific fgjs / event-input fixes from Tatsuhiro.

12 years agoRon Jensen: fixed a potential NaN and Segfault in JSBSim propeller code
ThorstenB [Sat, 11 Feb 2012 16:11:13 +0000 (17:11 +0100)]
Ron Jensen: fixed a potential NaN and Segfault in JSBSim propeller code
The property /fdm/jsbsim/propulsion/engine/prop-induced-velocity_fps
gives wrong answers, and can become NaN under certain conditions. When thrust is
negative and forward velocity is small we can take the square root of a negative
number. This could occur, for example, when using reverse thrusters on landing.
The value comes out much too high when alpha is near 180, such as taxing with a
tail wind.

12 years ago#656: COM1 frequency set to 0 at startup
ThorstenB [Fri, 10 Feb 2012 22:41:33 +0000 (23:41 +0100)]
#656: COM1 frequency set to 0 at startup
Also, don't flood the screen with AI ATC messages when COM1/2 is set to 0
(ignore aircraft "transmissions" on frequency "0 MHz").

12 years agoFix another line lost in a merge conflict.
ThorstenB [Tue, 7 Feb 2012 20:12:51 +0000 (21:12 +0100)]
Fix another line lost in a merge conflict.

12 years agoFix missing declaration.
ThorstenB [Tue, 7 Feb 2012 18:32:55 +0000 (19:32 +0100)]
Fix missing declaration.

12 years ago#553: decouple OSG callbacks from Nasal subsystem
ThorstenB [Mon, 6 Feb 2012 21:19:33 +0000 (22:19 +0100)]
#553: decouple OSG callbacks from Nasal subsystem

12 years agoThis 'fixes' #613 but partly re-introduces #553.
ThorstenB [Sun, 29 Jan 2012 09:18:06 +0000 (10:18 +0100)]
This 'fixes' #613 but partly re-introduces #553.

12 years agoMerge branch 'next' of git://gitorious.org/fg/flightgear into next
Frederic Bouvier [Sun, 5 Feb 2012 14:18:26 +0000 (15:18 +0100)]
Merge branch 'next' of git://gitorious.org/fg/flightgear into next

12 years agoFix MSVC90 project
Frederic Bouvier [Sun, 5 Feb 2012 14:17:15 +0000 (15:17 +0100)]
Fix MSVC90 project

12 years ago#591: night-time rendering issues, avoid negative color values
ThorstenB [Sun, 5 Feb 2012 14:13:58 +0000 (15:13 +0100)]
#591: night-time rendering issues, avoid negative color values
Fog color became negative at certain sun angles (around midnight), which
resulted in weird sky dome coloring issues.
Hack: simply clamp the value for now.

12 years agonew command: property-interpolate
Torsten Dreyer [Thu, 2 Feb 2012 21:17:34 +0000 (22:17 +0100)]
new command: property-interpolate

exposes the SGInterpolator to <binding><command>
formerly only accessible via Nasal

12 years agoinitialize the heading-indicator/offset-deg in it's class
Torsten Dreyer [Wed, 1 Feb 2012 21:24:06 +0000 (22:24 +0100)]
initialize the heading-indicator/offset-deg in it's class

Don't initialize the offset in the main loop but in
the init method of the implementing class. This ensures
it gets initialized if you instantiate more than one
heading-indicator and does not initialize the property for
unsused heading-indicators (no more stray heading-indicator-fg
property anymore).

12 years agoFix string buffer issue with replay time display.
ThorstenB [Tue, 31 Jan 2012 22:19:02 +0000 (23:19 +0100)]
Fix string buffer issue with replay time display.
Unclean method of appending a string to a buffer would break with
some compiler optimization settings.

12 years agoUse existing define to supply version number.
ThorstenB [Tue, 31 Jan 2012 20:42:37 +0000 (21:42 +0100)]
Use existing define to supply version number.

12 years agoOops...
ThorstenB [Sun, 29 Jan 2012 09:44:28 +0000 (10:44 +0100)]
Oops...

12 years agoMinor clean-up.
ThorstenB [Sun, 29 Jan 2012 09:34:11 +0000 (10:34 +0100)]
Minor clean-up.

12 years agoBug 620, respect enable/disable state of entire menus when using native Cocoa menu
James Turner [Wed, 25 Jan 2012 18:56:51 +0000 (18:56 +0000)]
Bug 620, respect enable/disable state of entire menus when using native Cocoa menu

12 years agofgpanel: use same default fgdata path as fgfs
ThorstenB [Wed, 25 Jan 2012 16:37:14 +0000 (17:37 +0100)]
fgpanel: use same default fgdata path as fgfs
Use location configured at compile-time (Linux) or use run-time check (Mac)
(copied from fgfs/options.cxx).

12 years ago#561: normalize to [0-360[
ThorstenB [Sun, 22 Jan 2012 18:15:25 +0000 (19:15 +0100)]
#561: normalize to [0-360[

12 years ago#609 route manager/nav display related startup segfault
ThorstenB [Sun, 22 Jan 2012 10:23:56 +0000 (11:23 +0100)]
#609 route manager/nav display related startup segfault
Immediately update the property-tree mirror when adding waypoints (i.e.
using the "--flight-plan=..." startup option).

12 years ago#605: Reduce warning level for unsupported keys.
ThorstenB [Wed, 18 Jan 2012 20:41:55 +0000 (21:41 +0100)]
#605: Reduce warning level for unsupported keys.

12 years agoClean-up: move autosave.xml loading code to proper method
ThorstenB [Fri, 30 Dec 2011 00:01:15 +0000 (01:01 +0100)]
Clean-up: move autosave.xml loading code to proper method

12 years agoFix "make package_source" target.
ThorstenB [Tue, 17 Jan 2012 22:28:41 +0000 (23:28 +0100)]
Fix "make package_source" target.
Hopefully fixes the Jenkins release builds...
Also use bz2 compression only - same as for simgear.

12 years agoAdd property controls for cloud impostors and LoD hierarchy radii.
Stuart Buchanan [Sat, 17 Dec 2011 18:52:38 +0000 (18:52 +0000)]
Add property controls for cloud impostors and LoD hierarchy radii.

12 years agobump version number to 2.7.0
Torsten Dreyer [Tue, 17 Jan 2012 07:36:20 +0000 (08:36 +0100)]
bump version number to 2.7.0

12 years agobump version number to 2.6.0
Torsten Dreyer [Tue, 17 Jan 2012 06:46:52 +0000 (07:46 +0100)]
bump version number to 2.6.0

12 years agoKeeping this package file up to date as we go forward.
Curtis L. Olson [Mon, 16 Jan 2012 22:48:49 +0000 (16:48 -0600)]
Keeping this package file up to date as we go forward.

12 years agoAllow distinct rule and symbol definitions for navDisplays.
James Turner [Sat, 14 Jan 2012 17:00:50 +0000 (17:00 +0000)]
Allow distinct rule and symbol definitions for navDisplays.

12 years agoFix a minor warning.
ThorstenB [Thu, 12 Jan 2012 21:10:52 +0000 (22:10 +0100)]
Fix a minor warning.
System complains about "system" call's result being ignored.

12 years ago#199: fix issue with relative paths
ThorstenB [Thu, 12 Jan 2012 21:06:40 +0000 (22:06 +0100)]
#199: fix issue with relative paths
Relative paths don't work with FG. Since we Linux users just love
command-lines and often do use relative paths, make sure to convert them
before use.

12 years agoNavDisplay: fix update lag when switching range or centre.
James Turner [Thu, 12 Jan 2012 10:08:08 +0000 (10:08 +0000)]
NavDisplay: fix update lag when switching range or centre.

12 years ago#577: blinking not working for static HUD labels
ThorstenB [Tue, 10 Jan 2012 21:01:05 +0000 (22:01 +0100)]
#577: blinking not working for static HUD labels
Only worked for dynamic labels displaying a property (mode!=NONE).

12 years ago#590: agradar copying an uninitialized string
ThorstenB [Mon, 9 Jan 2012 22:41:07 +0000 (23:41 +0100)]
#590: agradar copying an uninitialized string
Thanks to Olaf Flebbe.

12 years agovirtual destructor missing (in order to silence llvm warning)
Olaf Flebbe [Mon, 9 Jan 2012 19:42:55 +0000 (20:42 +0100)]
virtual destructor missing (in order to silence llvm warning)

12 years agoITM radio calculations are only considered valid
adrian [Mon, 9 Jan 2012 17:47:25 +0000 (19:47 +0200)]
ITM radio calculations are only considered valid
between 40 MHz and 20 GHz.
Fix for bug which assigns a frequency of 0 MHz to
AI aircraft, thus resulting in infinite values.

12 years ago#587: don't crash on negative sizes
ThorstenB [Mon, 9 Jan 2012 19:29:51 +0000 (20:29 +0100)]
#587: don't crash on negative sizes
(see simgear commit)

12 years agofix a typo
Erik Hofman [Mon, 9 Jan 2012 07:14:46 +0000 (08:14 +0100)]
fix a typo

12 years agoWhen clearing the route, skip generated waypoints.
James Turner [Sun, 8 Jan 2012 19:31:07 +0000 (19:31 +0000)]
When clearing the route, skip generated waypoints.

12 years agoHandle unset texture-compression property correctly.
Mathias Froehlich [Sun, 8 Jan 2012 19:18:52 +0000 (20:18 +0100)]
Handle unset texture-compression property correctly.

12 years agoNavDisplay: fix many bugs relating to stretched and heading-rotated symbols.
James Turner [Sun, 8 Jan 2012 17:47:13 +0000 (17:47 +0000)]
NavDisplay: fix many bugs relating to stretched and heading-rotated symbols.

12 years agoFix the sun position and fog/ambient coloring misalignment
Erik Hofman [Sun, 8 Jan 2012 15:28:43 +0000 (16:28 +0100)]
Fix the sun position and fog/ambient coloring misalignment

12 years agoMerge branch 'next' of gitorious.org:fg/flightgear into next
Erik Hofman [Sun, 8 Jan 2012 14:38:22 +0000 (15:38 +0100)]
Merge branch 'next' of gitorious.org:fg/flightgear into next

12 years agoremove some ugly while loops
Erik Hofman [Sun, 8 Jan 2012 12:51:38 +0000 (13:51 +0100)]
remove some ugly while loops

12 years agoTemporarily disable Nasal callbacks in lazily loaded scenery models
ThorstenB [Sun, 8 Jan 2012 12:31:49 +0000 (13:31 +0100)]
Temporarily disable Nasal callbacks in lazily loaded scenery models
to avoid segfaults due to multi-threading issues. Will need to be replaced
by proper fix, if this proves Nasal related segfaults to be fixed.

12 years ago#553: MP-model-loading related segfault
ThorstenB [Sun, 8 Jan 2012 12:28:49 +0000 (13:28 +0100)]
#553: MP-model-loading related segfault
MP aircraft are loaded by a separate OSG thread (introduced after FG2.4.0).
The OSG thread also calls the "modelLoaded" callback. However, we mustn't
allow the OSG thread to call FGNasalModelData::modelLoaded directly:
FGNasalModelData isn't thread-safe. There are obvious issues (_callCount++;),
tricky issues like calling the Nasal _parser_ or creating hashes and
modifying the global Nasal namespace. It doesn't use locks to protect
against another thread executing a Nasal context or running garbage
collection. It also executes Nasal code itself (the model's "load" hook),
which we also cannot allow in a separate thread...
This patch returns all Nasal parts of MP-aircraft loading (parsing,
module creation, execution) to the main thread, while keeping the
multi-threaded OSG part (loading of MP-aircraft model files itself).
The same issue exists with scenery models (see other commit).

To summarize with 2 words: It s*cks... ;-)

12 years agoPotential fixes for #548, #572, groundnetwork related segfaults
ThorstenB [Sun, 8 Jan 2012 11:31:18 +0000 (12:31 +0100)]
Potential fixes for #548, #572, groundnetwork related segfaults
Add some pointer checks - so we at least get some error message naming the
airport with the broken network.

12 years agovecotry color calculations
Erik Hofman [Sun, 8 Jan 2012 11:09:46 +0000 (12:09 +0100)]
vecotry color calculations

12 years ago#561, clean-up using normalizePeriodic. Thanks to Hyde & James.
ThorstenB [Sat, 7 Jan 2012 07:17:34 +0000 (08:17 +0100)]
#561, clean-up using normalizePeriodic. Thanks to Hyde & James.

12 years agoShortcuts support in the Cocoa menubar. We have fewer keyboard shortcuts for menu...
James Turner [Fri, 6 Jan 2012 23:46:35 +0000 (23:46 +0000)]
Shortcuts support in the Cocoa menubar. We have fewer keyboard shortcuts for menu items than I realised.

12 years agoTweaks to get TCAS / multiplayer aircraft showing on the NavDisplay.
James Turner [Fri, 6 Jan 2012 20:47:21 +0000 (20:47 +0000)]
Tweaks to get TCAS / multiplayer aircraft showing on the NavDisplay.

12 years agoTweak the app-data path on Mac, after discussion with Tat.
James Turner [Thu, 5 Jan 2012 22:10:19 +0000 (22:10 +0000)]
Tweak the app-data path on Mac, after discussion with Tat.

12 years agoFix YASim's /accelerations/pilot/{x,y,z}-accel-fps_sec computations. These
Curtis L. Olson [Thu, 5 Jan 2012 01:17:32 +0000 (19:17 -0600)]
Fix YASim's /accelerations/pilot/{x,y,z}-accel-fps_sec computations.  These
are the accelerations (forces) as felt from the pilot's perspective.  This
combines the accelerations due to change in velocity vector and gravity.

Previosly the gravity part was right, but the body accelerations were being
transformed incorrectly.  The error was very subtle and basically amounted to
the fact that inverting an axis of a vector before transforming it is not
equivalent to transforming the vector and then inverting that axis.

After this fix, pilot accelerations + gyro + gps can be fed into an external
kalman filter and it will converge properly (extra confirmation that there
was a problem and this fix corrects it.)

12 years agoOnly initialize MP subsystem if a txhost is set.
Stuart Buchanan [Wed, 4 Jan 2012 21:47:35 +0000 (21:47 +0000)]
Only initialize MP subsystem if a txhost is set.

12 years agoMark NavDisplay stateSet as STATIC
James Turner [Wed, 4 Jan 2012 12:43:25 +0000 (12:43 +0000)]
Mark NavDisplay stateSet as STATIC