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

Go to the source code of this file.

Classes

struct  WeatherRadarModel::Sample
struct  WeatherRadarModel::Input
struct  WeatherRadarModel::Beam
class  WeatherRadarModel::Scanner

Namespaces

namespace  WeatherRadarModel

Enumerations

enum class  WeatherRadarModel::Echo : uint8_t {
  WeatherRadarModel::Clear , WeatherRadarModel::Green , WeatherRadarModel::Yellow , WeatherRadarModel::Red ,
  WeatherRadarModel::Purple , WeatherRadarModel::Shadow , WeatherRadarModel::Missing , WeatherRadarModel::TerrainShadow ,
  WeatherRadarModel::OutsideCoverage
}

Functions

double WeatherRadarModel::AntennaIntegral (double lowDegrees, double highDegrees)
double WeatherRadarModel::GroundLevel (double illuminatedFraction, double gateKm, double waterFraction)
double WeatherRadarModel::PathExtinctionPerKm (double level)
double WeatherRadarModel::Dot (Point a, Point b)
double WeatherRadarModel::Length (Point a)
bool WeatherRadarModel::Finite (Point a)
Point WeatherRadarModel::Unit (Point a)
Point WeatherRadarModel::Cross (Point a, Point b)
void WeatherRadarModel::MapFrame (Point position, double headingDegrees, Point &forward, Point &right)
Echo WeatherRadarModel::Classify (double level)
uint32_t WeatherRadarModel::Color (Echo echo)
bool WeatherRadarModel::ValidSample (const Sample &cell)
Echo WeatherRadarModel::MergeEcho (Echo a, Echo b)
bool WeatherRadarModel::AboveWeatherCoverage (double mslKm, bool feedSuspended, double topKm, double resumeKm)

Variables

constexpr double WeatherRadarModel::Pi = 3.14159265358979323846
constexpr int WeatherRadarModel::Bearings = 121
constexpr int WeatherRadarModel::Gates = 128
constexpr double WeatherRadarModel::MaxRangeKm = 64
constexpr double WeatherRadarModel::HalfSweepDegrees = 60
constexpr double WeatherRadarModel::TraverseSeconds = 4
constexpr double WeatherRadarModel::MemorySeconds = TraverseSeconds * 2 + .25
constexpr double WeatherRadarModel::WeatherExtinctionPerKm = .12
constexpr double WeatherRadarModel::RangeExtinctionPerKm = .0015
constexpr double WeatherRadarModel::ShadowTransmission = .06
constexpr double WeatherRadarModel::SourceTimeoutSeconds = 360
constexpr double WeatherRadarModel::WeatherBeamDegrees = 5.6
constexpr double WeatherRadarModel::GroundHalfBeamDegrees = 5
constexpr std::array< double, 9 > WeatherRadarModel::ElevationDegrees {{-5,-4,-2.8,-1.4,0,1.4,2.8,4,5}}
constexpr int WeatherRadarModel::CenterRay = 4
constexpr double WeatherRadarModel::AutoTiltRangeFraction = .8
constexpr double WeatherRadarModel::MaxTiltDegrees = 15