18 #ifndef ANALOGDEVICE_LVMAXSONAREZ_H
19 #define ANALOGDEVICE_LVMAXSONAREZ_H
21 #include "../../analogBase.h"
32 const float SONIC_INCH_MODIFIER = 9.8f;
33 const float SONIC_CM_MODIFIER = 2.54f;
35 static const unsigned int SONIC_DATATIMER = 50000;
37 const int MAX_OPERATING_HEIGHT_IN_INCES = 255;
38 const int MIN_OPERATING_HEIGHT_IN_INCES = 6;
116 pthread_t threadHandle;
125 static void* runMainSensorUpdateThread(
void* static_inst );
133 double convertReadingToDistance(
int _reading );
142 #endif //ANALOGDEVICE_LVMAXSONAREZ_H
void setMode(deviceMode _mode)
Definition: LVMaxSonarEZ.cpp:120
Definition: LVMaxSonarEZ.h:76
Definition: LVMaxSonarEZ.h:77
int stop()
Definition: LVMaxSonarEZ.cpp:74
Definition: analogBase.h:41
deviceMode
Definition: LVMaxSonarEZ.h:75
Definition: LVMaxSonarEZ.h:28
double getDistance()
Storage of the timer for the sensors main thread, based on the data rate of the sensor.
Definition: LVMaxSonarEZ.cpp:135
int start()
Definition: LVMaxSonarEZ.cpp:30
Status Off (thread is disabled)
Definition: LVMaxSonarEZ.h:85
Definition: aeronautics.h:23
Status Error (thread is disabled)
Definition: LVMaxSonarEZ.h:86
Status On (thread is active)
Definition: LVMaxSonarEZ.h:84
deviceStatus
Definition: LVMaxSonarEZ.h:83
deviceMode currentMode
Definition: LVMaxSonarEZ.h:92
int getStatus()
Definition: LVMaxSonarEZ.cpp:130
__useconds_t dataTimer
Definition: LVMaxSonarEZ.h:70
LVMaxSonarEZ()
Definition: LVMaxSonarEZ.cpp:23
void setStatus(deviceStatus _status)
Definition: LVMaxSonarEZ.cpp:125