Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

DMUTemperatureSensor.h

Go to the documentation of this file.
00001 /************************************************************************************************/
00002 /*! \file DMUTemperatureSensor.h
00003 *  \brief The DMUTemperatureSensor class provides the interface for the DMU h/w temperature sensors.
00004 *  \author $Author: cakinli $
00005 *  \version $Revision: 1.3 $
00006 *  \date    $Date: 2005/03/16 18:08:17 $
00007 ************************************************************************************************/
00008 /*! 
00009 * \todo Implement conversion from what DMU returns to degrees C
00010 ************************************************************************************************/
00011 
00012 #ifndef __SSSL_DMU_TEMPERATURE_SENSOR_H__
00013 #define __SSSL_DMU_TEMPERATURE_SENSOR_H__
00014 
00015 #include <Sensors/TemperatureSensor.h>
00016 
00017 class DMUTemperatureSensor : public TemperatureSensor  
00018 {
00019 public:
00020         // Contructors/Deconstructors
00021     DMUTemperatureSensor();
00022     virtual ~DMUTemperatureSensor();
00023         
00024         // Facilitators
00025         
00026                 // Inspectors
00027         
00028                         /*! Gets current measurement */
00029                         inline Measurement GetMeasurement() {
00030                                 
00031                                 double timeStamp = 0.0, tempData = 0.0;
00032                                 m_DMU->GetReading(m_idNumber, timeStamp, tempData);
00033 
00034                                 /* Set up measurement to return */
00035                                 Measurement tempMeasurement(timeStamp, tempData);
00036                                 
00037                                 return tempMeasurement;
00038                                 
00039                         };
00040                         
00041                         /*! Gets sensor location */
00042                         inline Vector GetLocation() { return m_DMU->GetLocation(); };
00043                         
00044 protected:
00045         
00046 private:
00047 
00048         DMU* m_DMU;      /*!< pointer to the instance of the DMU physical device */
00049         int  m_idNumber; /*!< identification for rate gyro in DMU physical device pack */
00050                         
00051 };
00052 
00053 #endif 
00054 // Do not change the comments below - they will be added automatically by CVS
00055 /*****************************************************************************
00056 *       $Log: DMUTemperatureSensor.h,v $
00057 *       Revision 1.3  2005/03/16 18:08:17  cakinli
00058 *       *** empty log message ***
00059 *       
00060 *       Revision 1.2  2003/06/26 20:12:40  mavandyk
00061 *       Added code to inline functions for the calls to the DMU class.
00062 *       
00063 *       Revision 1.1  2003/06/25 21:48:40  mavandyk
00064 *       Alter architechture of class structure.
00065 *       
00066 *       Revision 1.1.1.1  2003/06/06 18:44:15  simpliciter
00067 *       Initial submission.
00068 *       
00069 *
00070 ******************************************************************************/

Generated on Wed Sep 5 12:54:20 2007 for DSACSS Operational Code by  doxygen 1.3.9.1