- _serviceable_node = fgGetNode("/instrumentation/clock/serviceable", true);
- _offset_node = fgGetNode("/instrumentation/clock/offset-sec", true);
- _sec_node = fgGetNode("/instrumentation/clock/indicated-sec", true);
- _string_node = fgGetNode("/instrumentation/clock/indicated-string", true);
+ string branch;
+ branch = "/instrumentation/" + _name;
+
+ SGPropertyNode *node = fgGetNode(branch.c_str(), _num, true );
+ _serviceable_node = node->getChild("serviceable", 0, true);
+ _offset_node = node->getChild("offset-sec", 0, true);
+ _sec_node = node->getChild("indicated-sec", 0, true);
+ _min_node = node->getChild("indicated-min", 0, true);
+ _hour_node = node->getChild("indicated-hour", 0, true);
+ _lhour_node = node->getChild("local-hour", 0, true);
+ _string_node = node->getChild("indicated-string", 0, true);
+ _string_node1 = node->getChild("indicated-short-string", 0, true);
+ _string_node2 = node->getChild("local-short-string", 0, true);