rec::robotino::api2 C interface
DistanceSensor.h
Go to the documentation of this file.
1 // Copyright (C) 2004-2008, Robotics Equipment Corporation GmbH
2 
3 #ifndef _REC_ROBOTINO_API2_C_DISTANCESENSOR_H_
4 #define _REC_ROBOTINO_API2_C_DISTANCESENSOR_H_
5 
6 #include "rec/robotino/api2/c/globals.h"
8 
17 typedef int DistanceSensorId;
18 
20 #define INVALID_DISTANCESENSORID -1
21 
27 
33 DLLEXPORT DistanceSensorId DistanceSensor_construct( unsigned int n );
34 
40 DLLEXPORT BOOL DistanceSensor_destroy( DistanceSensorId id );
41 
46 DLLEXPORT BOOL DistanceSensor_setComId( DistanceSensorId id, ComId comId );
47 
55 DLLEXPORT BOOL DistanceSensor_setSensorNumber( DistanceSensorId id, unsigned int n );
56 
60 DLLEXPORT unsigned int numDistanceSensors();
61 
62 
68 DLLEXPORT float DistanceSensor_voltage( DistanceSensorId id );
69 
75 DLLEXPORT unsigned int DistanceSensor_heading( DistanceSensorId id );
76 
77 DLLEXPORT int DistanceSensor_num_objects( void );
78 
79 #endif //_REC_ROBOTINO_API2_C_DISTANCESENSOR_H_
DLLEXPORT DistanceSensorId DistanceSensor_construct(unsigned int n)
DLLEXPORT BOOL DistanceSensor_setSensorNumber(DistanceSensorId id, unsigned int n)
DLLEXPORT float DistanceSensor_voltage(DistanceSensorId id)
DLLEXPORT unsigned int DistanceSensor_heading(DistanceSensorId id)
DLLEXPORT BOOL DistanceSensor_setComId(DistanceSensorId id, ComId comId)
DLLEXPORT unsigned int numDistanceSensors()
DLLEXPORT DistanceSensorId DistanceSensor_constructDefault(void)
In "rec/robotino/api2/c/Com.h" you can find functions for manipulating the communication interface to...
int DistanceSensorId
Definition: DistanceSensor.h:17
DLLEXPORT BOOL DistanceSensor_destroy(DistanceSensorId id)
int ComId
Definition: Com.h:50