X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fturn_indicator.cxx;h=06fd868e2ba8f313b10b35efe54f581fd64c74b6;hb=4a94071ed78efdb6c8a9c5d44102dd48a001d920;hp=c8d295fee8a312e783431904053f65ba2699fa89;hpb=b9e4775a7a4bbeac9e3af2bf617ddacfbc2d47bf;p=flightgear.git diff --git a/src/Instrumentation/turn_indicator.cxx b/src/Instrumentation/turn_indicator.cxx index c8d295fee..06fd868e2 100644 --- a/src/Instrumentation/turn_indicator.cxx +++ b/src/Instrumentation/turn_indicator.cxx @@ -3,15 +3,20 @@ // // This file is in the Public Domain and comes with no warranty. +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include -#include STL_IOSTREAM -#include STL_STRING +#include +#include #include #include "turn_indicator.hxx" #include
#include
+using std::string; // Use a bigger number to be more responsive, or a smaller number // to be more sluggish. @@ -41,6 +46,15 @@ TurnIndicator::init () _electric_current_node = fgGetNode("/systems/electrical/outputs/turn-coordinator", true); _rate_out_node = node->getChild("indicated-turn-rate", 0, true); + + reinit(); +} + +void +TurnIndicator::reinit () +{ + _last_rate = 0; + _gyro.reinit(); } void