Paparazzi UAS  v5.15_devel-88-gb3ad7fe
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
main_fbw.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 The Paparazzi Team
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, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
36 #ifndef MAIN_H
37 #define MAIN_H
38 
40 #ifndef RC_LOST_FBW_MODE
41 #define RC_LOST_FBW_MODE FBW_MODE_FAILSAFE
42 #endif
43 
45 #ifndef RC_LOST_IN_AUTO_FBW_MODE
46 #define RC_LOST_IN_AUTO_FBW_MODE FBW_MODE_AUTO
47 #endif
48 
50 #ifndef AP_LOST_FBW_MODE
51 #define AP_LOST_FBW_MODE FBW_MODE_FAILSAFE
52 #endif
53 
55 #ifndef FBW_MODE_AUTO_ONLY
56 #define FBW_MODE_AUTO_ONLY false
57 #endif
58 
60 #ifndef RADIO_FBW_MODE
61 #define RADIO_FBW_MODE RADIO_MODE
62 #endif
63 
65 
66 
67 extern void main_init(void);
68 extern void main_event(void);
69 extern void handle_periodic_tasks(void);
70 extern void main_periodic(void);
71 extern void telemetry_periodic(void);
72 
73 #endif /* MAIN_H */
fbw_mode_enum
Definition: main_fbw.h:64
void main_periodic(void)
Definition: main_ap.c:237
void main_init(void)
Main initialization.
Definition: main_ap.c:118
void handle_periodic_tasks(void)
Definition: main_ap.c:202
void main_event(void)
Definition: main_ap.c:336
void telemetry_periodic(void)
Definition: main_ap.c:270