00001 // Copyright (C) 2004-2008, Robotics Equipment Corporation GmbH 00002 00003 #ifndef _REC_ROBOTINO_COM_C_DISTANCESENSOR_H_ 00004 #define _REC_ROBOTINO_COM_C_DISTANCESENSOR_H_ 00005 00006 #include "rec/robotino/com/c/globals.h" 00007 #include "rec/robotino/com/c/Com.h" 00008 00016 typedef int DistanceSensorId; 00017 00018 #define INVALID_DISTANCESENSORID -1 00019 00025 DLLEXPORT DistanceSensorId DistanceSensor_construct( unsigned int n ); 00026 00032 DLLEXPORT BOOL DistanceSensor_destroy( DistanceSensorId id ); 00033 00038 DLLEXPORT BOOL DistanceSensor_setComId( DistanceSensorId id, ComId comId ); 00039 00047 DLLEXPORT BOOL DistanceSensor_setSensorNumber( DistanceSensorId id, unsigned int n ); 00048 00052 DLLEXPORT unsigned int numDistanceSensors(); 00053 00054 00060 DLLEXPORT float DistanceSensor_voltage( DistanceSensorId id ); 00061 00067 DLLEXPORT unsigned int DistanceSensor_heading( DistanceSensorId id ); 00068 00069 #endif //_REC_ROBOTINO_COM_C_DISTANCESENSOR_H_