FlightGear next
positioninit.cxx File Reference
#include "config.h"
#include "positioninit.hxx"
#include <osgViewer/Viewer>
#include <osg/PagedLOD>
#include <simgear/misc/strutils.hxx>
#include <simgear/props/props_io.hxx>
#include <simgear/structure/exception.hxx>
#include <simgear/structure/event_mgr.hxx>
#include <simgear/scene/model/CheckSceneryVisitor.hxx>
#include <simgear/scene/util/OsgMath.hxx>
#include "globals.hxx"
#include "fg_props.hxx"
#include "fg_io.hxx"
#include <Navaids/navlist.hxx>
#include <Airports/runways.hxx>
#include <Airports/airport.hxx>
#include <Airports/dynamics.hxx>
#include <Airports/groundnetwork.hxx>
#include <AIModel/AIManager.hxx>
#include <AIModel/AICarrier.hxx>
#include <AIModel/AIAircraft.hxx>
#include <AIModel/AIFlightPlan.hxx>
#include <Scenery/scenery.hxx>
#include <GUI/MessageBox.hxx>
#include <Viewer/renderer.hxx>

Go to the source code of this file.

Namespaces

namespace  flightgear
 FlightPlan.hxx - defines a full flight-plan object, including departure, cruise, arrival information and waypoints.
 

Enumerations

enum  flightgear::InitPosResult { flightgear::ExactPosition , flightgear::VicinityPosition , flightgear::ContinueWaiting , flightgear::Failure }
 

Functions

void flightgear::finalizePosition ()
 
static void flightgear::setInitialPosition (const SGGeod &aPos, double aHeadingDeg)
 
static void flightgear::fgApplyStartOffset (const SGGeod &aStartPos, double aHeading, double aTargetHeading=HUGE_VAL)
 
std::tuple< SGGeod, double > flightgear::runwayStartPos (FGRunwayRef runway)
 
static bool flightgear::setPosFromAirportIDandHdg (const string &id, double tgt_hdg)
 
static bool flightgear::airportParkingSetVicinity (const string &id)
 
static bool flightgear::finalizePositionForParkpos (const string &id, const string &parkpos)
 
static bool flightgear::fgSetPosFromAirportIDandRwy (const string &id, const string &rwy, bool rwy_req)
 
static void flightgear::fgSetDistOrAltFromGlideSlope ()
 
static bool flightgear::fgSetPosFromNAV (const string &id, const double &freq, FGPositioned::Type type, PositionedID guid)
 
static InitPosResult flightgear::setInitialPosFromCarrier (const string &carrier)
 
static InitPosResult flightgear::checkCarrierSceneryLoaded (const SGSharedPtr< FGAICarrier > carrierRef)
 
static InitPosResult flightgear::setFinalPosFromCarrier (const string &carrier, const string &posid)
 
static InitPosResult flightgear::setFinalPosFromCarrierFLOLS (const string &carrier, bool abeam)
 
static bool flightgear::fgSetPosFromFix (const string &id, PositionedID guid)
 
bool flightgear::initPosition ()
 
bool flightgear::finalizeMetar ()
 

Variables

static SGTimeStamp flightgear::global_finalizeTime
 to avoid blocking when metar-fetch is enabled, but the network is unresponsive, we need a timeout value.
 
static bool flightgear::global_callbackRegistered = false