X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fslip_skid_ball.cxx;h=4bb1f916bdc7ed58b2a7595bc0dff7534a29768b;hb=84a26de9ae9ade8629dee53cac8b9357f0930690;hp=4925e1fa94ca7b363c96295af9871ea410c1c41d;hpb=b9e4775a7a4bbeac9e3af2bf617ddacfbc2d47bf;p=flightgear.git diff --git a/src/Instrumentation/slip_skid_ball.cxx b/src/Instrumentation/slip_skid_ball.cxx index 4925e1fa9..4bb1f916b 100644 --- a/src/Instrumentation/slip_skid_ball.cxx +++ b/src/Instrumentation/slip_skid_ball.cxx @@ -3,10 +3,15 @@ // // 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
+using std::string; SlipSkidBall::SlipSkidBall ( SGPropertyNode *node) : @@ -31,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