Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
pangea_survey::Route Class Reference

Evaluate a back-and-forth route at elapsed time. More...

#include <route.h>

Collaboration diagram for pangea_survey::Route:

Public Member Functions

 Route (const Config &config)
 Construct a route and cache its great-circle endpoint distance.
double length () const
 Return route length in metres.
double legSeconds () const
 Return one-way travel duration at the configured speed.
Point at (double seconds) const
 Return the interpolated endpoint-to-endpoint route position.
double aglAt (const Point &point) const
 Interpolate route AGL from distance along the endpoint segment.

Private Attributes

Config config_
double length_

Detailed Description

Evaluate a back-and-forth route at elapsed time.

Geographic interpolation uses the shortest longitude delta; it does not model aircraft dynamics or establish that a real aircraft flew the path.

Definition at line 452 of file route.h.

Constructor & Destructor Documentation

◆ Route()

pangea_survey::Route::Route ( const Config & config)
inlineexplicit

Construct a route and cache its great-circle endpoint distance.

Definition at line 457 of file route.h.

Member Function Documentation

◆ aglAt()

double pangea_survey::Route::aglAt ( const Point & point) const
inline

Interpolate route AGL from distance along the endpoint segment.

Definition at line 480 of file route.h.

◆ at()

Point pangea_survey::Route::at ( double seconds) const
inline

Return the interpolated endpoint-to-endpoint route position.

Parameters
[in]secondsNonnegative elapsed seconds; every second leg reverses direction.
Returns
Geographic position and interpolated AGL.
Exceptions
std::runtime_errorIf elapsed time is negative or nonfinite.

Definition at line 468 of file route.h.

◆ legSeconds()

double pangea_survey::Route::legSeconds ( ) const
inline

Return one-way travel duration at the configured speed.

Definition at line 461 of file route.h.

◆ length()

double pangea_survey::Route::length ( ) const
inline

Return route length in metres.

Definition at line 459 of file route.h.

Field Documentation

◆ config_

Config pangea_survey::Route::config_
private

Definition at line 453 of file route.h.

◆ length_

double pangea_survey::Route::length_
private

Definition at line 454 of file route.h.


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