source: flair-src/trunk/lib/FlairMeta/src/Plane.h@ 463

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

add plane files

File size: 1.2 KB
RevLine 
[461]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 Plane.h
7 * \brief Base class to construct sensors/actuators depending on Plane type
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2022/01/05
10 * \version 3.4
11 */
12
13#ifndef PLANE_H
14#define PLANE_H
15
16#include <Uav.h>
17
18namespace flair {
19 namespace filter {
20 class UavMultiplex;
21 }
22 namespace actuator {
23 class Servos;
24 }
25
26}
27
28namespace flair {
29namespace meta {
30
31
32/*! \class Plane
33*
34* \brief Base class to construct sensors/actuators depending on Plane type.
35* The Object is created with
36* the FrameworkManager as parent. FrameworkManager must be created before.
37* Only one instance of this class is allowed by program.
38*/
39class Plane : public meta::Uav {
40public:
41
42 Plane(std::string name,filter::UavMultiplex *multiplex);
43 ~Plane();
44
45 actuator::Servos *GetServos(void) const;
46
47
48protected:
49 void SetServos(const actuator::Servos *servos);
50
51
52private:
53 actuator::Servos *servos;
54
55};
56
57/*!
58* \brief get Uav
59*
60* \return the Uav
61*/
62Plane *GetPlane(void);
63
64} // end namespace meta
65} // end namespace flair
66#endif // PLANE_H
Note: See TracBrowser for help on using the repository browser.