X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fheading_indicator_fg.cxx;h=dfa099c51e6c4a9d1cb6a4224cf2244bd5364d17;hb=d051ba5cd20bed24bce73f540b1f4d37273d7b12;hp=091d097f68a4add6dfb2b7239531d463fc540dac;hpb=9bb896dd20341fe1cd003dec9733bb5bd19807df;p=flightgear.git diff --git a/src/Instrumentation/heading_indicator_fg.cxx b/src/Instrumentation/heading_indicator_fg.cxx index 091d097f6..dfa099c51 100644 --- a/src/Instrumentation/heading_indicator_fg.cxx +++ b/src/Instrumentation/heading_indicator_fg.cxx @@ -5,6 +5,10 @@ // // This file is in the Public Domain and comes with no warranty. +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include #include @@ -14,6 +18,7 @@ #include
#include
+using std::string; HeadingIndicatorFG::HeadingIndicatorFG ( SGPropertyNode *node ) : @@ -117,7 +122,7 @@ HeadingIndicatorFG::update (double dt) // Next, calculate the indicated heading, // introducing errors. - double factor = 0.1 / (spin * spin * spin * spin * spin * spin); + double factor = 100 * (spin * spin * spin * spin * spin * spin); double heading = _heading_in_node->getDoubleValue(); // Now, we have to get the current