Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
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 
39 #ifdef SITL
40 #define STATIC_INLINE extern
41 #else
42 #define STATIC_INLINE static inline
43 #endif
44 
46 #ifndef RC_LOST_FBW_MODE
47 #define RC_LOST_FBW_MODE FBW_MODE_FAILSAFE
48 #endif
49 
51 #ifndef RC_LOST_IN_AUTO_FBW_MODE
52 #define RC_LOST_IN_AUTO_FBW_MODE FBW_MODE_AUTO
53 #endif
54 
56 #ifndef AP_LOST_FBW_MODE
57 #define AP_LOST_FBW_MODE FBW_MODE_FAILSAFE
58 #endif
59 
60 
61 
63 #ifndef RADIO_FBW_MODE
64 #define RADIO_FBW_MODE RADIO_MODE
65 #endif
66 
67 STATIC_INLINE void main_init(void);
68 STATIC_INLINE void main_event(void);
70 STATIC_INLINE void main_periodic(void);
72 
73 #endif /* MAIN_H */
STATIC_INLINE void main_init(void)
Main initialization.
Definition: main.c:162
STATIC_INLINE void main_periodic(void)
Definition: main.c:270
#define STATIC_INLINE
Definition: main_fbw.h:42
STATIC_INLINE void handle_periodic_tasks(void)
Definition: main.c:243
STATIC_INLINE void telemetry_periodic(void)
Definition: main.c:294
STATIC_INLINE void main_event(void)
Definition: main.c:357