X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fturn_indicator.cxx;h=06fd868e2ba8f313b10b35efe54f581fd64c74b6;hb=51a1c86f00d5e19547cf3eb368b6a28dfdb966f4;hp=25df4de4e71f6f5d67bdb4213d03ea506db8068c;hpb=c6062ad93cf3bfbffb6dec63cd6844167bb56980;p=flightgear.git diff --git a/src/Instrumentation/turn_indicator.cxx b/src/Instrumentation/turn_indicator.cxx index 25df4de4e..06fd868e2 100644 --- a/src/Instrumentation/turn_indicator.cxx +++ b/src/Instrumentation/turn_indicator.cxx @@ -3,6 +3,10 @@ // // This file is in the Public Domain and comes with no warranty. +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include #include @@ -42,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