FGATC::FGATC() {
freqClear = true;
+ receiving = false;
+ respond = false;
runResponseCounter = false;
+ responseID = "";
responseReqd = false;
}
}
}
+void FGATC::ReceiveUserCallback(int code) {
+ SG_LOG(SG_ATC, SG_WARN, "WARNING - whichever ATC class was intended to receive callback code " << code << " didn't get it!!!");
+}
+
void FGATC::SetResponseReqd(string rid) {
receiving = false;
responseReqd = true;
respond = false; // TODO - this ignores the fact that more than one plane could call this before response
// Shouldn't happen with AI only, but user could confuse things??
responseID = rid;
+ runResponseCounter = true;
responseCounter = 0.0;
- responseTime = 2.5; // TODO - randomize this slightly.
+ responseTime = 1.8; // TODO - randomize this slightly.
}
void FGATC::NotifyTransmissionFinished(string rid) {
if(responseReqd) {
runResponseCounter = true;
responseCounter = 0.0;
- responseTime = 2.5; // TODO - randomize this slightly.
+ responseTime = 1.8; // TODO - randomize this slightly.
} else {
freqClear = true;
}
}
}
+// Generate the text of a message from its parameters and the current context.
+string FGATC::GenText(const string& m, int c) {
+ return("");
+}
+
ostream& operator << (ostream& os, atc_type atc) {
switch(atc) {
case(INVALID): return(os << "INVALID");