X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIFlightPlanCreate.cxx;h=a0a396d8fe02ea0874f77432e78b2d4d41911943;hb=38226af24ec01e8f0a20d7fd73ef838a69f6ef25;hp=d276cc96ae26b63e9dbecc262903e6e881321c65;hpb=9197057784f8f68e83fca30a234630dc3ccf4422;p=flightgear.git diff --git a/src/AIModel/AIFlightPlanCreate.cxx b/src/AIModel/AIFlightPlanCreate.cxx index d276cc96a..a0a396d8f 100644 --- a/src/AIModel/AIFlightPlanCreate.cxx +++ b/src/AIModel/AIFlightPlanCreate.cxx @@ -27,6 +27,7 @@ #include #include +#include #include #include #include "AIAircraft.hxx" @@ -419,13 +420,13 @@ void FGAIFlightPlan::createTakeOff(FGAIAircraft * ac, bool firstFlight, double vTaxi = ac->getPerformance()->vTaxi(); double vRotate = ac->getPerformance()->vRotate(); double vTakeoff = ac->getPerformance()->vTakeoff(); - double vClimb = ac->getPerformance()->vClimb(); + //double vClimb = ac->getPerformance()->vClimb(); double accelMetric = (accel * SG_NM_TO_METER) / 3600; double vTaxiMetric = (vTaxi * SG_NM_TO_METER) / 3600; double vRotateMetric = (vRotate * SG_NM_TO_METER) / 3600; double vTakeoffMetric = (vTakeoff * SG_NM_TO_METER) / 3600; - double vClimbMetric = (vClimb * SG_NM_TO_METER) / 3600; + //double vClimbMetric = (vClimb * SG_NM_TO_METER) / 3600; // Acceleration = dV / dT // Acceleration X dT = dV // dT = dT / Acceleration @@ -558,7 +559,7 @@ void FGAIFlightPlan::createDescent(FGAIAircraft * ac, FGAirport * apt, // Create a slow descent path that ends 250 lateral to the runway. double initialTurnRadius = getTurnRadius(vDescent, true); - double finalTurnRadius = getTurnRadius(vApproach, true); + //double finalTurnRadius = getTurnRadius(vApproach, true); // get length of the downwind leg for the intended runway double distanceOut = apt->getDynamics()->getApproachController()->getRunway(rwy->name())->getApproachDistance(); //12 * SG_NM_TO_METER; @@ -801,7 +802,7 @@ void FGAIFlightPlan::createDescent(FGAIAircraft * ac, FGAirport * apt, if (reposition) { double tempDistance; - double minDistance = HUGE_VAL; + //double minDistance = HUGE_VAL; string wptName; tempDistance = SGGeodesy::distanceM(current, initialTarget); time_t eta = @@ -836,7 +837,7 @@ void FGAIFlightPlan::createLanding(FGAIAircraft * ac, FGAirport * apt, const string & fltType) { double vTouchdown = ac->getPerformance()->vTouchdown(); - double vTaxi = ac->getPerformance()->vTaxi(); + //double vTaxi = ac->getPerformance()->vTaxi(); //string rwyClass = getRunwayClassFromTrafficType(fltType); //double heading = ac->getTrafficRef()->getCourse();