GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > GRBP / V1-0-1

Constituent: grbpsiu     Tag: rad750


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"

Include dependency graph for GRBP_gbmMsg.h:

This graph shows which files directly or indirectly include this file:


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.3 2007/10/27 20:28:26 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

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

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


Generated on Tue Sep 2 01:27:16 2008 by  doxygen 1.4.4