Gyro.H

Go to the documentation of this file.
00001 /*!@file Devices/Gyro.H Interface to a GyroMouse */
00002 
00003 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/Devices/Gyro.H $
00004 // $Id: Gyro.H 4663 2005-06-23 17:47:28Z rjpeters $
00005 
00006 #ifndef GYRO_H_DEFINED
00007 #define GYRO_H_DEFINED
00008 
00009 #include<pthread.h>
00010 #include<unistd.h>
00011 
00012 // This class allows us to use a ps2 gyromouse as an angle sensor
00013 class Gyro
00014 {
00015 public:
00016   Gyro();
00017   void go();
00018   void getAngle( int & , int & );
00019   void setAngle( int , int );
00020 
00021 private:
00022   int xpos;
00023   int ypos;
00024   int xdpos;
00025   int ydpos;
00026   pthread_t runner;
00027 };
00028 #endif
00029 
00030 // ######################################################################
00031 /* So things look consistent in everyone's emacs... */
00032 /* Local Variables: */
00033 /* indent-tabs-mode: nil */
00034 /* End: */
Generated on Sun May 8 08:04:45 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3