GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> ATT / V1-3-2 > att_unit_test / rhel4-32
#include <att_unit_test_private.h>
#include <PBS/WCT.h>
#include <stdio.h>
#include <math.h>
#include <survey_0.c>
#include <survey_p30.c>
#include <survey_n30.c>
#include <pointed_sun.c>
Defines | |
#define | dE ((double) 0.001) |
Functions | |
WCT_time | att_xform_time (double T) |
void | att_quat_print (const char *s, const double *Q) |
void | att_vec_cart_print (const char *s, const double *Vc) |
void | att_vec_sphr_print (const char *s, const double *Vs) |
int | att_err (const double m, const 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 | |
const char * | dumpLine |
#define dE ((double) 0.001) |
The error tolerance for the ATT unit tests.
Referenced by att_err().
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().
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 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().
Initial value:
"-------------------------------------------------------------------------------\n"
Referenced by att_math_test(), att_param_test(), att_unit_test(), and att_xform_test().