source: flair-src/trunk/lib/FlairSensorActuator/src/AltitudeSensor.h@ 450

Last change on this file since 450 was 432, checked in by Sanahuja Guillaume, 3 years ago

add AltitudeSensor class
failsafe altitude sensor in changeable

  • Property svn:eol-style set to native
File size: 1.0 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5/*!
6 * \file AltitudeSensor.h
7 * \brief Abstract class for altitude sensor
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2021/07/12
10 * \version 3.4
11 */
12
13#ifndef ALTITUDESENSOR_H
14#define ALTITUDESENSOR_H
15
16#include <Object.h>
17
18
19namespace flair {
20namespace sensor {
21/*! \class AltitudeSensor
22*
23* \brief Abstract class for altitude sensor
24*
25* sensors like us or vrpn should instantiate a class
26* of this type to provide altitude values to
27* the state machine
28* returned vales are in uav coordinates
29*
30*/
31class AltitudeSensor : public core::Object {
32public:
33 AltitudeSensor(core::Object *parent,std::string name): core::Object(parent,name) {};
34 virtual ~AltitudeSensor() {};
35 virtual float z(void) const=0;//in uav frame
36 virtual float Vz(void) const=0;//in uav frame
37
38private:
39
40};
41} // end namespace sensor
42} // end namespace flair
43#endif // ALTITUDESENSOR_H
Note: See TracBrowser for help on using the repository browser.