+void FGAIBallistic::setContentsNode(SGPropertyNode_ptr node) {
+
+ if (node != 0) {
+ _contents_node = node;
+ _contents_path = _contents_node->getDisplayName();
+ }
+}
+
+void FGAIBallistic::setParentNodes(SGPropertyNode_ptr node) {
+
+ if (node != 0) {
+ _pnode = node;
+ _p_pos_node = _pnode->getChild("position", 0, true);
+ _p_lat_node = _p_pos_node->getChild("latitude-deg", 0, true);
+ _p_lon_node = _p_pos_node->getChild("longitude-deg", 0, true);
+ _p_alt_node = _p_pos_node->getChild("altitude-ft", 0, true);
+ _p_agl_node = _p_pos_node->getChild("altitude-agl-ft", 0, true);
+
+
+ _p_ori_node = _pnode->getChild("orientation", 0, true);
+ _p_pch_node = _p_ori_node->getChild("pitch-deg", 0, true);
+ _p_rll_node = _p_ori_node->getChild("roll-deg", 0, true);
+ _p_hdg_node = _p_ori_node->getChild("true-heading-deg",0, true);
+
+ _p_vel_node = _pnode->getChild("velocities", 0, true);
+ _p_spd_node = _p_vel_node->getChild("true-airspeed-kt", 0, true);
+ }
+
+}
+
+void FGAIBallistic::setParentPos() {
+
+ if (_pnode != 0) {
+ //cout << "set parent pos" << endl;
+
+ double lat = _p_lat_node->getDoubleValue();
+ double lon = _p_lon_node->getDoubleValue();
+ double alt = _p_alt_node->getDoubleValue();
+
+ _parentpos.setLongitudeDeg(lon);
+ _parentpos.setLatitudeDeg(lat);
+ _parentpos.setElevationFt(alt);
+
+ }
+
+}
+