Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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
64
typedef
enum
{
FBW_MODE_MANUAL
= 0,
FBW_MODE_AUTO
= 1,
FBW_MODE_FAILSAFE
= 2}
fbw_mode_enum
;
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_FAILSAFE
@ FBW_MODE_FAILSAFE
Definition:
main_fbw.h:64
main_periodic
void main_periodic(void)
Definition:
main_ap.c:237
handle_periodic_tasks
void handle_periodic_tasks(void)
Definition:
main_ap.c:202
main_init
void main_init(void)
Main initialization.
Definition:
main_ap.c:118
FBW_MODE_MANUAL
@ FBW_MODE_MANUAL
Definition:
main_fbw.h:64
main_event
void main_event(void)
Definition:
main_ap.c:336
telemetry_periodic
void telemetry_periodic(void)
Definition:
main_ap.c:270
FBW_MODE_AUTO
@ FBW_MODE_AUTO
Definition:
main_fbw.h:64
fbw_mode_enum
fbw_mode_enum
Definition:
main_fbw.h:64
sw
airborne
firmwares
rotorcraft
main_fbw.h
Generated on Tue Feb 1 2022 13:51:13 for Paparazzi UAS by
1.8.17