]> git.mxchange.org Git - flightgear.git/commit
Make hardcoded error values configurable.
authortorsten <torsten>
Mon, 9 Mar 2009 22:25:51 +0000 (22:25 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 11 Mar 2009 22:14:34 +0000 (23:14 +0100)
commit43880b201cea2b120fefd99696ae0b43227358dc
tree14759166044415d3182ea32a989f703670f6f7c9
parent9cc92035b19c3407344398503a1ea570769aed85
Make hardcoded error values configurable.
This patch introduces the optional elements
<config>
   <spin-thresh>0.8</spin-thresh>
   <max-roll-error-deg>40</max-roll-error-deg>
   <max-pitch-error-deg>12</max-pitch-error-deg>
</config>
under the corresponding /instrumentation/attitude-indicator element.
The values are initialized to the shown default values if omitted.
These are the values of the former hardcoded constants.
src/Instrumentation/attitude_indicator.cxx
src/Instrumentation/attitude_indicator.hxx