Rise
The Vieneo Province
Loading...
Searching...
No Matches
TerrainAwareness.h File Reference
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdint>
#include <vector>
Include dependency graph for TerrainAwareness.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TerrainAwareness::Point
struct  TerrainAwareness::Flight
struct  TerrainAwareness::Cell
struct  TerrainAwareness::Obstacle
struct  TerrainAwareness::State
struct  TerrainAwareness::Polygon
struct  TerrainAwareness::Segment
class  TerrainAwareness::Predictor

Namespaces

namespace  TerrainAwareness

Enumerations

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

Functions

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

Variables

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