bool FGAIAircraft::init() {
- refuel_node = fgGetNode("systems/refuel/contact", true);
+ //refuel_node = fgGetNode("systems/refuel/contact", true);
return FGAIBase::init();
}
}
// match pitch angle to vertical speed
- if (vs > 0){
+ if (vs > 0) {
pitch = vs * 0.005;
} else {
pitch = vs * 0.002;
refuel_node->setBoolValue(true);
contact = true;
} else {
- refuel_node->setBoolValue(false);
+ //refuel_node->setBoolValue(false);
contact = false;
}
} else {
<< "pos : " << pos.lat() << ", " << pos.lon()
<< "waypoint " << curr->latitude << ", " << curr->longitude << endl;
cerr << "waypoint name " << curr->name;
- exit(1); // FIXME
+ exit(1); // FIXME
}
double speed_diff = speed - prevSpeed;
}
bool FGAIMultiplayer::init() {
- refuel_node = fgGetNode("systems/refuel/contact", true);
+ //refuel_node = fgGetNode("systems/refuel/contact", true);
isTanker = false; // do this until this property is
// passed over the net
string str2 = "MOBIL";
unsigned int loc1= str1.find( str2, 0 );
- if ( (loc1 != string::npos && str2 != "") /*|| mCallSign == "mpdummy" */) {
+ if ( (loc1 != string::npos && str2 != "") ){
// cout << " string found " << str2 << " in " << str1 << endl;
isTanker = true;
// cout << "isTanker " << isTanker << " " << mCallSign <<endl;
if ( isTanker) {
- if ( (range_ft2 < 250.0 * 250.0)
- /*&& (y_shift > 0.0) && (elevation > 0.0)*/ ) {
- refuel_node->setBoolValue(true);
+ if ( (range_ft2 < 250.0 * 250.0) &&
+ (y_shift > 0.0) &&
+ (elevation > 0.0) ){
+ // refuel_node->setBoolValue(true);
contact = true;
} else {
- refuel_node->setBoolValue(false);
+ // refuel_node->setBoolValue(false);
contact = false;
}
} else {