barometer.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020-2023 RaccoonLab.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, version 3.
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Author: Dmitry Ponomarev <ponomarevda96@gmail.com>
17  */
18 
19 #ifndef SRC_SENSORS_BAROMETER_HPP
20 #define SRC_SENSORS_BAROMETER_HPP
21 
22 #include "sensor_base.hpp"
23 
24 class PressureSensor : public BaseSensor{
25  public:
26  PressureSensor(ros::NodeHandle* nh, const char* topic, double period);
27  bool publish(float staticPressureHpa);
28 };
29 
31  public:
32  TemperatureSensor(ros::NodeHandle* nh, const char* topic, double period);
33  bool publish(float staticTemperature);
34 };
35 
36 #endif // SRC_SENSORS_BAROMETER_HPP
TemperatureSensor
Definition: barometer.hpp:30
PressureSensor::publish
bool publish(float staticPressureHpa)
Definition: barometer.cpp:28
TemperatureSensor::publish
bool publish(float staticTemperature)
Definition: barometer.cpp:46
PressureSensor::PressureSensor
PressureSensor(ros::NodeHandle *nh, const char *topic, double period)
Definition: barometer.cpp:25
TemperatureSensor::TemperatureSensor
TemperatureSensor(ros::NodeHandle *nh, const char *topic, double period)
Definition: barometer.cpp:43
PressureSensor
Definition: barometer.hpp:24
BaseSensor
Definition: sensor_base.hpp:25
ros::NodeHandle
sensor_base.hpp


inno_vtol_dynamics
Author(s): Roman Fedorenko, Dmitry Ponomarev, Ezra Tal, Winter Guerra
autogenerated on Mon Dec 9 2024 03:13:35