Eaagles Namespace Reference


Classes

class  Hsi
class  Repeater
class  TrackTarget

Namespaces

namespace  Basic
namespace  BasicGL
namespace  Dafif
namespace  DeviceIO
namespace  Fltk
namespace  Fox
namespace  Instruments
namespace  MovingMap
namespace  Network
namespace  Otw
namespace  Sensor
namespace  Simulation
namespace  Terrain
namespace  Vehicle

Typedefs

typedef float LCreal

Functions

LCreal lcMax (const LCreal v1, const LCreal v2)
LCreal lcMin (const LCreal v1, const LCreal v2)
int nint (const LCreal x)
LCreal alim (const LCreal x, const LCreal limit)
float alimf (const float x, const float limit)
double alimd (const double x, const double limit)
LCreal lim01 (const LCreal x)
LCreal deadband (const LCreal x, const LCreal limit)
bool inRange (const LCreal x, const LCreal lo, const LCreal hi)
void lcSleep (const unsigned int msec)
double getTimeUtc ()
double getComputerTime ()
bool doesFileExist (const char *const fullname)
void lcPreMultVec4Array (const osg::Vec4 orig[], const osg::Matrix &matrix, osg::Vec4 result[], const int n)
void lcPostMultVec4Array (const osg::Vec4 orig[], const osg::Matrix &matrix, osg::Vec4 result[], const int n)
void lcSinCos (const LCreal angleRad, LCreal *const sine, LCreal *const cosine)
void lcMultArrayConst (const LCreal *const src, const LCreal c, LCreal *const dst, const int n)
void lcSqrtArray (const LCreal *const src, LCreal *const dst, const int n)
void lcSinArray (const LCreal *const anglesRad, LCreal *const sines, const int n)
void lcCosArray (const LCreal *const anglesRad, LCreal *const cosines, const int n)
void lcSinCosArray (const LCreal *const anglesRad, LCreal *const sines, LCreal *const cosines, const int n)
void lcAcosArray (const LCreal *const anglesRad, LCreal *const acosines, const int n)
void lcAtan2Array (const LCreal *const yValues, const LCreal *const xValues, LCreal *const atans, const int n)
void lcPow10Array (const LCreal *const src, LCreal *const dst, const int n)
void lcInt2Str (const int num, char *const str, int width)
bool lcStrcpy (char *const strDest, const size_t sizeOfDest, const char *const strSource)
bool lcStrncpy (char *const strDest, const size_t sizeOfDest, const char *const strSource, const size_t count)
bool lcStrcat (char *const strDest, const size_t sizeOfDest, const char *const strSource)

Variables

const LCreal M_PI = 3.1415926f
const LCreal lightSpeed = 2.997925e+8f
const LCreal boltzmann = 1.38065e-23f
const LCreal ERAD = 3443.933577689f
const LCreal ETHG = 32.16f
const LCreal INCH2MBAR = (1013.2f / 29.92f)
const LCreal MBAR2INCH = (1.0f / INCH2MBAR)
const LCreal UNDEFINED_VALUE = FLT_MIN
const LCreal INIT_VALUE = 0.0f
const int INIT_INT_VALUE = 0
const int INIT_SELECT_VALUE = 1
const LCreal INIT_TIME_VALUE = 0.0f
const LCreal INIT_DIRECTION_VALUE = 0.0f
const LCreal INIT_LATITUDE_VALUE = 0.0f
const LCreal INIT_LONGITUDE_VALUE = 0.0f
 longTickMarkLength
 shortTickMarkLength
const int SHORT_TIC_MARKS_MAX = 36
const int LONG_TIC_MARKS_MAX = 36


Detailed Description

Common support data and functions

    Note: The "Lc" prefix stands for "Link class" in honor of Ed Link, who
          invented the "Link Blue Box", which was the first flight simulator.


Typedef Documentation

typedef float Eaagles::LCreal


Function Documentation

LCreal Eaagles::alim ( const LCreal  x,
const LCreal  limit 
) [inline]

alim -- limits the value of x to +/-limit.

double Eaagles::alimd ( const double  x,
const double  limit 
) [inline]

alimd -- limits the value of x to +/-limit.

float Eaagles::alimf ( const float  x,
const float  limit 
) [inline]

alimf -- limits the value of x to +/-limit.

LCreal Eaagles::deadband ( const LCreal  x,
const LCreal  limit 
) [inline]

deadband -- clamps to zero the values of x within +/-limit.

bool Eaagles::doesFileExist ( const char *const  fullname  ) 

doesFileExist -- returns true if file exists

double Eaagles::getComputerTime (  ) 

Computer time (seconds).

double Eaagles::getTimeUtc (  ) 

UTC time of day (seconds since midnight).

bool Eaagles::inRange ( const LCreal  x,
const LCreal  lo,
const LCreal  hi 
) [inline]

inRange -- is a number bounded by lo and hi

void Eaagles::lcAcosArray ( const LCreal *const  anglesRad,
LCreal *const   acosines,
const int  n 
)

Computes the arc-cosines of an array of 'n' angles (radians).

void Eaagles::lcAtan2Array ( const LCreal *const  yValues,
const LCreal *const  xValues,
LCreal *const   atans,
const int  n 
)

Computes the arc-tangants for two, 'n' element arrays (yValues and xValues).

void Eaagles::lcCosArray ( const LCreal *const  anglesRad,
LCreal *const   cosines,
const int  n 
)

Computes the cosines of an array of 'n' angles (radians).

void Eaagles::lcInt2Str ( const int  num,
char *const   str,
int  width 
)

Converts the integer number, 'num', to an ascii string.

LCreal Eaagles::lcMax ( const LCreal  v1,
const LCreal  v2 
) [inline]

maximim value of v1 or v2

LCreal Eaagles::lcMin ( const LCreal  v1,
const LCreal  v2 
) [inline]

minimum value of v1 or v2

void Eaagles::lcMultArrayConst ( const LCreal *const  src,
const LCreal  c,
LCreal *const   dst,
const int  n 
)

Mutiply an array of reals with a constant.

void Eaagles::lcPostMultVec4Array ( const osg::Vec4  orig[],
const osg::Matrix &  matrix,
osg::Vec4  result[],
const int  n 
)

Post-multiply an array of 4D vectors with a 4x4 matrix.

void Eaagles::lcPow10Array ( const LCreal *const  src,
LCreal *const   dst,
const int  n 
)

Raises 10 to the power of 'n' src values and returns the results in 'dst'.

void Eaagles::lcPreMultVec4Array ( const osg::Vec4  orig[],
const osg::Matrix &  matrix,
osg::Vec4  result[],
const int  n 
)

Pre-multiply an array of 4D vectors with a 4x4 matrix.

void Eaagles::lcSinArray ( const LCreal *const  anglesRad,
LCreal *const   sines,
const int  n 
)

Computes the sines of an array of 'n' angles (radians).

void Eaagles::lcSinCos ( const LCreal  angleRad,
LCreal *const   sine,
LCreal *const   cosine 
)

Returns the sine and cosine of an angle (radians).

void Eaagles::lcSinCosArray ( const LCreal *const  anglesRad,
LCreal *const   sines,
LCreal *const   cosines,
const int  n 
)

Computes the sines and cosines of an array of 'n' angles (radians).

void Eaagles::lcSleep ( const unsigned int  msec  ) 

Sleep for 'msec' milliseconds.

void Eaagles::lcSqrtArray ( const LCreal *const  src,
LCreal *const   dst,
const int  n 
)

Computes the square roots of 'n' real values.

bool Eaagles::lcStrcat ( char *const   strDest,
const size_t  sizeOfDest,
const char *const  strSource 
)

String cat function: Appends a string from 'strSource' to the end of 'strDest'. The new destination string is null terminated. If the source string is too large for the destination, then the source string is truncated at (sizeOfDest-1) characters and null terminated.

bool Eaagles::lcStrcpy ( char *const   strDest,
const size_t  sizeOfDest,
const char *const  strSource 
)

String copy function: Copies a string from 'strSource' to 'strDest'. The destination string is null terminated. If the source string is too large for the destination, then the source string is truncated at (sizeOfDest-1) characters and null terminated.

bool Eaagles::lcStrncpy ( char *const   strDest,
const size_t  sizeOfDest,
const char *const  strSource,
const size_t  count 
)

String N copy function: Copies up to 'count' characters from 'strSource' to 'strDest'. The destination string is null terminated. If the 'count' characters from the source string is too large for the destination, then the source string is truncated at (sizeOfDest-1) characters and null terminated.

LCreal Eaagles::lim01 ( const LCreal  x  )  [inline]

lim01 -- limits the value of x between 0.0 and 1.0

int Eaagles::nint ( const LCreal  x  )  [inline]

nint -- nearest integer


Variable Documentation

const LCreal Eaagles::boltzmann = 1.38065e-23f

const LCreal Eaagles::ERAD = 3443.933577689f

Equatorial radius of the Earth in nautical miles This is an estimated average. The Earth is not a perfect sphere ### DPG Need source ####

const LCreal Eaagles::ETHG = 32.16f

One "G" to feet per second per second [This is an estimated average. ### DPG Need source ####] [One actual "G" is a function of latitude, longitude, and other exotic parameters.]

const LCreal Eaagles::INCH2MBAR = (1013.2f / 29.92f)

Convert Barometric Pressure (Inches Mercury to/from Millibars) This is an estimate. ### DPG Need source ####

const LCreal Eaagles::INIT_DIRECTION_VALUE = 0.0f

const int Eaagles::INIT_INT_VALUE = 0

const LCreal Eaagles::INIT_LATITUDE_VALUE = 0.0f

const LCreal Eaagles::INIT_LONGITUDE_VALUE = 0.0f

const int Eaagles::INIT_SELECT_VALUE = 1

const LCreal Eaagles::INIT_TIME_VALUE = 0.0f

const LCreal Eaagles::INIT_VALUE = 0.0f

const LCreal Eaagles::lightSpeed = 2.997925e+8f

Standard constants ---- Source: National Institude of Science & Technology (NIST) web site Speed of light: 299,792,458 m/s Boltzmann constant: 1.3806503E-23 (Joules/Kelvin) 0.0000024E-23 (uncertainty)

const int Eaagles::LONG_TIC_MARKS_MAX = 36

total number of long tic marks

Eaagles::longTickMarkLength

const LCreal Eaagles::M_PI = 3.1415926f

const LCreal Eaagles::MBAR2INCH = (1.0f / INCH2MBAR)

const int Eaagles::SHORT_TIC_MARKS_MAX = 36

total number of short tic marks

Eaagles::shortTickMarkLength

const LCreal Eaagles::UNDEFINED_VALUE = FLT_MIN


Generated on Tue Dec 19 16:26:03 2006 for Eaagles by  doxygen 1.5.0