Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
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(float *heading, float increment);
55 
56 
57 #endif /* AVOID_NAVIGATION_H */
void init_avoid_navigation(void)
void increase_nav_heading(float *heading, float increment)
bool obstacle_detected
uint8_t mode
0 = straight, 1 = right, 2 = left, ...
struct AvoidNavigationStruct avoid_navigation_data
global VIDEO state
void run_avoid_navigation_onvision(void)
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98
float heading
Definition: wedgebug.c:258