/*=============================================================================
 |
 |       Author:  William Kozma Jr
 |                wkozma@ntia.gov
 |                US Dept of Commerce, NTIA/ITS
 |                June 2021 : Geneva Study Group 3 Meetings
 |
 *===========================================================================*/

///////////////////////////////////////////////
// ERRORS
#define ERROR__TX_TERMINAL_HEIGHT               1000    // TX terminal height is out of range
#define ERROR__RX_TERMINAL_HEIGHT               1001    // RX terminal height is out of range
#define ERROR__FREQUENCY                        1002    // Frequency is out of range
#define ERROR__TX_POWER                         1003    // Transmit power is out of range
#define ERROR__SURFACE_REFRACTIVITY             1004    // Refractivity is out of range
#define ERROR__PATH_DISTANCE                    1005    // Path distance is out of range
#define ERROR__EPSILON                          1006    // Epsilon is out of range
#define ERROR__SIGMA                            1007    // Sigma is out of range
#define ERROR__POLARIZATION                     1008    // Invalid value for polarization

///////////////////////////////////////////////
// ENUMERATION VALUES

#define POLARIZATION__HORIZONTAL                0
#define POLARIZATION__VERTICAL                  1

#define METHOD__FLAT_EARTH_CURVE                0
#define METHOD__RESIDUE_SERIES                  1

///////////////////////////////////////////////
// Data Structures

struct Result
{
    double A_btl__db;
    double E_dBuVm;
    double P_rx__dbm;

    int method;
};

