FlightGear next
flightgear::RunwayCtl Class Reference

Special controller for runways. More...

Inherits flightgear::WayptController.

Public Member Functions

 RunwayCtl (RNAV *aRNAV, const WayptRef &aWpt)
 
bool init () override
 
virtual void update (double)
 
virtual double distanceToWayptM () const
 Compute distance until the waypoint is done.
 
virtual double xtrackErrorNm () const
 
virtual double courseDeviationDeg () const
 
virtual double trueBearingDeg () const
 Bearing to the waypoint, if this value is meaningful.
 
virtual SGGeod position () const
 Position associated with the waypt.
 
- Public Member Functions inherited from flightgear::WayptController
virtual ~WayptController ()
 
virtual double timeToWaypt () const
 Compute time until the waypoint is done.
 
virtual double targetTrackDeg () const
 
bool isDone () const
 Is this controller finished?
 
virtual bool toFlag () const
 to/from flag - true = to, false = from.
 
virtual std::string status () const
 Allow waypoints to indicate a status value as a string.
 
virtual std::optional< RNAV::LegDatalegData () const
 
WayptRef waypoint () const
 

Additional Inherited Members

- Static Public Member Functions inherited from flightgear::WayptController
static WayptControllercreateForWaypt (RNAV *rnav, const WayptRef &aWpt)
 Static factory method, given a waypoint, return a controller bound to it, of the appropriate type.
 
- Protected Member Functions inherited from flightgear::WayptController
 WayptController (RNAV *aRNAV, const WayptRef &aWpt)
 
void setDone ()
 
void setSubController (WayptController *sub)
 
- Protected Attributes inherited from flightgear::WayptController
WayptRef _waypt
 
double _targetTrack
 
RNAV_rnav
 
std::unique_ptr< WayptController_subController
 

Detailed Description

Special controller for runways.

For runways, we want very narrow deviation constraints, and to understand that any point along the paved area is equivalent to being 'at' the runway.

Definition at line 586 of file rnav_waypt_controller.cxx.

Constructor & Destructor Documentation

◆ RunwayCtl()

flightgear::RunwayCtl::RunwayCtl ( RNAV * aRNAV,
const WayptRef & aWpt )
inline

Definition at line 589 of file rnav_waypt_controller.cxx.

Member Function Documentation

◆ courseDeviationDeg()

virtual double flightgear::RunwayCtl::courseDeviationDeg ( ) const
inlinevirtual

Reimplemented from flightgear::WayptController.

Definition at line 637 of file rnav_waypt_controller.cxx.

◆ distanceToWayptM()

virtual double flightgear::RunwayCtl::distanceToWayptM ( ) const
inlinevirtual

Compute distance until the waypoint is done.

Implements flightgear::WayptController.

Definition at line 626 of file rnav_waypt_controller.cxx.

◆ init()

bool flightgear::RunwayCtl::init ( )
inlineoverridevirtual

Reimplemented from flightgear::WayptController.

Definition at line 597 of file rnav_waypt_controller.cxx.

◆ position()

virtual SGGeod flightgear::RunwayCtl::position ( ) const
inlinevirtual

Position associated with the waypt.

For static waypoints, this is simply the waypoint position itself; for dynamic points, it's the estimated location at which the controller will be done.

Implements flightgear::WayptController.

Definition at line 649 of file rnav_waypt_controller.cxx.

◆ trueBearingDeg()

virtual double flightgear::RunwayCtl::trueBearingDeg ( ) const
inlinevirtual

Bearing to the waypoint, if this value is meaningful.

Default implementation returns the target track

Reimplemented from flightgear::WayptController.

Definition at line 642 of file rnav_waypt_controller.cxx.

◆ update()

virtual void flightgear::RunwayCtl::update ( double )
inlinevirtual

Implements flightgear::WayptController.

Definition at line 607 of file rnav_waypt_controller.cxx.

◆ xtrackErrorNm()

virtual double flightgear::RunwayCtl::xtrackErrorNm ( ) const
inlinevirtual

Reimplemented from flightgear::WayptController.

Definition at line 631 of file rnav_waypt_controller.cxx.


The documentation for this class was generated from the following file: