Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
swing.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freek van Tienen <freek.v.tienen@gmail.com>
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, write to
19  * the Free Software Foundation, 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  *
22  */
23 
24 #ifndef CONFIG_SWING
25 #define CONFIG_SWING
26 
27 #define BOARD_SWING
28 
29 #include "std.h"
30 
32 #define UART1_DEV /dev/ttyPA1
33 #define GPS_UBX_ENABLE_NMEA_DATA_MASK 0xff
34 
35 #define UART2_DEV /dev/ttyUSB0
36 
37 /* Default actuators driver */
38 #define DEFAULT_ACTUATORS "boards/swing/actuators.h"
39 #define ActuatorDefaultSet(_x,_y) ActuatorsSwingSet(_x,_y)
40 #define ActuatorsDefaultInit() ActuatorsSwingInit()
41 #define ActuatorsDefaultCommit() ActuatorsSwingCommit()
42 
43 /* by default activate onboard baro */
44 #ifndef USE_BARO_BOARD
45 #define USE_BARO_BOARD 1
46 #endif
47 
48 /* The ADC from the sonar */
49 #if USE_ADC0
50 #define ADC0_ID 0
51 #define ADC0_CHANNELS 2
52 #define ADC0_CHANNELS_CNT 1
53 #define ADC0_BUF_LENGTH 8192
54 #endif
55 
56 /* The SPI from the sonar */
57 #if USE_SPI0
58 #define SPI0_MODE 0
59 #define SPI0_BITS_PER_WORD 8
60 #define SPI0_MAX_SPEED_HZ 320000
61 #endif
62 
63 #endif /* CONFIG_SWING */
64