2011-08-03 19:23:42 +00:00
|
|
|
/****************************************************************************
|
2011-09-11 19:42:29 +00:00
|
|
|
* AIFlightPlanCreatePushBack.cxx
|
|
|
|
* Written by Durk Talsma, started August 1, 2007.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
**************************************************************************/
|
2008-12-27 16:09:01 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
2012-05-04 23:08:20 +00:00
|
|
|
#include <cstdlib>
|
2013-02-07 18:00:54 +00:00
|
|
|
#include <cstdio>
|
2012-05-04 23:08:20 +00:00
|
|
|
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
#include <simgear/math/sg_geodesy.hxx>
|
2010-10-20 16:54:16 +00:00
|
|
|
|
2013-02-21 11:32:02 +00:00
|
|
|
#include <Airports/airport.hxx>
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
#include <Airports/runways.hxx>
|
2008-08-14 18:13:39 +00:00
|
|
|
#include <Airports/dynamics.hxx>
|
2015-12-09 13:01:24 +00:00
|
|
|
#include <Airports/groundnetwork.hxx>
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
|
|
|
|
#include <Environment/environment_mgr.hxx>
|
|
|
|
#include <Environment/environment.hxx>
|
|
|
|
|
2009-05-05 10:36:38 +00:00
|
|
|
#include "AIFlightPlan.hxx"
|
|
|
|
#include "AIAircraft.hxx"
|
|
|
|
#include "performancedata.hxx"
|
|
|
|
|
2013-03-28 16:49:52 +00:00
|
|
|
using std::string;
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
|
2009-05-05 10:36:38 +00:00
|
|
|
// TODO: Use James Turner's createOnGround functions.
|
2011-04-19 16:01:24 +00:00
|
|
|
bool FGAIFlightPlan::createPushBack(FGAIAircraft *ac,
|
2011-11-12 17:40:23 +00:00
|
|
|
bool firstFlight, FGAirport *dep,
|
|
|
|
double radius,
|
|
|
|
const string& fltType,
|
|
|
|
const string& aircraftType,
|
|
|
|
const string& airline)
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
{
|
2009-05-05 10:36:38 +00:00
|
|
|
double vTaxi = ac->getPerformance()->vTaxi();
|
|
|
|
double vTaxiBackward = vTaxi * (-2.0/3.0);
|
|
|
|
double vTaxiReduced = vTaxi * (2.0/3.0);
|
2015-05-15 11:30:16 +00:00
|
|
|
|
2009-02-15 15:29:56 +00:00
|
|
|
// Active runway can be conditionally set by ATC, so at the start of a new flight, this
|
|
|
|
// must be reset.
|
|
|
|
activeRunway.clear();
|
|
|
|
|
2015-12-09 13:01:24 +00:00
|
|
|
if (!(dep->getDynamics()->getGroundController()->exists())) {
|
2011-11-12 17:40:23 +00:00
|
|
|
//cerr << "Push Back fallback" << endl;
|
2012-09-23 20:42:40 +00:00
|
|
|
createPushBackFallBack(ac, firstFlight, dep,
|
2011-11-12 17:40:23 +00:00
|
|
|
radius, fltType, aircraftType, airline);
|
2012-09-23 20:42:40 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
// establish the parking position / gate if required
|
|
|
|
if (firstFlight) {
|
2015-12-19 05:59:28 +00:00
|
|
|
// if the airprot has no parking positions defined, don't log
|
|
|
|
// the warning below.
|
|
|
|
if (!dep->getDynamics()->hasParkings()) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2012-10-01 16:18:36 +00:00
|
|
|
gate = dep->getDynamics()->getAvailableParking(radius, fltType,
|
2012-09-23 20:42:40 +00:00
|
|
|
aircraftType, airline);
|
2012-10-01 16:18:36 +00:00
|
|
|
if (!gate.isValid()) {
|
2015-12-19 05:59:28 +00:00
|
|
|
SG_LOG(SG_AI, SG_WARN, "Could not find parking for a " <<
|
2012-09-23 20:42:40 +00:00
|
|
|
aircraftType <<
|
|
|
|
" of flight type " << fltType <<
|
|
|
|
" of airline " << airline <<
|
|
|
|
" at airport " << dep->getId());
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-10-01 16:18:36 +00:00
|
|
|
if (!gate.isValid()) {
|
2012-09-23 20:42:40 +00:00
|
|
|
createPushBackFallBack(ac, firstFlight, dep,
|
|
|
|
radius, fltType, aircraftType, airline);
|
|
|
|
return true;
|
2011-11-12 17:40:23 +00:00
|
|
|
|
2012-09-23 20:42:40 +00:00
|
|
|
}
|
2012-10-01 16:18:36 +00:00
|
|
|
|
2016-11-13 14:05:20 +00:00
|
|
|
FGGroundNetwork* groundNet = dep->groundNetwork();
|
2012-10-01 16:18:36 +00:00
|
|
|
FGParking *parking = gate.parking();
|
|
|
|
if (parking && parking->getPushBackPoint() > 0) {
|
2015-12-01 00:01:27 +00:00
|
|
|
FGTaxiRoute route = groundNet->findShortestRoute(parking, parking->getPushBackPoint(), false);
|
2012-10-01 16:18:36 +00:00
|
|
|
|
|
|
|
int size = route.size();
|
2012-09-23 20:42:40 +00:00
|
|
|
if (size < 2) {
|
2012-10-01 16:18:36 +00:00
|
|
|
SG_LOG(SG_AI, SG_ALERT, "Push back route from gate " << parking->ident() << " has only " << size << " nodes.");
|
|
|
|
SG_LOG(SG_AI, SG_ALERT, "Using " << parking->getPushBackPoint());
|
2012-09-23 20:42:40 +00:00
|
|
|
}
|
2012-10-01 16:18:36 +00:00
|
|
|
|
|
|
|
route.first();
|
2015-12-01 00:01:27 +00:00
|
|
|
FGTaxiNodeRef node;
|
2015-05-15 11:30:16 +00:00
|
|
|
int rte;
|
2012-10-01 16:18:36 +00:00
|
|
|
|
2015-12-01 00:01:27 +00:00
|
|
|
while (route.next(node, &rte))
|
2012-09-23 20:42:40 +00:00
|
|
|
{
|
|
|
|
char buffer[10];
|
2015-12-01 00:01:27 +00:00
|
|
|
snprintf (buffer, 10, "%d", node->getIndex());
|
|
|
|
FGAIWaypoint *wpt = createOnGround(ac, string(buffer), node->geod(), dep->getElevation(), vTaxiBackward);
|
2015-05-15 11:30:16 +00:00
|
|
|
|
|
|
|
/*
|
2012-10-01 16:18:36 +00:00
|
|
|
if (previous) {
|
|
|
|
FGTaxiSegment* segment = groundNet->findSegment(previous, node);
|
|
|
|
wpt->setRouteIndex(segment->getIndex());
|
|
|
|
} else {
|
|
|
|
// not on the route yet, make up a unique segment ID
|
|
|
|
int x = (int) tn->guid();
|
|
|
|
wpt->setRouteIndex(x);
|
2015-05-15 11:30:16 +00:00
|
|
|
}*/
|
|
|
|
|
|
|
|
wpt->setRouteIndex(rte);
|
2012-09-23 20:42:40 +00:00
|
|
|
pushBackWaypoint(wpt);
|
2015-05-15 11:30:16 +00:00
|
|
|
//previous = node;
|
2011-11-12 17:40:23 +00:00
|
|
|
}
|
2012-09-23 20:42:40 +00:00
|
|
|
// some special considerations for the last point:
|
|
|
|
waypoints.back()->setName(string("PushBackPoint"));
|
|
|
|
waypoints.back()->setSpeed(vTaxi);
|
|
|
|
ac->setTaxiClearanceRequest(true);
|
|
|
|
} else { // In case of a push forward departure...
|
|
|
|
ac->setTaxiClearanceRequest(false);
|
|
|
|
double az2 = 0.0;
|
|
|
|
|
2016-11-13 14:05:20 +00:00
|
|
|
FGTaxiSegment* pushForwardSegment = dep->groundNetwork()->findSegment(parking, 0);
|
2012-10-01 16:18:36 +00:00
|
|
|
// there aren't any routes for this parking.
|
|
|
|
if (!pushForwardSegment) {
|
|
|
|
SG_LOG(SG_AI, SG_ALERT, "Gate " << parking->ident() << "doesn't seem to have routes associated with it.");
|
|
|
|
return false;
|
|
|
|
}
|
2012-09-23 20:42:40 +00:00
|
|
|
|
2015-12-01 00:01:27 +00:00
|
|
|
lastNodeVisited = pushForwardSegment->getEnd();
|
2012-10-01 16:18:36 +00:00
|
|
|
double distance = pushForwardSegment->getLength();
|
|
|
|
|
|
|
|
double parkingHeading = parking->getHeading();
|
|
|
|
|
|
|
|
for (int i = 1; i < 10; i++) {
|
|
|
|
SGGeod pushForwardPt;
|
|
|
|
SGGeodesy::direct(parking->geod(), parkingHeading,
|
|
|
|
((i / 10.0) * distance), pushForwardPt, az2);
|
|
|
|
char buffer[16];
|
|
|
|
snprintf(buffer, 16, "pushback-%02d", i);
|
|
|
|
FGAIWaypoint *wpt = createOnGround(ac, string(buffer), pushForwardPt, dep->getElevation(), vTaxiReduced);
|
|
|
|
|
|
|
|
wpt->setRouteIndex(pushForwardSegment->getIndex());
|
|
|
|
pushBackWaypoint(wpt);
|
|
|
|
}
|
|
|
|
|
|
|
|
waypoints.back()->setName(string("PushBackPoint"));
|
|
|
|
// cerr << "Done assinging new name" << endl;
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
}
|
2012-09-23 20:42:40 +00:00
|
|
|
|
2011-04-19 16:01:24 +00:00
|
|
|
return true;
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
}
|
|
|
|
/*******************************************************************
|
2011-09-11 19:42:29 +00:00
|
|
|
* createPushBackFallBack
|
2011-11-12 17:40:23 +00:00
|
|
|
* This is the backup function for airports that don't have a
|
|
|
|
* network yet.
|
2011-09-11 19:42:29 +00:00
|
|
|
******************************************************************/
|
2011-11-12 17:40:23 +00:00
|
|
|
void FGAIFlightPlan::createPushBackFallBack(FGAIAircraft *ac, bool firstFlight, FGAirport *dep,
|
|
|
|
double radius,
|
|
|
|
const string& fltType,
|
|
|
|
const string& aircraftType,
|
|
|
|
const string& airline)
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
{
|
2011-11-12 17:40:23 +00:00
|
|
|
double az2 = 0.0;
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
|
2011-11-12 17:40:23 +00:00
|
|
|
double vTaxi = ac->getPerformance()->vTaxi();
|
|
|
|
double vTaxiBackward = vTaxi * (-2.0/3.0);
|
|
|
|
double vTaxiReduced = vTaxi * (2.0/3.0);
|
2009-05-05 10:36:38 +00:00
|
|
|
|
2012-09-23 20:42:40 +00:00
|
|
|
double heading = 180.0; // this is a completely arbitrary heading!
|
|
|
|
FGAIWaypoint *wpt = createOnGround(ac, string("park"), dep->geod(), dep->getElevation(), vTaxiBackward);
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
|
2011-11-12 17:40:23 +00:00
|
|
|
pushBackWaypoint(wpt);
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
|
2012-09-23 20:42:40 +00:00
|
|
|
SGGeod coord;
|
|
|
|
SGGeodesy::direct(dep->geod(), heading, 10, coord, az2);
|
2011-11-12 17:40:23 +00:00
|
|
|
wpt = createOnGround(ac, string("park2"), coord, dep->getElevation(), vTaxiBackward);
|
2011-07-31 17:27:44 +00:00
|
|
|
|
2011-11-12 17:40:23 +00:00
|
|
|
pushBackWaypoint(wpt);
|
2012-09-23 20:42:40 +00:00
|
|
|
|
|
|
|
SGGeodesy::direct(dep->geod(), heading, 2.2 * radius, coord, az2);
|
2011-11-12 17:40:23 +00:00
|
|
|
wpt = createOnGround(ac, string("taxiStart"), coord, dep->getElevation(), vTaxiReduced);
|
|
|
|
pushBackWaypoint(wpt);
|
2011-07-31 17:27:44 +00:00
|
|
|
|
- Ground network XML parsing code reads the new attributes "holdPointType"
and "isOnRunway".
- Added initial support for AI controlled pushback operations, making use of the
current editing capabilities of TaxiDraw CVS / New_GUI_CODE. The current
implementation is slightly more computationally intensive than strictly
required, due to the currently inability of taxidraw to link one specific
pushBack point to to a particular startup location. FlightGear now determines
this dynamically, and once we have that functionality in TaxiDraw, the
initialization part of createPushBack() can be further simplified.
- Smoother transition from pushback to taxi. No more skipping of waypoints, and
aircraft wait for two minutes at pushback point.
- The classes FGTaxiNode, FGTaxiSegment, and FGParking, now have copy
constructors, and assignment operators.
- Removed declaration of undefined constructor FGTaxiNode(double, double, int)
- Array boundry checks and cleanup.
- Modified Dijkstra path search algoritm to solve partial problems. Currently
limited to include pushback points and routes only, but can probably be
extended to a more general approach.
- Added initial support for giving certain routes in the network a penalty, in
order to discourage the use of certain routes over others.
2007-08-08 06:09:58 +00:00
|
|
|
}
|