FlightGear next
routePath.cxx File Reference
#include "config.h"
#include <algorithm>
#include <Navaids/routePath.hxx>
#include <simgear/structure/exception.hxx>
#include <simgear/magvar/magvar.hxx>
#include <simgear/timing/sg_time.hxx>
#include <Main/globals.hxx>
#include <Airports/runways.hxx>
#include <Navaids/waypoint.hxx>
#include <Navaids/FlightPlan.hxx>
#include <Navaids/positioned.hxx>
#include <Aircraft/AircraftPerformance.hxx>

Go to the source code of this file.

Classes

struct  TurnInfo
 
class  WayptData
 
class  RoutePath::RoutePathPrivate
 

Namespaces

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

Typedefs

using WayptDataVec = std::vector<WayptData>
 
using WpDataIt = WayptDataVec::iterator
 

Functions

bool flightgear::geocRadialIntersection (const SGGeoc &a, double r1, const SGGeoc &b, double r2, SGGeoc &result)
 
static double sqr (const double x)
 
double pointsKnownDistanceFromGC (const SGGeoc &a, const SGGeoc &b, const SGGeoc &d, double dist)
 
double latitudeForGCLongitude (const SGGeoc &a, const SGGeoc &b, double lon)
 
static double magVarFor (const SGGeod &geod)
 
SGGeod turnCenterOverflight (const SGGeod &pt, double inHeadingDeg, double turnAngleDeg, double turnRadiusM)
 
SGGeod turnCenterFlyBy (const SGGeod &pt, double inHeadingDeg, double turnAngleDeg, double turnRadiusM)
 
SGGeod turnCenterFromExit (const SGGeod &pt, double outHeadingDeg, double turnAngleDeg, double turnRadiusM)
 
TurnInfo turnCenterAndAngleFromExit (const SGGeod &pt, double outHeadingDeg, double turnRadiusM, const SGGeod &origin)
 given a turn exit position and heading, and an arbitrary origin position, compute the turn center / angle that matches.
 
bool isDescentWaypoint (const WayptRef &wpt)
 

Typedef Documentation

◆ WayptDataVec

using WayptDataVec = std::vector<WayptData>

Definition at line 243 of file routePath.cxx.

◆ WpDataIt

using WpDataIt = WayptDataVec::iterator

Definition at line 244 of file routePath.cxx.

Function Documentation

◆ isDescentWaypoint()

bool isDescentWaypoint ( const WayptRef & wpt)

Definition at line 638 of file routePath.cxx.

◆ latitudeForGCLongitude()

double latitudeForGCLongitude ( const SGGeoc & a,
const SGGeoc & b,
double lon )

Definition at line 139 of file routePath.cxx.

◆ magVarFor()

static double magVarFor ( const SGGeod & geod)
static

Definition at line 157 of file routePath.cxx.

◆ pointsKnownDistanceFromGC()

double pointsKnownDistanceFromGC ( const SGGeoc & a,
const SGGeoc & b,
const SGGeoc & d,
double dist )

Definition at line 114 of file routePath.cxx.

◆ sqr()

static double sqr ( const double x)
static

Definition at line 108 of file routePath.cxx.

◆ turnCenterAndAngleFromExit()

TurnInfo turnCenterAndAngleFromExit ( const SGGeod & pt,
double outHeadingDeg,
double turnRadiusM,
const SGGeod & origin )

given a turn exit position and heading, and an arbitrary origin position, compute the turn center / angle that matches.

Certain configurations may fail, especially if the origin is less than two turn radii from the exit pos.

Definition at line 199 of file routePath.cxx.

◆ turnCenterFlyBy()

SGGeod turnCenterFlyBy ( const SGGeod & pt,
double inHeadingDeg,
double turnAngleDeg,
double turnRadiusM )

Definition at line 170 of file routePath.cxx.

◆ turnCenterFromExit()

SGGeod turnCenterFromExit ( const SGGeod & pt,
double outHeadingDeg,
double turnAngleDeg,
double turnRadiusM )

Definition at line 179 of file routePath.cxx.

◆ turnCenterOverflight()

SGGeod turnCenterOverflight ( const SGGeod & pt,
double inHeadingDeg,
double turnAngleDeg,
double turnRadiusM )

Definition at line 163 of file routePath.cxx.