QuadroCopter  0.1.4
aeronautics.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_AERONAUTICS_H
19 #define QUADRO_AERONAUTICS_H
20 
21 #include "../pwm/motors/dji_2212/dji_2212.h"
22 
23 namespace quadro {
24 
25 using namespace pwm;
26 
27  class aeronautics {
28 
29  public:
30  aeronautics();
31 
35  dji_2212* motor[4];
36 
44  void maintainAltitude();
45 
53  void maintainHeading();
54 
63  void maintainRoll( double _duty_increment, float _roll );
64 
73  void maintainPitch( double _duty_increment, float _pitch );
74 
75  };
76 
77 }
78 #endif //QUADRO_AERONAUTICS_H
Definition: dji_2212.h:32
Definition: aeronautics.h:23
Definition: aeronautics.h:27