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::CameraAltitude Class Reference

Apply the route's chosen terrain-following or fixed-start altitude policy. More...

#include <route.h>

Public Member Functions

 CameraAltitude (const Config &config)
 Initialize altitude policy from a validated route configuration.
double at (double ground, double routeAgl, bool settled)
 Compute camera AMSL altitude for one terrain sample.
bool locked () const
 Report whether fixed-start AMSL has been latched.

Private Attributes

bool lockStart_
double startAgl_
std::optional< double > lockedMsl_

Detailed Description

Apply the route's chosen terrain-following or fixed-start altitude policy.

A fixed altitude is latched only after the initial camera has settled; before then the provisional value follows current terrain plus configured AGL.

Definition at line 419 of file route.h.

Constructor & Destructor Documentation

◆ CameraAltitude()

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

Initialize altitude policy from a validated route configuration.

Definition at line 425 of file route.h.

Member Function Documentation

◆ at()

double pangea_survey::CameraAltitude::at ( double ground,
double routeAgl,
bool settled )
inline

Compute camera AMSL altitude for one terrain sample.

Parameters
[in]groundGround elevation AMSL in metres.
[in]routeAglRequested route height above ground in metres.
[in]settledWhether the initial settled position may be latched.
Returns
Camera altitude AMSL in metres.
Exceptions
std::runtime_errorIf either input height is nonfinite.

Definition at line 436 of file route.h.

◆ locked()

bool pangea_survey::CameraAltitude::locked ( ) const
inline

Report whether fixed-start AMSL has been latched.

Definition at line 444 of file route.h.

Field Documentation

◆ lockedMsl_

std::optional<double> pangea_survey::CameraAltitude::lockedMsl_
private

Definition at line 422 of file route.h.

◆ lockStart_

bool pangea_survey::CameraAltitude::lockStart_
private

Definition at line 420 of file route.h.

◆ startAgl_

double pangea_survey::CameraAltitude::startAgl_
private

Definition at line 421 of file route.h.


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