X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fslip_skid_ball.cxx;h=4bb1f916bdc7ed58b2a7595bc0dff7534a29768b;hb=52fd6986f88051ccc00fc2d01529568d79d5a56c;hp=2ee3bb12c0cfba29e787ef73dc3621ff67fae998;hpb=c6062ad93cf3bfbffb6dec63cd6844167bb56980;p=flightgear.git diff --git a/src/Instrumentation/slip_skid_ball.cxx b/src/Instrumentation/slip_skid_ball.cxx index 2ee3bb12c..4bb1f916b 100644 --- a/src/Instrumentation/slip_skid_ball.cxx +++ b/src/Instrumentation/slip_skid_ball.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 "slip_skid_ball.hxx" #include
#include
@@ -32,6 +36,14 @@ SlipSkidBall::init () _z_accel_node = fgGetNode("/accelerations/pilot/z-accel-fps_sec", true); _out_node = node->getChild("indicated-slip-skid", 0, true); _override_node = node->getChild("override", 0, true); + + reinit(); +} + +void +SlipSkidBall::reinit () +{ + _out_node->setDoubleValue(0.0); } void