- _suction_node = fgGetNode("/systems/vacuum[0]/suction-inhg", true);
- _pitch_out_node =
- fgGetNode("/instrumentation/attitude-indicator/indicated-pitch-deg",
- true);
- _roll_out_node =
- fgGetNode("/instrumentation/attitude-indicator/indicated-roll-deg",
- true);
+ _suction_node = fgGetNode(_suction.c_str(), true);
+ SGPropertyNode *cnode = node->getChild("config", 0, true);
+ _tumble_flag_node = cnode->getChild("tumble-flag", 0, true);
+ _caged_node = node->getChild("caged-flag", 0, true);
+ _tumble_node = node->getChild("tumble-norm", 0, true);
+ if( ( n = cnode->getChild("spin-thresh", 0, false ) ) != NULL )
+ spin_thresh = n->getDoubleValue();
+ if( ( n = cnode->getChild("max-roll-error-deg", 0, false ) ) != NULL )
+ max_roll_error = n->getDoubleValue();
+ if( ( n = cnode->getChild("max-pitch-error-deg", 0, false ) ) != NULL )
+ max_pitch_error = n->getDoubleValue();
+ _pitch_int_node = node->getChild("internal-pitch-deg", 0, true);
+ _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);