GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > ATT / V1-1-2

Constituent: att_unit_test     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

att_unit_test_data.c File Reference

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

#include "stdio.h"
#include "math.h"
#include "PBS/WCT.h"
#include "att_unit_test_private.h"
#include "survey_0.c"
#include "survey_p30.c"
#include "survey_n30.c"
#include "pointed_sun.c"

Include dependency graph for att_unit_test_data.c:

Include dependency graph

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.


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.

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.

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.

Here is the call graph for this function:

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.

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.

Here is the call graph for this function:

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.

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.


Variable Documentation

dumpLine
 

Initial value:

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


Generated on Mon Jun 13 20:18:00 2005 by doxygen 1.3.3