- props->tie("id", SGRawValueMethods<FGAIBase,int>(*this,
- &FGAIBase::_getID));
- props->tie("velocities/true-airspeed-kt", SGRawValuePointer<double>(&speed));
- props->tie("velocities/vertical-speed-fps",
- SGRawValueMethods<FGAIBase,double>(*this,
- &FGAIBase::_getVS_fps,
- &FGAIBase::_setVS_fps));
-
- props->tie("position/altitude-ft",
- SGRawValueMethods<FGAIBase,double>(*this,
- &FGAIBase::_getAltitude,
- &FGAIBase::_setAltitude));
- props->tie("position/latitude-deg",
- SGRawValueMethods<FGAIBase,double>(*this,
- &FGAIBase::_getLatitude,
- &FGAIBase::_setLatitude));
- props->tie("position/longitude-deg",
- SGRawValueMethods<FGAIBase,double>(*this,
- &FGAIBase::_getLongitude,
- &FGAIBase::_setLongitude));
-
- props->tie("orientation/pitch-deg", SGRawValuePointer<double>(&pitch));
- props->tie("orientation/roll-deg", SGRawValuePointer<double>(&roll));
- props->tie("orientation/true-heading-deg", SGRawValuePointer<double>(&hdg));
-
- props->tie("radar/in-range", SGRawValuePointer<bool>(&in_range));
- props->tie("radar/bearing-deg", SGRawValuePointer<double>(&bearing));
- props->tie("radar/elevation-deg", SGRawValuePointer<double>(&elevation));
- props->tie("radar/range-nm", SGRawValuePointer<double>(&range));
- props->tie("radar/h-offset", SGRawValuePointer<double>(&horiz_offset));
- props->tie("radar/v-offset", SGRawValuePointer<double>(&vert_offset));
- props->tie("radar/x-shift", SGRawValuePointer<double>(&x_shift));
- props->tie("radar/y-shift", SGRawValuePointer<double>(&y_shift));
- props->tie("radar/rotation", SGRawValuePointer<double>(&rotation));
-
- props->tie("controls/lighting/nav-lights",
- SGRawValueFunctions<bool>(_isNight));
- props->setBoolValue("controls/lighting/beacon", true);
- props->setBoolValue("controls/lighting/strobe", true);
- props->setBoolValue("controls/glide-path", true);
+ props->tie("id", SGRawValueMethods<FGAIBase,int>(*this,
+ &FGAIBase::getID));
+ props->tie("velocities/true-airspeed-kt", SGRawValuePointer<double>(&speed));
+ props->tie("velocities/vertical-speed-fps",
+ SGRawValueMethods<FGAIBase,double>(*this,
+ &FGAIBase::_getVS_fps,
+ &FGAIBase::_setVS_fps));
+
+ props->tie("position/altitude-ft",
+ SGRawValueMethods<FGAIBase,double>(*this,
+ &FGAIBase::_getAltitude,
+ &FGAIBase::_setAltitude));
+ props->tie("position/latitude-deg",
+ SGRawValueMethods<FGAIBase,double>(*this,
+ &FGAIBase::_getLatitude,
+ &FGAIBase::_setLatitude));
+ props->tie("position/longitude-deg",
+ SGRawValueMethods<FGAIBase,double>(*this,
+ &FGAIBase::_getLongitude,
+ &FGAIBase::_setLongitude));
+
+ props->tie("position/global-x",
+ SGRawValueMethods<FGAIBase,double>(*this,
+ &FGAIBase::_getCartPosX,
+ 0));
+ props->tie("position/global-y",
+ SGRawValueMethods<FGAIBase,double>(*this,
+ &FGAIBase::_getCartPosY,
+ 0));
+ props->tie("position/global-z",
+ SGRawValueMethods<FGAIBase,double>(*this,
+ &FGAIBase::_getCartPosZ,
+ 0));
+ props->tie("callsign",
+ SGRawValueMethods<FGAIBase,const char*>(*this,
+ &FGAIBase::_getCallsign,
+ 0));
+
+ props->tie("orientation/pitch-deg", SGRawValuePointer<double>(&pitch));
+ props->tie("orientation/roll-deg", SGRawValuePointer<double>(&roll));
+ props->tie("orientation/true-heading-deg", SGRawValuePointer<double>(&hdg));
+
+ props->tie("radar/in-range", SGRawValuePointer<bool>(&in_range));
+ props->tie("radar/bearing-deg", SGRawValuePointer<double>(&bearing));
+ props->tie("radar/elevation-deg", SGRawValuePointer<double>(&elevation));
+ props->tie("radar/range-nm", SGRawValuePointer<double>(&range));
+ props->tie("radar/h-offset", SGRawValuePointer<double>(&horiz_offset));
+ props->tie("radar/v-offset", SGRawValuePointer<double>(&vert_offset));
+ props->tie("radar/x-shift", SGRawValuePointer<double>(&x_shift));
+ props->tie("radar/y-shift", SGRawValuePointer<double>(&y_shift));
+ props->tie("radar/rotation", SGRawValuePointer<double>(&rotation));
+ props->tie("radar/ht-diff-ft", SGRawValuePointer<double>(&ht_diff));
+ props->tie("subID", SGRawValuePointer<int>(&_subID));
+ props->tie("controls/lighting/nav-lights",
+ SGRawValueFunctions<bool>(_isNight));
+ props->setBoolValue("controls/lighting/beacon", true);
+ props->setBoolValue("controls/lighting/strobe", true);
+ props->setBoolValue("controls/glide-path", true);
+
+ props->setStringValue("controls/flight/lateral-mode", "roll");
+ props->setDoubleValue("controls/flight/target-hdg", hdg);
+ props->setDoubleValue("controls/flight/target-roll", roll);
+
+ props->setStringValue("controls/flight/longitude-mode", "alt");
+ props->setDoubleValue("controls/flight/target-alt", altitude_ft);
+ props->setDoubleValue("controls/flight/target-pitch", pitch);
+
+ props->setDoubleValue("controls/flight/target-spd", speed);
+