GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> ATT / V1-3-2 > att_unit_test / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

att_unit_test_private.h File Reference

ATT package unit test program private definitions. More...

#include <PBS/WCT.h>

Classes

struct  _att_test_entry

Defines

#define M_SQRT2   1.41421356237309504880

Typedefs

typedef struct _att_test_entry att_test_entry

Functions

int att_param_test (void)
int att_xform_test (void)
int att_perf_test (void)
int att_excep_test (void)
int att_math_test (void)
WCT_time att_xform_time (double T)
void att_vec_cart_print (const char *s, const double *Vc)
void att_vec_sphr_print (const char *s, const double *Vs)
void att_quat_print (const char *s, const double *Q)
int att_err (double m, double x)
int att_vec_cart_err (const double *M, const double *X)
int att_vec_shpr_err (const double *M, const double *X)

Variables

att_test_entry survey_0 []
unsigned int survey_0_numEntries
att_test_entry survey_n30 []
unsigned int survey_n30_numEntries
att_test_entry survey_p30 []
unsigned int survey_p30_numEntries
att_test_entry pointed_sun []
unsigned int pointed_sun_numEntries
const char * dumpLine


Detailed Description

ATT package unit test program private definitions.

Author:
D.L. Wood

Define Documentation

#define M_SQRT2   1.41421356237309504880

Value for square root of 2.


Typedef Documentation

The typedef for _att_test_entry.


Function Documentation

int att_err ( const double  m,
const double  x 
)

Makes sure that the difference |x - m | is within the limit dE.

Parameters:
m The measured value.
x The expected value.
Return values:
0 Error is within limit.
1 Error is out of limit.

References dE.

Referenced by att_math_test(), att_vec_cart_err(), and att_vec_shpr_err().

int att_excep_test ( void   ) 

Performs unit tests on ATT exception handling.

Return values:
0 Success.
-1 Failure.

References ATT_exit(), ATT_get(), ATT_init(), ATT_reset(), ATT_update(), ATT_xform(), att_xform_time(), _att_test_entry::Q, survey_0, survey_0_numEntries, and _att_test_entry::time.

Referenced by att_unit_test().

int att_math_test ( void   ) 

Performs unit tests on ATT math utility functions.

Return values:
0 Success.
-1 Failure.

References att_err(), ATT_quat_conjugate(), ATT_quat_magnitude(), ATT_quat_multiply(), ATT_quat_normalize(), att_quat_print(), att_vec_cart_print(), ATT_vec_magnitude(), ATT_vec_normalize(), and dumpLine.

Referenced by att_unit_test().

int att_param_test ( void   ) 

Performs unit tests for ATT function parameter validation.

Return values:
0 Success.
-1 Failure.

References ATT_exit(), ATT_get(), ATT_init(), ATT_lookup(), ATT_range(), ATT_reset(), ATT_update(), ATT_xform(), and dumpLine.

Referenced by att_unit_test().

int att_perf_test ( void   ) 

Performance tests for ATT computations.

Return values:
0 Success.
-1 Failure.

void att_quat_print ( const char *  s,
const double *  Q 
)

Print the values of a quaternion.

Parameters:
s Title string.
Q The quaternion to print.

Referenced by att_math_test(), and att_xform_test().

int att_vec_cart_err ( const double *  M,
const double *  X 
)

Makes sure that the difference of vector components |x - m | is within the limit dE.

Parameters:
M The measured vector (x, y, z).
X The expected vector (x, y, z).
Return values:
0 Error is within limit.
1 Error is out of limit for [0] component.
2 Error is out of limit for [0] component.
3 Error is out of limit for [0] component.

References att_err().

Referenced by att_xform_test().

void att_vec_cart_print ( const char *  s,
const double *  Vc 
)

Print the values of a cartesian vector.

Parameters:
s Title string.
Vc The vector to print.

Referenced by att_math_test(), and att_xform_test().

int att_vec_shpr_err ( const double *  M,
const double *  X 
)

Makes sure that the difference of vector components |x - m | is within the limit dE.

Parameters:
M The measured vector (RA, DEC).
X The expected vector (RA, DEC).
Return values:
0 Error is within limit.
1 Error is out of limit for [0] component.
2 Error is out of limit for [1] component.

References att_err().

Referenced by att_xform_test().

void att_vec_sphr_print ( const char *  s,
const double *  Vs 
)

Print the values of a spherical vector.

Parameters:
s Title string.
Vs The vector to print.

Referenced by att_xform_test().

int att_xform_test ( void   ) 

WCT_time att_xform_time ( double  T  ) 

Transforms STK format time (seconds as a double) into a WCT value.

Parameters:
T The time in seconds.
Returns:
The time as a WCT value.

Referenced by att_excep_test(), and att_xform_test().


Variable Documentation

const char* dumpLine

A display separator string

A separator line for display.

Referenced by att_math_test(), att_param_test(), att_unit_test(), and att_xform_test().

Pointed observation simulation data set

Referenced by att_xform_test().

unsigned int pointed_sun_numEntries

Pointed observation simulation data size

Referenced by att_xform_test().

Sky survey simulation data set

Referenced by att_excep_test(), and att_xform_test().

unsigned int survey_0_numEntries

Sky survey simulation data size

Referenced by att_excep_test(), and att_xform_test().

Sky survey simulation data set

Referenced by att_xform_test().

unsigned int survey_n30_numEntries

Sky survey simulation data size

Referenced by att_xform_test().

Sky survey simulation data set

Referenced by att_xform_test().

unsigned int survey_p30_numEntries

Sky survey simulation data size

Referenced by att_xform_test().


Generated on Tue Nov 29 18:20:51 2011 by  doxygen 1.5.8