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_line.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Hector Garcia de Marina
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 */
22
29#ifndef GVF_LINE_H
30#define GVF_LINE_H
31
34
41typedef struct {
42 float ke;
43 float kn;
44 float heading;
46
52typedef struct {
53 float d1;
54 float d2;
56
61
62// Straight line
63extern bool nav_gvf_line_XY_heading(float x, float y, float heading);
64extern bool nav_gvf_line_wp_heading(uint8_t wp, float heading);
65extern bool nav_gvf_line_XY1_XY2(float x1, float y1, float x2, float y2);
67extern bool nav_gvf_segment_loop_XY1_XY2(float x1, float y1, float x2, float y2, float d1, float d2);
68extern bool nav_gvf_segment_loop_wp1_wp2(uint8_t wp1, uint8_t wp2, float d1, float d2);
69extern bool nav_gvf_segment_XY1_XY2(float x1, float y1, float x2, float y2);
71extern bool nav_gvf_segment_points(struct FloatVect2 start, struct FloatVect2 end);
72
73#endif // GVF_LINE_H
static uint16_t d1
static uint16_t d2
float d1
Definition nav_line.h:53
bool nav_gvf_segment_XY1_XY2(float x1, float y1, float x2, float y2)
Definition nav_line.c:217
bool nav_gvf_segment_wp1_wp2(uint8_t wp1, uint8_t wp2)
Definition nav_line.c:239
bool nav_gvf_line_wp1_wp2(uint8_t wp1, uint8_t wp2)
Definition nav_line.c:161
bool nav_gvf_line_XY_heading(float x, float y, float heading)
Definition nav_line.c:120
float heading
Definition nav_line.h:44
float d2
Definition nav_line.h:54
bool nav_gvf_segment_loop_XY1_XY2(float x1, float y1, float x2, float y2, float d1, float d2)
Definition nav_line.c:177
float ke
Definition nav_line.h:42
float kn
Definition nav_line.h:43
gvf_seg_par gvf_segment_par
Definition nav_line.c:54
bool nav_gvf_segment_points(struct FloatVect2 start, struct FloatVect2 end)
Definition nav_line.c:253
bool nav_gvf_line_XY1_XY2(float x1, float y1, float x2, float y2)
Definition nav_line.c:137
gvf_li_par gvf_line_par
Definition nav_line.c:53
bool nav_gvf_segment_loop_wp1_wp2(uint8_t wp1, uint8_t wp2, float d1, float d2)
Definition nav_line.c:201
bool nav_gvf_line_wp_heading(uint8_t wp, float heading)
Definition nav_line.c:127
uint16_t foo
Definition main_demo5.c:58
Paparazzi floating point algebra.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
float heading
Definition wedgebug.c:258