|
FlightGear next
|
Controller supports 'directTo' (DTO) navigation to a waypoint. More...
#include <rnav_waypt_controller.hxx>
Inherits flightgear::WayptController.
Public Member Functions | |
| DirectToController (RNAV *aRNAV, const WayptRef &aWpt, const SGGeod &aOrigin) | |
| bool | init () override |
| virtual void | update (double dt) |
| 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::LegData > | legData () const |
| WayptRef | waypoint () const |
Additional Inherited Members | |
Static Public Member Functions inherited from flightgear::WayptController | |
| static WayptController * | createForWaypt (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 |
Controller supports 'directTo' (DTO) navigation to a waypoint.
This creates a course from a starting point, to the waypoint, and reports deviation from that course.
The controller is done when the waypoint is reached (to/from goes to 'from')
Definition at line 241 of file rnav_waypt_controller.hxx.
| flightgear::DirectToController::DirectToController | ( | RNAV * | aRNAV, |
| const WayptRef & | aWpt, | ||
| const SGGeod & | aOrigin ) |
Definition at line 1335 of file rnav_waypt_controller.cxx.
|
virtual |
Reimplemented from flightgear::WayptController.
Definition at line 1395 of file rnav_waypt_controller.cxx.
|
virtual |
Compute distance until the waypoint is done.
Implements flightgear::WayptController.
Definition at line 1385 of file rnav_waypt_controller.cxx.
|
overridevirtual |
Reimplemented from flightgear::WayptController.
Definition at line 1344 of file rnav_waypt_controller.cxx.
|
virtual |
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 1405 of file rnav_waypt_controller.cxx.
|
virtual |
Bearing to the waypoint, if this value is meaningful.
Default implementation returns the target track
Reimplemented from flightgear::WayptController.
Definition at line 1400 of file rnav_waypt_controller.cxx.
|
virtual |
Implements flightgear::WayptController.
Definition at line 1355 of file rnav_waypt_controller.cxx.
|
virtual |
Reimplemented from flightgear::WayptController.
Definition at line 1390 of file rnav_waypt_controller.cxx.