nidas v1.2.3
TwoD64_USB_v3.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
27#ifndef _nidas_dynld_raf_2d64_usb_v3_h_
28#define _nidas_dynld_raf_2d64_usb_v3_h_
29
30#include "TwoD64_USB.h"
31
32namespace nidas { namespace dynld { namespace raf {
33
34using namespace nidas::core;
35
44{
45public:
48
49 virtual int TASToTap2D(void * t2d, float tas);
50
51 virtual float Tap2DToTAS(const Tap2D * t2d) const;
52
53 void validate();
54
55private:
57 size_t _nHskp;
58
59protected:
60 virtual void init_parameters();
61
65 virtual bool processSOR(const Sample * samp, std::list < const Sample * >&results)
66 throw();
67};
68
69}}} // namespace nidas namespace dynld namespace raf
70#endif
Interface to a data sample.
Definition Sample.h:190
Class for the USB Fast-2DC.
Definition TwoD64_USB_v3.h:44
virtual void init_parameters()
Initialize parameters for real-time and post-processing.
Definition TwoD64_USB_v3.cc:63
TwoD64_USB_v3()
Definition TwoD64_USB_v3.cc:52
virtual int TASToTap2D(void *t2d, float tas)
Build the struct above from the true airspeed (in m/s).
Definition TwoD64_USB_v3.cc:82
~TwoD64_USB_v3()
Definition TwoD64_USB_v3.cc:59
void validate()
validate() is called once on a DSMSensor after it has been configured, but before open() or init() ar...
Definition TwoD64_USB_v3.cc:100
size_t _nHskp
Number of houeskeeping variables in sample 1.
Definition TwoD64_USB_v3.h:57
virtual bool processSOR(const Sample *samp, std::list< const Sample * > &results)
Process the Shadow-OR sample from the probe.
Definition TwoD64_USB_v3.cc:119
virtual float Tap2DToTAS(const Tap2D *t2d) const
Reverse the true airspeed encoding.
Definition TwoD64_USB_v3.cc:94
Class for the USB Fast-2DC.
Definition TwoD64_USB.h:41
The essential core classes of nidas.
Definition A2DConverter.h:31
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31
This version is for rev2 of Spowarts USB board.
Definition usbtwod.h:88