Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
ctrl_module_outerloop_demo.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2015
3
*
4
* This file is part of Paparazzi.
5
*
6
* Paparazzi is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
9
* any later version.
10
*
11
* Paparazzi is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with Paparazzi; see the file COPYING. If not, see
18
* <http://www.gnu.org/licenses/>.
19
*/
20
28
#ifndef CTRL_MODULE_OUTERLOOP_DEMO_H_
29
#define CTRL_MODULE_OUTERLOOP_DEMO_H_
30
31
#include <
std.h
>
32
33
// Settings
34
extern
float
comode_time
;
35
36
// Demo with own guidance_h
37
#define GUIDANCE_H_MODE_MODULE_SETTING GUIDANCE_H_MODE_MODULE
38
39
// But re-using an existing altitude-hold controller
40
#define GUIDANCE_V_MODE_MODULE_SETTING GUIDANCE_V_MODE_HOVER
41
42
// Implement own Horizontal loops
43
extern
void
guidance_h_module_init
(
void
);
44
extern
void
guidance_h_module_enter
(
void
);
45
extern
void
guidance_h_module_read_rc
(
void
);
46
extern
void
guidance_h_module_run
(
bool
in_flight);
47
48
#endif
/* CTRL_MODULE_OUTERLOOP_DEMO_H_ */
guidance_h_module_init
void guidance_h_module_init(void)
Initialization of horizontal guidance module.
Definition:
ctrl_module_innerloop_demo.c:80
comode_time
float comode_time
Definition:
ctrl_module_outerloop_demo.c:48
guidance_h_module_enter
void guidance_h_module_enter(void)
Entering the horizontal module (user switched to module)
Definition:
ctrl_module_innerloop_demo.c:85
std.h
guidance_h_module_run
void guidance_h_module_run(bool in_flight)
Main guidance loop.
Definition:
ctrl_module_innerloop_demo.c:99
guidance_h_module_read_rc
void guidance_h_module_read_rc(void)
Read the RC commands.
Definition:
ctrl_module_innerloop_demo.c:90
sw
airborne
modules
ctrl
ctrl_module_outerloop_demo.h
Generated on Tue Feb 1 2022 13:51:15 for Paparazzi UAS by
1.8.17