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_data.c File Reference

ATT package unit test sample data sets. More...

#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


Detailed Description

ATT package unit test sample data sets.

Author:
D.L. Wood

Define Documentation

#define dE   ((double) 0.001)

The error tolerance for the ATT unit tests.

Referenced by att_err().


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().

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 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

Initial value:

 
        "-------------------------------------------------------------------------------\n"
A separator line for display.

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


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