nidas v1.2.3
LamsSensor.h
Go to the documentation of this file.
1// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*-
2// vim: set shiftwidth=4 softtabstop=4 expandtab:
3/*
4 ********************************************************************
5 ** NIDAS: NCAR In-situ Data Acquistion Software
6 **
7 ** 2007, Copyright University Corporation for Atmospheric Research
8 **
9 ** This program is free software; you can redistribute it and/or modify
10 ** it under the terms of the GNU General Public License as published by
11 ** the Free Software Foundation; either version 2 of the License, or
12 ** (at your option) any later version.
13 **
14 ** This program is distributed in the hope that it will be useful,
15 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ** GNU General Public License for more details.
18 **
19 ** The LICENSE.txt file accompanying this software contains
20 ** a copy of the GNU General Public License. If it is not found,
21 ** write to the Free Software Foundation, Inc.,
22 ** 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 **
24 ********************************************************************
25*/
26/* LamsSensor.h
27
28*/
29
30
31#ifndef NIDAS_DYNLD_RAF_LAMSSENSOR_H
32#define NIDAS_DYNLD_RAF_LAMSSENSOR_H
33
35
38
40
41namespace nidas { namespace dynld { namespace raf {
42
43using namespace nidas::core;
44namespace n_u = nidas::util;
45
51{
52public:
53 LamsSensor();
54
55 void fromDOMElement(const xercesc::DOMElement* node);
56
57 void printStatus(std::ostream& ostr);
58
59 virtual void
60 derivedDataNotify(const nidas::core:: DerivedDataReader * s);
61
62 bool process(const Sample* samp,std::list<const Sample*>& results);
63
65
67
71 void open(int flags);
72
73 void close();
74
75private:
76
77 int nAVG;
78
79 int nPEAK;
80
81 float TAS_level;
83
84 float tas; // True Airspeed. Meters per second
85 int tas_step; // generate a True Airspeed (set to 0 to disable)
86
90 int nSKIP;
91};
92
93}}}
94
95#endif
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
Interface to a data sample.
Definition Sample.h:190
Sensor class supporting the NCAR/EOL Laser Air Motion Sensor (LAMS) via a DSM.
Definition LamsSensor.h:51
IODevice * buildIODevice()
Factory method for an IODevice for this DSMSensor.
Definition LamsSensor.cc:57
LamsSensor()
Definition LamsSensor.cc:50
int tas_step
Definition LamsSensor.h:85
int nSKIP
Number of initial spectral values to skip when reading from the card.
Definition LamsSensor.h:90
int nAVG
Definition LamsSensor.h:77
@ BELOW
Definition LamsSensor.h:82
@ ABOVE
Definition LamsSensor.h:82
bool process(const Sample *samp, std::list< const Sample * > &results)
Apply further necessary processing to a raw sample from this DSMSensor.
Definition LamsSensor.cc:95
int nPEAK
Definition LamsSensor.h:79
void close()
close my associated device.
Definition LamsSensor.cc:197
void fromDOMElement(const xercesc::DOMElement *node)
Definition LamsSensor.cc:67
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 LamsSensor.cc:204
SampleScanner * buildSampleScanner()
Factory method for a SampleScanner for this DSMSensor.
Definition LamsSensor.cc:61
void open(int flags)
Open the device connected to the sensor.
Definition LamsSensor.cc:175
enum nidas::dynld::raf::LamsSensor::@3 TASlvl
float tas
Definition LamsSensor.h:84
void printStatus(std::ostream &ostr)
Definition LamsSensor.cc:239
float TAS_level
Definition LamsSensor.h:81
The essential core classes of nidas.
Definition A2DConverter.h:31
General utility classes. nidas::util contains classes of general utility, like Socket,...
Definition DSMServer.h:37
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31