Paparazzi UAS  v6.2_unstable
Paparazzi is a free software Unmanned Aircraft System.
autopilot_static.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003 Pascal Brisset, Antoine Drouin
3  * Copyright (C) 2017 Gautier Hattenberger <gautier.hattenberger@enac.fr>
4  *
5  * This file is part of paparazzi.
6  *
7  * paparazzi is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * paparazzi is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with paparazzi; see the file COPYING. If not, see
19  * <http://www.gnu.org/licenses/>.
20  */
21 
29 #ifndef AUTOPILOT_STATIC_H
30 #define AUTOPILOT_STATIC_H
31 
32 #include "autopilot.h"
33 
36 #define AP_MODE_MANUAL 0
37 #define AP_MODE_AUTO1 1
38 #define AP_MODE_AUTO2 2
39 #define AP_MODE_HOME 3
40 #define AP_MODE_GPS_OUT_OF_ORDER 4
41 #define AP_MODE_NB 5
42 
45 extern void autopilot_static_init(void);
46 extern void autopilot_static_periodic(void);
47 extern void autopilot_static_on_rc_frame(void);
48 extern void autopilot_static_set_mode(uint8_t new_autopilot_mode);
49 extern void autopilot_static_SetModeHandler(float new_autopilot_mode); // handler for dl_setting
50 extern void autopilot_static_set_motors_on(bool motors_on);
51 
55 extern void navigation_task(void);
56 extern void attitude_loop(void);
57 
58 
59 #ifndef CONTROL_FREQUENCY
60 #define CONTROL_FREQUENCY 60
61 #endif
62 
63 #endif /* AUTOPILOT_STATIC_H */
64 
uint8_t
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98
navigation_task
void navigation_task(void)
Control loops FIXME should be somewhere else.
Definition: autopilot_static.c:162
autopilot_static_on_rc_frame
void autopilot_static_on_rc_frame(void)
Function to be called when a message from FBW is available.
Definition: autopilot_static.c:100
autopilot_static_init
void autopilot_static_init(void)
Static autopilot functions.
Definition: autopilot_static.c:81
autopilot_static_set_mode
void autopilot_static_set_mode(uint8_t new_autopilot_mode)
Definition: autopilot_static.c:139
autopilot_static_set_motors_on
void autopilot_static_set_motors_on(bool motors_on)
Definition: autopilot_static.c:151
autopilot_static_periodic
void autopilot_static_periodic(void)
Definition: autopilot_static.c:93
autopilot.h
attitude_loop
void attitude_loop(void)
Definition: autopilot_static.c:304
autopilot_static_SetModeHandler
void autopilot_static_SetModeHandler(float new_autopilot_mode)
AP mode setting handler.
Definition: autopilot_static.c:146