Rise
The Vieneo Province
Loading...
Searching...
No Matches
TerrainAwareness Namespace Reference

Classes

struct  AlertHold
class  AlertStability
struct  Cell
struct  Flight
struct  Obstacle
struct  Point
struct  Polygon
class  Predictor
struct  Segment
struct  State

Enumerations

enum class  Severity : uint8_t { None , Caution , Warning }

Functions

bool NeedsPrediction (float altitudeKm, float verticalKms, bool active)
Point Mix (Point a, Point b, float t)
float Cross (Point a, Point b, Point c)
float Distance (Point a, Point b)
Severity Max (Severity a, Severity b)
bool Finite (Point p)
bool Allowed (bool simulator, bool groundVehicle, bool airborne, float power)
bool DisplayAllowed (bool simulator, bool groundVehicle, float power)
uint32_t Color (float terrainKm, float altitudeKm, float verticalKms, bool gearDown, Severity severity, bool known=true, float displayRunwayKm=-100, bool onGround=false)

Variables

constexpr float AlertReleaseSeconds = 2.f
constexpr float CautionSeconds = 60
constexpr float WarningSeconds = 30
constexpr float ClearanceKm = .1524f
constexpr float MaxRangeKm = 60
constexpr float HighestTerrainKm = 9.525f
constexpr float TallestStructureKm = .915f
constexpr float SuspensionMarginKm = 1.f
constexpr float SuspensionHysteresisKm = .25f
constexpr int GridSize = 63

Enumeration Type Documentation

◆ Severity

enum class TerrainAwareness::Severity : uint8_t
strong
Enumerator
None 
Caution 
Warning 

Definition at line 28 of file TerrainAwareness.h.

Function Documentation

◆ Allowed()

bool TerrainAwareness::Allowed ( bool simulator,
bool groundVehicle,
bool airborne,
float power )
inline

Definition at line 38 of file TerrainAwareness.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Color()

uint32_t TerrainAwareness::Color ( float terrainKm,
float altitudeKm,
float verticalKms,
bool gearDown,
Severity severity,
bool known = true,
float displayRunwayKm = -100,
bool onGround = false )
inline

Definition at line 261 of file TerrainAwareness.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cross()

float TerrainAwareness::Cross ( Point a,
Point b,
Point c )
inline

Definition at line 32 of file TerrainAwareness.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DisplayAllowed()

bool TerrainAwareness::DisplayAllowed ( bool simulator,
bool groundVehicle,
float power )
inline

Definition at line 40 of file TerrainAwareness.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Distance()

float TerrainAwareness::Distance ( Point a,
Point b )
inline

Definition at line 34 of file TerrainAwareness.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Finite()

bool TerrainAwareness::Finite ( Point p)
inline

Definition at line 37 of file TerrainAwareness.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Max()

Severity TerrainAwareness::Max ( Severity a,
Severity b )
inline

Definition at line 36 of file TerrainAwareness.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Mix()

Point TerrainAwareness::Mix ( Point a,
Point b,
float t )
inline

Definition at line 30 of file TerrainAwareness.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NeedsPrediction()

bool TerrainAwareness::NeedsPrediction ( float altitudeKm,
float verticalKms,
bool active )
inline

Definition at line 21 of file TerrainAwareness.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ AlertReleaseSeconds

float TerrainAwareness::AlertReleaseSeconds = 2.f
constexpr

Definition at line 11 of file TerrainAlertStability.h.

◆ CautionSeconds

float TerrainAwareness::CautionSeconds = 60
constexpr

Definition at line 14 of file TerrainAwareness.h.

◆ ClearanceKm

float TerrainAwareness::ClearanceKm = .1524f
constexpr

Definition at line 15 of file TerrainAwareness.h.

◆ GridSize

int TerrainAwareness::GridSize = 63
constexpr

Definition at line 20 of file TerrainAwareness.h.

◆ HighestTerrainKm

float TerrainAwareness::HighestTerrainKm = 9.525f
constexpr

Definition at line 18 of file TerrainAwareness.h.

◆ MaxRangeKm

float TerrainAwareness::MaxRangeKm = 60

Definition at line 15 of file TerrainAwareness.h.

◆ SuspensionHysteresisKm

float TerrainAwareness::SuspensionHysteresisKm = .25f

Definition at line 19 of file TerrainAwareness.h.

◆ SuspensionMarginKm

float TerrainAwareness::SuspensionMarginKm = 1.f
constexpr

Definition at line 19 of file TerrainAwareness.h.

◆ TallestStructureKm

float TerrainAwareness::TallestStructureKm = .915f

Definition at line 18 of file TerrainAwareness.h.

◆ WarningSeconds

float TerrainAwareness::WarningSeconds = 30

Definition at line 14 of file TerrainAwareness.h.