QuadroCopter  0.1.4
quadroCopter.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2017 Michael Brookes
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, either version 3 of the License, or
7 (at your option) any later version.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17 
18 #ifndef QUADRO_QUADRO_H
19 #define QUADRO_QUADRO_H
20 
24 
25 #include <sstream>
26 
27 namespace quadro {
28 
29  class quadroCopter {
30 
31  public:
32 
40  quadroCopter();
41 
48  void setStartupTargets();
49 
53  struct target {
54  double targetVal;
55  } height, roll, pitch, heading;
56 
60  enum STATE {
61  NORMAL = 1,
62  MOVING = 2,
63  URGENT = 5,
64  PANIC = 10
65  } state;
66 
71 
76 
80  void monitorSensorData();
81  };
82 
83 }
84 #endif //QUADRO_QUADRO_H
Definition: quadroCopter.h:64
struct quadro::quadroCopter::target pitch
struct quadro::quadroCopter::target roll
orientation * myOrientation
Definition: quadroCopter.h:70
Definition: orientation.h:38
double targetVal
Definition: quadroCopter.h:54
quadroCopter()
Definition: quadroCopter.cpp:24
Definition: quadroCopter.h:62
Definition: aeronautics.h:23
Definition: aeronautics.h:27
Definition: quadroCopter.h:29
enum quadro::quadroCopter::STATE state
struct quadro::quadroCopter::target height
aeronautics * myAeronautics
Definition: quadroCopter.h:75
Definition: quadroCopter.h:61
void monitorSensorData()
Definition: quadroCopter.cpp:51
Definition: quadroCopter.h:63
void setStartupTargets()
Definition: quadroCopter.cpp:43
Definition: quadroCopter.h:53
struct quadro::quadroCopter::target heading
STATE
Definition: quadroCopter.h:60