CVS: source/src/AIModel AIAircraft.cxx, 1.91, 1.92 AIAircraft.hxx, 1.42, 1.43
Durk Talsma <[email protected]> Sun, 25 Apr 2010 03:33:52 -0500
| Newsgroups | gmane.games.flightgear.cvc |
|---|---|
| Message-ID | <[email protected]> |
Update of /var/cvs/FlightGear-0.9/source/src/AIModel
In directory baron.flightgear.org:/tmp/cvs-serv18630/src/AIModel
Modified Files:
AIAircraft.cxx AIAircraft.hxx
Log Message:
Expanded ATC communication between AI aircraft and Airport ground control.
Index: AIAircraft.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/AIModel/AIAircraft.cxx,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- AIAircraft.cxx 19 Feb 2010 00:31:38 -0000 1.91
+++ AIAircraft.cxx 25 Apr 2010 08:32:53 -0000 1.92
@@ -80,6 +80,7 @@
headingError = 0;
holdPos = false;
+ needsTaxiClearance = false;
_performance = 0; //TODO initialize to JET_TRANSPORT from PerformanceDB
dt = 0;
@@ -663,9 +664,8 @@
//cerr << trafficRef->getCallSign() << " has passed waypoint " << prev->name << " at speed " << speed << endl;
if (prev->name == "PushBackPoint") {
dep->getDynamics()->releaseParking(fp->getGate());
- time_t holdUntil = now + 120;
- fp->setTime(holdUntil);
- //cerr << _getCallsign() << "Holding at pushback point" << endl;
+ AccelTo(0.0);
+ setTaxiClearanceRequest(true);
}
// This is the last taxi waypoint, and marks the the end of the flight plan
Index: AIAircraft.hxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/AIModel/AIAircraft.hxx,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- AIAircraft.hxx 19 Feb 2010 00:31:38 -0000 1.42
+++ AIAircraft.hxx 25 Apr 2010 08:33:08 -0000 1.43
@@ -70,6 +70,8 @@
void announcePositionToController(); //TODO have to be public?
void processATC(FGATCInstruction instruction);
+ void setTaxiClearanceRequest(bool arg) { needsTaxiClearance = arg; };
+ bool getTaxiClearanceRequest() { return needsTaxiClearance; };
FGAISchedule * getTrafficRef() { return trafficRef; };
virtual const char* getTypeString(void) const { return "aircraft"; }
@@ -150,6 +152,7 @@
const char * _getTransponderCode() const;
bool reachedWaypoint;
+ bool needsTaxiClearance;
time_t timeElapsed;
PerformanceData* _performance; // the performance data for this aircraft
------------------------------------------------------------------------------