Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nav_poles.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2009-2015 ENAC
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, see
18 * <http://www.gnu.org/licenses/>.
19 */
20
26#ifndef NAV_POLES_H
27#define NAV_POLES_H
28
29#include <stdbool.h>
30#include "std.h"
31
33extern float nav_poles_time;
35
38 float radius);
39
40#define nav_poles_SetLandDir(_d) { if (_d < 0) _d = -1; else _d = 1; }
41
42#endif
43
uint16_t foo
Definition main_demo5.c:58
uint8_t nav_poles_count
Definition nav_poles.c:29
int8_t nav_poles_land
Definition nav_poles.c:31
float nav_poles_time
Definition nav_poles.c:30
bool nav_poles_init(uint8_t wp1, uint8_t wp2, uint8_t wp1c, uint8_t wp2c, float radius)
computes position of wp1c and wp2c, reference points for an oval around waypoints wp1 and wp2
Definition nav_poles.c:37
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
signed char int8_t
Typedef defining 8 bit char type.