#include <algorithm>
#include <vector>
#include <simgear/compiler.h>
#include <simgear/math/sg_geodesy.hxx>
#include <simgear/math/sg_random.hxx>
#include <Main/fg_props.hxx>
#include <Navaids/navlist.hxx>
#include "tacan.hxx"
Go to the source code of this file.
|
static double | adjust_range (double station_elevation_ft, double aircraft_altitude_ft, double max_range_nm) |
| Adjust the range.
|
|
◆ adjust_range()
static double adjust_range |
( |
double | station_elevation_ft, |
|
|
double | aircraft_altitude_ft, |
|
|
double | max_range_nm ) |
|
static |
Adjust the range.
Start by calculating the radar horizon based on the elevation difference, then clamp to the maximum, then add a fudge for borderline reception.
Definition at line 30 of file tacan.cxx.