Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
gvf_parametric.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2020 Hector Garcia de Marina <hgarciad@ucm.es>
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
27#ifndef GVF_PARAMETRIC_H
28#define GVF_PARAMETRIC_H
29
31#ifndef GVF_OCAML_GCS
32 #define GVF_OCAML_GCS true
33#endif
34
35/* By default, enable step adaptation (this should re-set other default parameters values) */
36#ifndef GVF_PARAMETRIC_CONTROL_STEP_ADAPTATION
37 #define GVF_PARAMETRIC_CONTROL_STEP_ADAPTATION 1
38#endif
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
46
56typedef struct {
57 float w;
58 float delta_T;
60 float k_psi;
61 float L;
62 float beta;
65
66typedef struct {
67 float phi_errors[3];
68 int e_len;
71
74
75// Init function
76extern void gvf_parametric_init(void);
77
78// Control functions
80extern void gvf_parametric_control_2D(float, float, float, float, float, float, float, float);
81extern void gvf_parametric_control_3D(float, float, float, float, float, float, float, float, float,
82 float, float, float);
83
84#ifdef __cplusplus
85}
86#endif
87
88
89#endif // GVF_PARAMETRIC_H
gvf_parametric_con gvf_parametric_control
void gvf_parametric_control_3D(float, float, float, float, float, float, float, float, float, float, float, float)
void gvf_parametric_control_2D(float, float, float, float, float, float, float, float)
void gvf_parametric_init(void)
gvf_parametric_tel gvf_parametric_telemetry
void gvf_parametric_set_direction(int8_t s)
static uint32_t s
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
signed char int8_t
Typedef defining 8 bit char type.