flols_off = off;
}
-void FGAICarrier::getVelocityWrtEarth(sgdVec3 v, sgdVec3 omega, sgdVec3 pivot) {
+void FGAICarrier::getVelocityWrtEarth(sgdVec3& v, sgdVec3& omega, sgdVec3& pivot) {
sgdCopyVec3(v, vel_wrt_earth );
sgdCopyVec3(omega, rot_wrt_earth );
sgdCopyVec3(pivot, rot_pivot_wrt_earth );
SGRawValuePointer<double>(&rel_wind_speed_kts));
props->tie("controls/flols/wave-off-lights",
SGRawValuePointer<bool>(&wave_off_lights));
- props->tie("instrumentation/TACAN/bearing-true-deg",
- SGRawValuePointer<double>(&bearing));
- props->tie("instrumentation/TACAN/range-nm",
- SGRawValuePointer<double>(&range));
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("instrumentation/TACAN/channel-ID", TACAN_channel_id.c_str());
-
+ props->setStringValue("navaids/tacan/channel-ID", TACAN_channel_id.c_str());
props->setStringValue("sign", sign.c_str());
}
props->untie("environment/rel-wind-from-degs");
props->untie("environment/rel-wind-speed-kts");
props->untie("controls/flols/wave-off-lights");
- props->untie("instrumentation/TACAN/bearing-true-deg");
- props->untie("instrumentation/TACAN/range-nm");
- props->untie("instrumentation/TACAN/channel-ID");
+
}
bool FGAICarrier::getParkPosition(const string& id, Point3D& geodPos,
return found;
}
-void FGAICarrier::UpdateFlols(sgdMat3 trans) {
+void FGAICarrier::UpdateFlols(const sgdMat3& trans) {
float in[3];
float out[3];
wave_off_lights = true;
}
- cout << "rel wind: " << rel_wind << endl;
+ // cout << "rel wind: " << rel_wind << endl;
}// end update wind
distance *= SG_METER_TO_NM;
- cout << "return course: " << course << " distance: " << distance << endl;
+ //cout << "return course: " << course << " distance: " << distance << endl;
//turn the carrier
FGAIShip::TurnTo(course);
FGAIShip::AccelTo(base_speed);
bool FGAICarrier::OutsideBox(){ //returns true if the carrier is outside operating box
if ( max_lat == 0 && min_lat == 0 && max_long == 0 && min_long == 0) {
- SG_LOG(SG_GENERAL, SG_INFO,"AICarrier: No Operating Box defined" );
+ SG_LOG(SG_GENERAL, SG_BULK,"AICarrier: No Operating Box defined" );
return false;
}