ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
Static Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
larcfm::Constants Class Reference

#include <Constants.h>

Static Public Member Functions

static void set_time_accuracy (double acc)
 
static void set_horizontal_accuracy (double acc)
 
static void set_vertical_accuracy (double acc)
 
static double get_time_accuracy ()
 
static double get_horizontal_accuracy ()
 
static double get_vertical_accuracy ()
 
static double get_latlon_accuracy ()
 
static int get_output_precision ()
 
static void set_output_precision (int i)
 
static void set_trailing_zeros (bool b)
 
static bool get_trailing_zeros ()
 
static bool almost_equals_time (double t1, double t2)
 
static bool almost_equals_xy (double x1, double y1, double x2, double y2)
 
static bool almost_equals_distance (double d)
 
static bool almost_equals_radian (double d1, double d2)
 
static bool almost_equals_radian (double d)
 
static bool almost_equals_alt (double a1, double a2)
 

Static Public Attributes

static const std::string separatorPattern = ",;"
 
static const std::string wsPatternBase = "[\t ,;]+"
 
static const std::string wsPatternBaseNoRegex = " \t,;"
 
static const std::string wsPatternParens = "() \t,;"
 
static const std::string wsPatternBraces = "[] \t,;"
 
static const std::string version = larcfm::FormalATM_version
 
static const std::string build_date = __DATE__
 
static const std::string build_time = __TIME__
 
static const double GPS_LIMIT_HORIZONTAL = larcfm::FormalATM_GPS_LIMIT_HORIZONTAL
 
static const double GPS_LIMIT_VERTICAL = larcfm::FormalATM_GPS_LIMIT_VERTICAL
 
static const double TIME_LIMIT_EPSILON = larcfm::FormalATM_TIME_LIMIT_EPSILON
 
static const double NO_TIME_LIMIT_EPSILON = FormalATM_NO_TIME_LIMIT_EPSILON
 
static const double NO_TIME = FormalATM_NO_TIME
 

Static Private Attributes

static double HORIZONTAL_ACCURACY = 1E-7
 
static double VERTICAL_ACCURACY = 1E-7
 
static double HORIZONTAL_ACCURACY_RAD = Units::to("NM", Constants::HORIZONTAL_ACCURACY) * M_PI / (180.0 * 60.0)
 
static double TIME_ACCURACY = 1E-7
 
static int OUTPUT_PRECISION = 6
 
static bool TRAILING_ZEROS = true
 

Detailed Description

Key parameters for all of Util. Despite the name, not everything is a constant.

Member Function Documentation

◆ almost_equals_alt()

bool larcfm::Constants::almost_equals_alt ( double  a1,
double  a2 
)
static

Return true, if these two altitudes are within the vertical accuracy of each other

Parameters
a1an altitude
a2another altitude
Returns
true, if almost equals

◆ almost_equals_distance()

bool larcfm::Constants::almost_equals_distance ( double  d)
static

Return true, if this distance [m] is within the horizontal accuracy of zero

Parameters
ddistance
Returns
true, if almost equals

◆ almost_equals_radian() [1/2]

bool larcfm::Constants::almost_equals_radian ( double  d)
static

Return true, if this angle [rad] is within the horizontal accuracy of zero

Parameters
ddistance
Returns
true, if almost equals

◆ almost_equals_radian() [2/2]

bool larcfm::Constants::almost_equals_radian ( double  d1,
double  d2 
)
static

Return true, if these two angles [rad] are within the horizontal accuracy of each other

Parameters
d1a distance
d2another distance
Returns
true, if almost equals

◆ almost_equals_time()

bool larcfm::Constants::almost_equals_time ( double  t1,
double  t2 
)
static

Return true, if these two times are within the time accuracy of each other

Parameters
t1a time
t2another time
Returns
true, if almost equals

◆ almost_equals_xy()

bool larcfm::Constants::almost_equals_xy ( double  x1,
double  y1,
double  x2,
double  y2 
)
static

Return true, if these two positions [m] within the horizontal accuracy of each other

Parameters
x1x coordinate for first value
y1y coordinate for first value
x2x coordinate for second value
y2y coordinate for second value
Returns
true, if xy values are almost equals

◆ get_horizontal_accuracy()

double larcfm::Constants::get_horizontal_accuracy ( )
static

Return the horizontal accuracy value (in meters)

Returns
horizontal accuracy

◆ get_latlon_accuracy()

double larcfm::Constants::get_latlon_accuracy ( )
static

Return the horizontal accuracy value (in radians)

Returns
horizontal accuracy

◆ get_output_precision()

int larcfm::Constants::get_output_precision ( )
static

return default precision for output values

Returns
number of digits of precision

◆ get_time_accuracy()

double larcfm::Constants::get_time_accuracy ( )
static

Return the time accuracy value (in seconds)

Returns
time accuracy

◆ get_trailing_zeros()

bool larcfm::Constants::get_trailing_zeros ( )
static

return true if trailing zeros are enabled

Returns
true, if trailing zeros

return true if trailing zeros are enabled

◆ get_vertical_accuracy()

double larcfm::Constants::get_vertical_accuracy ( )
static

Return the vertical accuracy value (in meters)

Returns
vertical accuracy

◆ set_horizontal_accuracy()

void larcfm::Constants::set_horizontal_accuracy ( double  acc)
static

Set the horizontal accuracy value. This value means any two positions that are within this value of each other are considered the same [m].

Parameters
accaccuracy

◆ set_output_precision()

void larcfm::Constants::set_output_precision ( int  i)
static

set default precision for output values (0-16)

Parameters
inumber of digits of precision

◆ set_time_accuracy()

void larcfm::Constants::set_time_accuracy ( double  acc)
static

Set the time accuracy value. This value means any two times that are within this value of each other are considered the same [s].

Parameters
accaccuracy

◆ set_trailing_zeros()

void larcfm::Constants::set_trailing_zeros ( bool  b)
static

set default trailing zeros in format printing

Parameters
benable/disable trailing zeros

◆ set_vertical_accuracy()

void larcfm::Constants::set_vertical_accuracy ( double  acc)
static

Set the vertical accuracy value. This value means any two positions that are within this value of each other are considered the same [m].

Parameters
accaccuracy

Member Data Documentation

◆ build_date

const std::string larcfm::Constants::build_date = __DATE__
static

String indicating the build date. Note this only changes if Constants is recompiled (e.g. during a full build). Partial compilations may not update this value.

◆ build_time

const std::string larcfm::Constants::build_time = __TIME__
static

String indicating the build time. Note this only changes if Constants is recompiled (e.g. during a full build). Partial compilations may not update this value.

◆ GPS_LIMIT_HORIZONTAL

const double larcfm::Constants::GPS_LIMIT_HORIZONTAL = larcfm::FormalATM_GPS_LIMIT_HORIZONTAL
static

WAAS specification requirements (25 ft) for horizontal accuracy, 95% of the time. In practice, the actual accuracy is much better.

◆ GPS_LIMIT_VERTICAL

const double larcfm::Constants::GPS_LIMIT_VERTICAL = larcfm::FormalATM_GPS_LIMIT_VERTICAL
static

WAAS specification requirements (25 ft) for vertical accuracy, 95% of the time.

◆ TIME_LIMIT_EPSILON

const double larcfm::Constants::TIME_LIMIT_EPSILON = larcfm::FormalATM_TIME_LIMIT_EPSILON
static

Most GPS units update with a frequency of at least 1 HZ.

◆ version

const std::string larcfm::Constants::version = larcfm::FormalATM_version
static

String indicating the version

◆ wsPatternBase

const std::string larcfm::Constants::wsPatternBase = "[\t ,;]+"
static

Default pattern string representing whitespace in input files. This does not include parentheses or braces.

◆ wsPatternBaseNoRegex

const std::string larcfm::Constants::wsPatternBaseNoRegex = " \t,;"
static

Default pattern string representing whitespace in input files. This does not include parentheses or braces.

◆ wsPatternBraces

const std::string larcfm::Constants::wsPatternBraces = "[] \t,;"
static

Default pattern string representing whitespace in input files. This includes square braces.

◆ wsPatternParens

const std::string larcfm::Constants::wsPatternParens = "() \t,;"
static

Default pattern string representing whitespace in input files. This includes parentheses.


The documentation for this class was generated from the following files: