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
23#ifndef GVF_IK_LINE_H
24#define GVF_IK_LINE_H
25
27
34typedef struct {
35 float ke;
36 float kn;
37 float heading;
39
45typedef struct {
46 float d1;
47 float d2;
49
54
55// Straight line
56extern bool nav_gvf_ik_line_XY_heading(float x, float y, float heading);
57extern bool nav_gvf_ik_line_wp_heading(uint8_t wp, float heading);
58extern bool nav_gvf_ik_line_XY1_XY2(float x1, float y1, float x2, float y2);
60extern bool nav_gvf_ik_segment_loop_XY1_XY2(float x1, float y1, float x2, float y2, float d1, float d2);
61extern bool nav_gvf_ik_segment_loop_wp1_wp2(uint8_t wp1, uint8_t wp2, float d1, float d2);
62extern bool nav_gvf_ik_segment_XY1_XY2(float x1, float y1, float x2, float y2);
64
65#endif // GVF_IK_LINE_H
static uint16_t d1
static uint16_t d2
bool nav_gvf_ik_segment_XY1_XY2(float x1, float y1, float x2, float y2)
Definition nav_line.c:215
bool nav_gvf_ik_line_wp1_wp2(uint8_t wp1, uint8_t wp2)
Definition nav_line.c:161
bool nav_gvf_ik_line_XY1_XY2(float x1, float y1, float x2, float y2)
Definition nav_line.c:137
bool nav_gvf_ik_segment_loop_XY1_XY2(float x1, float y1, float x2, float y2, float d1, float d2)
Definition nav_line.c:175
bool nav_gvf_ik_segment_loop_wp1_wp2(uint8_t wp1, uint8_t wp2, float d1, float d2)
Definition nav_line.c:199
bool nav_gvf_ik_line_wp_heading(uint8_t wp, float heading)
Definition nav_line.c:127
gvf_ik_seg_par gvf_ik_segment_par
Definition nav_line.c:54
gvf_ik_li_par gvf_ik_line_par
Definition nav_line.c:53
bool nav_gvf_ik_line_XY_heading(float x, float y, float heading)
Definition nav_line.c:120
float heading
Definition nav_line.h:37
bool nav_gvf_ik_segment_wp1_wp2(uint8_t wp1, uint8_t wp2)
Definition nav_line.c:237
uint16_t foo
Definition main_demo5.c:58
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
float heading
Definition wedgebug.c:258