MRPT  1.9.9
CGillAnemometer.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #ifndef CGillAnemometer_H
10 #define CGillAnemometer_H
11 
13 #include <mrpt/comms/CSerialPort.h>
16 
17 namespace mrpt::hwdrivers
18 {
19 /** This class implements a driver for the Gill Windsonic Option 1 Anemometer
20  * The sensor is accessed via a standard serial port.
21  *
22  * Refer to the manufacturer website for details on this sensor:
23  *http://gillinstruments.com/data/manuals/WindSonic-Web-Manual.pdf
24  * Configure for single <CR> return, at 2Hz
25  * \sa mrpt::obs::CObservationWindSensor
26  * \ingroup mrpt_hwdrivers_grp
27  */
29 {
31 
32  private:
33  /** COM port name
34  */
36  int com_bauds;
37 
38  /** COM port
39  */
41 
42  /** Poses
43  */
45 
46  /** Returns true if the COM port is already open, or try to open it in other
47  * case.
48  * \return true if everything goes OK, or false if there are problems
49  * opening the port.
50  */
51  bool tryToOpenTheCOM();
52 
53  public:
54  /** Default constructor.
55  */
57  /** Default destructor.
58  */
59  virtual ~CGillAnemometer() { COM.close(); };
60  void doProcess();
61 
63  const mrpt::config::CConfigFileBase& configSource,
64  const std::string& section);
65 }; // End of class def.
66 
67 }
68 #endif
69 
70 
A generic interface for a wide-variety of sensors designed to be used in the application RawLogGrabbe...
A communications serial port built as an implementation of a utils::CStream.
Definition: CSerialPort.h:41
virtual ~CGillAnemometer()
Default destructor.
bool tryToOpenTheCOM()
Returns true if the COM port is already open, or try to open it in other case.
Contains classes for various device interfaces.
This class allows loading and storing values and vectors of different types from a configuration text...
GLsizei const GLchar ** string
Definition: glext.h:4101
void close()
Close the port.
#define DEFINE_GENERIC_SENSOR(class_name)
This declaration must be inserted in all CGenericSensor classes definition, within the class declarat...
mrpt::comms::CSerialPort COM
COM port.
This class implements a driver for the Gill Windsonic Option 1 Anemometer The sensor is accessed via ...
std::string com_port
COM port name.
void loadConfig_sensorSpecific(const mrpt::config::CConfigFileBase &configSource, const std::string &section)
Loads specific configuration for the device from a given source of configuration parameters, for example, an ".ini" file, loading from the section "[iniSection]" (see config::CConfigFileBase and derived classes)
void doProcess()
This method will be invoked at a minimum rate of "process_rate" (Hz)
CGillAnemometer()
Default constructor.



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020