41 #ifndef YOCTO_RANGEFINDER_H 42 #define YOCTO_RANGEFINDER_H 57 #ifndef _Y_RANGEFINDERMODE_ENUM 58 #define _Y_RANGEFINDERMODE_ENUM 67 #define Y_HARDWARECALIBRATION_INVALID (YAPI_INVALID_STRING) 68 #define Y_CURRENTTEMPERATURE_INVALID (YAPI_INVALID_DOUBLE) 69 #define Y_COMMAND_INVALID (YAPI_INVALID_STRING) 84 #pragma option push -w-8022 133 int set_unit(
const string& newval);
135 {
return this->set_unit(newval); }
149 {
return this->get_rangeFinderMode(); }
166 {
return this->set_rangeFinderMode(newval); }
168 string get_hardwareCalibration(
void);
171 {
return this->get_hardwareCalibration(); }
173 int set_hardwareCalibration(
const string& newval);
175 {
return this->set_hardwareCalibration(newval); }
184 double get_currentTemperature(
void);
187 {
return this->get_currentTemperature(); }
189 string get_command(
void);
192 {
return this->get_command(); }
194 int set_command(
const string& newval);
196 {
return this->set_command(newval); }
267 virtual double get_hardwareCalibrationTemperature(
void);
278 virtual int triggerTemperatureCalibration(
void);
289 virtual int triggerSpadCalibration(
void);
303 virtual int triggerOffsetCalibration(
double targetDist);
317 virtual int triggerXTalkCalibration(
double targetDist);
327 virtual int cancelCoverGlassCalibrations(
void);
342 {
return this->nextRangeFinder();}
string _hardwareCalibration
static YRangeFinder * Find(string func)
YRangeFinderTimedReportCallback _timedReportCallbackRangeFinder
YRangeFinder * yFirstRangeFinder(void)
static const string HARDWARECALIBRATION_INVALID
YRangeFinderValueCallback _valueCallbackRangeFinder
Y_RANGEFINDERMODE_enum rangeFinderMode(void)
double currentTemperature(void)
void(* YRangeFinderTimedReportCallback)(YRangeFinder *func, YMeasure measure)
static YRangeFinder * FindRangeFinder(string func)
YRangeFinder * yFindRangeFinder(const string &func)
virtual int registerTimedReportCallback(YSensorTimedReportCallback callback)
int setCommand(const string &newval)
Y_RANGEFINDERMODE_enum _rangeFinderMode
static const double CURRENTTEMPERATURE_INVALID
virtual int _invokeTimedReportCallback(YMeasure value)
virtual int _invokeValueCallback(string value)
static YRangeFinder * FirstRangeFinder(void)
int setUnit(const string &newval)
static YRangeFinder * First(void)
static const string COMMAND_INVALID
virtual int _parseAttr(YJSONObject *json_val)
virtual int registerValueCallback(YSensorValueCallback callback)
int setRangeFinderMode(Y_RANGEFINDERMODE_enum newval)
int setHardwareCalibration(const string &newval)
#define YOCTO_CLASS_EXPORT
string hardwareCalibration(void)
double _currentTemperature
void(* YRangeFinderValueCallback)(YRangeFinder *func, const string &functionValue)
YRangeFinder * next(void)