/***************************************************************************
* FGTrafficRecord
**************************************************************************/
+FGTrafficRecord::FGTrafficRecord() :
+ id(0), waitsForId(0),
+ currentPos(0),
+ leg(0),
+ latitude(0),
+ longitude(0),
+ heading(0),
+ speed(0),
+ altitude(0),
+ radius(0) {
+}
+
void FGTrafficRecord::setPositionAndIntentions(int pos, FGAIFlightPlan *route)
{
changeSpeed = false;
changeHeading = false;
changeAltitude = false;
+ resolveCircularWait = false;
double speed = 0;
double heading = 0;
bool FGATCInstruction::hasInstruction()
{
- return (holdPattern || holdPosition || changeSpeed || changeHeading || changeAltitude);
+ return (holdPattern || holdPosition || changeSpeed || changeHeading || changeAltitude || resolveCircularWait);
}
if (i == activeTraffic.end() || (activeTraffic.size() == 0)) {
FGTrafficRecord rec;
rec.setId(id);
+
rec.setPositionAndHeading(lat, lon, heading, speed, alt);
rec.setRunway(intendedRoute->getRunway());
rec.setLeg(leg);