Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
avoid_navigation.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2013
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 
31 #ifndef AVOID_NAVIGATION_H
32 #define AVOID_NAVIGATION_H
33 
34 #include <std.h>
35 
36 
37 #ifndef NAV_LINE_AVOID_SEGMENT_LENGTH
38 #define NAV_LINE_AVOID_SEGMENT_LENGTH 2.0
39 #endif
40 
41 
42 
43 struct AvoidNavigationStruct {
44  uint8_t mode;
46 };
47 
50 extern bool obstacle_detected;
51 
52 void init_avoid_navigation(void);
54 extern void increase_nav_heading(int32_t *heading, int32_t increment);
55 
56 
57 #endif /* AVOID_NAVIGATION_H */
bool obstacle_detected
void run_avoid_navigation_onvision(void)
static float heading
Definition: ahrs_infrared.c:45
void increase_nav_heading(int32_t *heading, int32_t increment)
signed long int32_t
Definition: types.h:19
unsigned char uint8_t
Definition: types.h:14
struct AvoidNavigationStruct avoid_navigation_data
global VIDEO state
uint8_t mode
0 = straight, 1 = right, 2 = left, ...
void init_avoid_navigation(void)