GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> ATT / V1-3-2 > att_unit_test / rhel4-32
#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 |
#define M_SQRT2 1.41421356237309504880 |
Value for square root of 2.
The typedef for _att_test_entry.
int att_err | ( | const double | m, | |
const double | x | |||
) |
Makes sure that the difference |x - m | is within the limit dE.
m | The measured value. | |
x | The expected value. |
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.
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.
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.
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.
0 | Success. | |
-1 | Failure. |
void att_quat_print | ( | const char * | s, | |
const double * | Q | |||
) |
Print the values of a quaternion.
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.
M | The measured vector (x, y, z). | |
X | The expected vector (x, y, z). |
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.
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.
M | The measured vector (RA, DEC). | |
X | The expected vector (RA, DEC). |
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.
s | Title string. | |
Vs | The vector to print. |
Referenced by att_xform_test().
int att_xform_test | ( | void | ) |
Performs unit tests on ATT vector transform functions.
0 | Success. | |
-1 | Failure. |
References ASCTIME, ATT_exit(), ATT_get(), ATT_init(), att_quat_print(), ATT_update(), att_vec_cart_err(), att_vec_cart_print(), ATT_vec_cart_to_sphr_deg(), att_vec_shpr_err(), att_vec_sphr_print(), ATT_xform(), att_xform_time(), dumpLine, _att_test_entry::M_J_c, _att_test_entry::M_J_s, _att_test_entry::M_L_c, pointed_sun, pointed_sun_numEntries, _att_test_entry::Q, _att_test_entry::S_J_c, _att_test_entry::S_J_s, _att_test_entry::S_L_c, survey_0, survey_0_numEntries, survey_n30, survey_n30_numEntries, survey_p30, survey_p30_numEntries, _att_test_entry::time, _att_test_entry::Z_J_c, _att_test_entry::Z_J_s, and _att_test_entry::Z_L_c.
Referenced by att_unit_test().
WCT_time att_xform_time | ( | double | T | ) |
Transforms STK format time (seconds as a double) into a WCT value.
T | The time in seconds. |
Referenced by att_excep_test(), and att_xform_test().
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().