// virtual bool init(bool search_in_AI_path=false);
virtual void bind();
- virtual void unbind();
virtual void update(double dt);
- void setPerformance(const std::string& perfString);
- void setPerformance(PerformanceData *ps);
+ void setPerformance(const std::string& acType, const std::string& perfString);
+ // void setPerformance(PerformanceData *ps);
void setFlightPlan(const std::string& fp, bool repat = false);
void SetFlightPlan(FGAIFlightPlan *f);
double getBearing(double crse);
void setAcType(const std::string& ac) { acType = ac; };
+ std::string getAcType() const { return acType; }
+
void setCompany(const std::string& comp) { company = comp;};
void announcePositionToController(); //TODO have to be public?
int getTakeOffStatus() { return takeOffStatus; };
void checkTcas();
+ double calcVerticalSpeed(double vert_ft, double dist_m, double speed, double error);
FGATCController * getATCController() { return controller; };
void updatePrimaryTargetValues(bool& flightplanActive, bool& aiOutOfSight);
void updateSecondaryTargetValues();
- void updatePosition();
void updateHeading();
void updateBankAngleTarget();
void updateVerticalSpeedTarget();
time_t timeElapsed;
PerformanceData* _performance; // the performance data for this aircraft
+
+ void assertSpeed(double speed);
};