D:/DRISSI/arduino-0022/arduino-0022/libraries/uSonic/uSonic.h
Go to the documentation of this file.
00001 
00005 #ifndef uSonic_h
00006 #define uSonic_h
00007 
00008 
00009 #include <WProgram.h>
00010 #include <../Wire/Wire.h>
00011 
00012 
00013 /*
00014   uSonic.h - Library for reading value from each ultrasonic sensor
00015   from Vicatronic (SRF235 Robot-Electronics)
00016 
00017 
00018   Copyright (c) 2011 David Drissi.  All right reserved.
00019   Property of the University of Angers.
00020 
00021   Contact : philippe.lucidarme@univ-angers.fr
00022 
00023   This library is distributed in the hope that it will be useful,
00024   but WITHOUT ANY WARRANTY; without even the implied warranty of
00025   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00026   Lesser General Public License for more details.  
00027 */
00028 
00030 #define srfAddress 0xF9
00031 
00032 #define srAddress 0xF0                
00033 
00034 #define cmdByte 0x00                   
00035 
00036 #define rangeByte 0x02     
00037             
00046 int             GetRangeUS1();                     
00047 
00050 int             GetRangeUS2();   
00051 
00057 #endif
00058 
00059 
00060 
00061