Last change
on this file since 445 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 |
|
---|
19 | namespace flair {
|
---|
20 | namespace 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 | */
|
---|
31 | class AltitudeSensor : public core::Object {
|
---|
32 | public:
|
---|
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 |
|
---|
38 | private:
|
---|
39 |
|
---|
40 | };
|
---|
41 | } // end namespace sensor
|
---|
42 | } // end namespace flair
|
---|
43 | #endif // ALTITUDESENSOR_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.