27#ifndef _nidas_dynld_raf_2d_usb_h_
28#define _nidas_dynld_raf_2d_usb_h_
39namespace nidas {
namespace dynld {
namespace raf {
DSMSensor provides the basic support for reading, processing and distributing samples from a sensor a...
Definition DSMSensor.h:88
Interface of a DerivedDataClient of the DerivedDataReader.
Definition DerivedDataClient.h:37
An interface to an IO device.
Definition IODevice.h:42
A scanner of sample data.
Definition SampleScanner.h:74
Base class for SPEC 2DS optical array probe on a USB interface.
Definition TwoD_Processing.h:43
Base class for PMS 2D particle probes on a USB interface.
Definition TwoD_USB.h:48
int getTASRate() const
Definition TwoD_USB.h:65
IODevice * buildIODevice()
Factory method for an IODevice for this DSMSensor.
Definition TwoD_USB.cc:77
virtual void sendTrueAirspeed(float tas)
Encode and send the true airspeed to the USB driver, which will in turn send it to the probe.
Definition TwoD_USB.cc:267
virtual void init_parameters()
Initialize parameters for real-time and post-processing.
Definition TwoD_USB.cc:121
static const nidas::util::EndianConverter * bigEndian
Definition TwoD_USB.h:113
static const nidas::util::EndianConverter * littleEndian
Definition TwoD_USB.h:116
void printStatus(std::ostream &ostr)
Definition TwoD_USB.cc:279
unsigned int _tasOutOfRange
Definition TwoD_USB.h:137
float _trueAirSpeed
True air speed, received from IWGADTS feed.
Definition TwoD_USB.h:156
void setTASRate(int val)
Definition TwoD_USB.h:67
int _tasRate
How often to send the true air speed.
Definition TwoD_USB.h:135
void init()
Called by post-processing code.
Definition TwoD_USB.cc:141
dsm_sample_id_t _sorID
Shadow OR sample ID.
Definition TwoD_USB.h:150
void close()
close my associated device.
Definition TwoD_USB.cc:108
virtual void derivedDataNotify(const nidas::core::DerivedDataReader *s)
Method called on a DerivedDataClient by the DerivedDataReader thread when a new packet of derived dat...
Definition TwoD_USB.cc:178
static const float DefaultTrueAirspeed
Definition TwoD_USB.h:158
TwoD_USB(const TwoD_USB &)
No copying.
TwoD_USB & operator=(const TwoD_USB &)
No copying.
void open(int flags)
open the sensor and perform any intialization to the driver.
Definition TwoD_USB.cc:89
virtual float Tap2DToTAS(const Tap2D *t2d) const
Reverse the true airspeed encoding.
Definition TwoD_USB.cc:245
TwoD_USB()
Definition TwoD_USB.cc:57
virtual ~TwoD_USB()
Definition TwoD_USB.cc:62
virtual int TASToTap2D(void *t2d, float tas)
Build the struct above from the true airspeed (in m/s).
Definition TwoD_USB.cc:194
SampleScanner * buildSampleScanner()
Factory method for a SampleScanner for this DSMSensor.
Definition TwoD_USB.cc:82
Virtual base class declaring methods for converting numeric values between little-endian and big-endi...
Definition EndianConverter.h:304
The essential core classes of nidas.
Definition A2DConverter.h:31
Sample * getSample(sampleType type, unsigned int len)
A convienence method for getting a sample of an enumerated type from a pool.
Definition Sample.cc:70
unsigned int dsm_sample_id_t
Definition Sample.h:64
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31
Struct to adjust probe slice rate for true airspeed.
Definition usbtwod.h:73
This version is for rev2 of Spowarts USB board.
Definition usbtwod.h:88