X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2Fattitude_indicator.cxx;h=de79e811df38e939f610c9b55d92569a0abb743f;hb=e89df85817619290067d20391817b831356c4532;hp=19f6d4c708ad0d20973eabc01650603efadc4006;hpb=9ab41ea15809c02ba46bf9e6911fbb1aa808b8b1;p=flightgear.git diff --git a/src/Instrumentation/attitude_indicator.cxx b/src/Instrumentation/attitude_indicator.cxx index 19f6d4c70..de79e811d 100644 --- a/src/Instrumentation/attitude_indicator.cxx +++ b/src/Instrumentation/attitude_indicator.cxx @@ -65,6 +65,16 @@ AttitudeIndicator::init () _roll_int_node = node->getChild("internal-roll-deg", 0, true); _pitch_out_node = node->getChild("indicated-pitch-deg", 0, true); _roll_out_node = node->getChild("indicated-roll-deg", 0, true); + + reinit(); +} + +void +AttitudeIndicator::reinit () +{ + _roll_int_node->setDoubleValue(0.0); + _pitch_int_node->setDoubleValue(0.0); + _gyro.reinit(); } void