Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
stereo_avoid.c
Go to the documentation of this file.
1
/*
2
* Copyright (C) 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
28
// Own header
29
#include "
stereo_avoid.h
"
30
31
32
// Navigate Based On Computer Vision Results
33
#include "
avoid_navigation.h
"
34
35
// Paparazzi State (Attitude)
36
#include "
state.h
"
// for attitude
37
38
// Serial Port
39
#include "
mcu_periph/uart.h
"
40
41
#include "
modules/stereocam/stereocam.h
"
42
void
stereo_avoid_init
(
void
)
43
{
44
// Navigation Code
45
init_avoid_navigation
();
46
}
47
48
// TODO fixme
49
void
stereo_avoid_run
(
void
)
50
{
51
if
(stereocam_data.fresh)
52
{
53
stereocam_data.fresh=0;
54
run_avoid_navigation_onvision
();
55
}
56
}
stereo_avoid_init
void stereo_avoid_init(void)
Definition:
stereo_avoid.c:42
avoid_navigation.h
run_avoid_navigation_onvision
void run_avoid_navigation_onvision(void)
Definition:
avoid_navigation.c:65
init_avoid_navigation
void init_avoid_navigation()
Definition:
avoid_navigation.c:58
uart.h
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
stereocam.h
interface to the TU Delft serial stereocam
state.h
stereo_avoid.h
stereo_avoid_run
void stereo_avoid_run(void)
Definition:
stereo_avoid.c:49
sw
airborne
modules
stereocam
nav_line_avoid
stereo_avoid.c
Generated on Tue Feb 1 2022 13:51:16 for Paparazzi UAS by
1.8.17