00001 /*************************************************************************** 00002 Accelerometer.h - description 00003 ------------------- 00004 begin : lun jui 08 2003 00005 copyright : (C) 2003 by Michel Dubois, Yann Le Guyadec 00006 email : Michel.Dubois@univ-ubs.fr, Yann.Le-Guyadec@univ-ubs.fr 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 // Modèle statique 00019 /* 00020 * changes : 00021 * - 08/06/03 MD Creation (accel)! 00022 */ 00023 00024 00025 #ifndef __ACCELEROMETER__ 00026 #define __ACCELEROMETER__ 00027 00028 00029 // Include files 00030 #include "Sensor.h" 00031 #include "Atom.h" 00032 namespace API { 00033 class Atom; 00037 class Accelerometer : public Sensor 00038 { 00039 public: 00040 00041 Accelerometer(); 00042 virtual ~Accelerometer(); 00043 Atom * getAtom() const; 00044 unsigned int getID() const; 00045 double toMSminus2() const; 00046 double toG() const; 00047 00048 protected: 00049 void setAtom(Atom * anAtom); 00050 void setID(unsigned int anAccelerometerID); 00051 Atom * atom; 00052 unsigned int ID; 00053 00054 00055 };// END CLASS DEFINITION Accelerometer 00056 } 00057 #endif // __ACCELEROMETER__