1 #ifndef CARMA_ENVIRONMENT_DPS_H
2 #define CARMA_ENVIRONMENT_DPS_H
16 #include <carma/util/PthreadMutex.h>
17 #include <carma/util/AutoPthreadQuitAndJoinGroup.h>
21 namespace environment {
32 float ambientTemperature;
33 float dewpointTemperature;
45 DPS(
const std::string &device,
bool reopen =
false,
bool emulate =
false);
47 void getLatestData(
struct DPSData &data);
48 void startReaderThread();
50 static void readerThreadEP(DPS &This);
53 bool parseData(
const char *buf, ssize_t bytes);
54 void readerNormalMode();
55 void readerEmulateMode();
57 const std::string device_;
60 carma::util::AutoPthreadQuitAndJoinGroup group_;
71 #endif // CARMA_ENVIRONMENT_DPS_H
This class is used to calculate a variety of quantities related to the earth's atmosphere, such as refractivity, saturated pressure, and pathlength (refractivity integrated through the atmosphere).
unsigned int frameType
Half second frames since Jan 1, 2000.
Constants and methods having to do with the earth's atmosphere (e.g.
A simple wrapper class that makes use of ::pthread_mutex_t easier in a C++ world. ...
Various type definitions for util classes.