GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GRBP / V1-0-4 > grbpsiu / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

GRBP_gbmMsg.h File Reference

Collection of utilities to convert values in the GBM messages to standard units. More...

#include <GRBP_math.h>

Functions

static __inline double GRBP__gbmMsgToTimeDouble (unsigned int tenths_secs, unsigned short int two_usecs)
 Converts the time as presented a GBM message to a double with units of a second.
static __inline double GRBP__gbmMsgToThetaDouble (signed short int dec)
 Convert the declination, expressed in arcmins to theta.
static __inline double GRBP__gbmMsgToPhiDouble (unsigned short int ra)
 Converts the right ascension, in arcmins, to PHI.


Detailed Description

Collection of utilities to convert values in the GBM messages to standard units.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: GRBP_gbmMsg.h,v 1.4 2011/03/30 22:11:51 russell Exp $

Function Documentation

static __inline double GRBP__gbmMsgToPhiDouble ( unsigned short int  ra  )  [static]

Converts the right ascension, in arcmins, to PHI.

Returns:
PHI, in radians
Parameters:
ra The right ascension, in arcmins

Referenced by gbmCalculateHandler().

static __inline double GRBP__gbmMsgToThetaDouble ( signed short int  dec  )  [static]

Convert the declination, expressed in arcmins to theta.

Returns:
Theta, in radians
Parameters:
dec The declination, arcmins

Referenced by gbmCalculateHandler().

static __inline double GRBP__gbmMsgToTimeDouble ( unsigned int  tenths_secs,
unsigned short int  two_usecs 
) [static]

Converts the time as presented a GBM message to a double with units of a second.

Returns:
The converted time
Parameters:
tenths_secs The number tenths seconds since the epoch
two_usecs The usecs part of the time since the epoch in two two microsecond units. Note that this value need only cover to .1 second (100,000 usecs), but since the unit are 2 usecs, need only go to 50,000. (Who comes up with this stuff?)

Referenced by gbmCalculateHandler(), and GRBP_gbmRepointMsgTime().


Generated on Tue Nov 29 17:07:16 2011 by  doxygen 1.5.8