+void FGAICarrier::bind() {
+ FGAIShip::bind();
+
+ props->untie("velocities/true-airspeed-kt");
+
+ props->tie("controls/flols/source-lights",
+ SGRawValuePointer<int>(&source));
+ props->tie("controls/flols/distance-m",
+ SGRawValuePointer<double>(&dist));
+ props->tie("controls/flols/angle-degs",
+ SGRawValuePointer<double>(&angle));
+ props->tie("controls/turn-to-launch-hdg",
+ SGRawValuePointer<bool>(&turn_to_launch_hdg));
+ props->tie("controls/in-to-wind",
+ SGRawValuePointer<bool>(&turn_to_launch_hdg));
+ props->tie("controls/base-course-deg",
+ SGRawValuePointer<double>(&base_course));
+ props->tie("controls/base-speed-kts",
+ SGRawValuePointer<double>(&base_speed));
+ props->tie("controls/start-pos-lat-deg",
+ SGRawValueMethods<SGGeod,double>(pos, &SGGeod::getLatitudeDeg));
+ props->tie("controls/start-pos-long-deg",
+ SGRawValueMethods<SGGeod,double>(pos, &SGGeod::getLongitudeDeg));
+ props->tie("controls/mp-control",
+ SGRawValuePointer<bool>(&MPControl));
+ props->tie("velocities/speed-kts",
+ SGRawValuePointer<double>(&speed));
+ props->tie("environment/surface-wind-speed-true-kts",
+ SGRawValuePointer<double>(&wind_speed_kts));
+ props->tie("environment/surface-wind-from-true-degs",
+ SGRawValuePointer<double>(&wind_from_deg));
+ props->tie("environment/rel-wind-from-degs",
+ SGRawValuePointer<double>(&rel_wind_from_deg));
+ props->tie("environment/rel-wind-from-carrier-hdg-degs",
+ SGRawValuePointer<double>(&rel_wind));
+ props->tie("environment/rel-wind-speed-kts",
+ SGRawValuePointer<double>(&rel_wind_speed_kts));
+ props->tie("environment/in-to-wind",
+ SGRawValuePointer<bool>(&in_to_wind));
+ //props->tie("controls/flols/wave-off-lights",
+ // SGRawValuePointer<bool>(&wave_off_lights));
+ props->tie("controls/elevators",
+ SGRawValuePointer<bool>(&elevators));
+ props->tie("surface-positions/elevators-pos-norm",
+ SGRawValuePointer<double>(&pos_norm));
+ props->tie("controls/constants/elevators/trans-time-s",
+ SGRawValuePointer<double>(&transition_time));
+ props->tie("controls/constants/elevators/time-constant",
+ SGRawValuePointer<double>(&time_constant));
+ props->tie("controls/jbd",
+ SGRawValuePointer<bool>(&jbd));
+ props->tie("surface-positions/jbd-pos-norm",
+ SGRawValuePointer<double>(&jbd_pos_norm));
+ props->tie("controls/constants/jbd/trans-time-s",
+ SGRawValuePointer<double>(&jbd_transition_time));
+ props->tie("controls/constants/jbd/time-constant",
+ SGRawValuePointer<double>(&jbd_time_constant));
+ props->tie("controls/turn-to-recovery-hdg",
+ SGRawValuePointer<bool>(&turn_to_recovery_hdg));
+ props->tie("controls/turn-to-base-course",
+ SGRawValuePointer<bool>(&turn_to_base_course));
+
+
+ props->setBoolValue("controls/flols/cut-lights", false);
+ props->setBoolValue("controls/flols/wave-off-lights", false);
+ props->setBoolValue("controls/flols/cond-datum-lights", true);
+ props->setBoolValue("controls/crew", false);
+ props->setStringValue("navaids/tacan/channel-ID", TACAN_channel_id.c_str());
+ props->setStringValue("sign", sign.c_str());
+ props->setBoolValue("controls/lighting/deck-lights", false);
+ props->setDoubleValue("controls/lighting/flood-lights-red-norm", 0);
+}