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
41
extern
"C"
{
42
#endif
43
44
#include "
modules/guidance/gvf_common.h
"
45
#include "
modules/guidance/trajectories/gvf_param_traj.h
"
46
56
typedef
struct
{
57
float
w
;
58
float
delta_T
;
59
int8_t
s
;
60
float
k_psi
;
61
float
L
;
62
float
beta
;
63
bool
step_adaptation
;
64
}
gvf_parametric_con
;
65
66
typedef
struct
{
67
float
phi_errors[3];
68
int
e_len
;
69
uint32_t
splines_ctr
;
70
}
gvf_parametric_tel
;
71
72
extern
gvf_parametric_con
gvf_parametric_control
;
73
extern
gvf_parametric_tel
gvf_parametric_telemetry
;
74
75
// Init function
76
extern
void
gvf_parametric_init
(
void
);
77
78
// Control functions
79
extern
void
gvf_parametric_set_direction
(
int8_t
s
);
80
extern
void
gvf_parametric_control_2D
(
float
,
float
,
float
,
float
,
float
,
float
,
float
,
float
);
81
extern
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_common.h
gvf_param_traj.h
gvf_parametric_control
gvf_parametric_con gvf_parametric_control
Definition
gvf_parametric.cpp:75
gvf_parametric_control_3D
void gvf_parametric_control_3D(float, float, float, float, float, float, float, float, float, float, float, float)
gvf_parametric_control_2D
void gvf_parametric_control_2D(float, float, float, float, float, float, float, float)
Definition
gvf_parametric.cpp:149
gvf_parametric_con::k_psi
float k_psi
Definition
gvf_parametric.h:60
gvf_parametric_con::delta_T
float delta_T
Definition
gvf_parametric.h:58
gvf_parametric_con::w
float w
Definition
gvf_parametric.h:57
gvf_parametric_tel::splines_ctr
uint32_t splines_ctr
Definition
gvf_parametric.h:69
gvf_parametric_con::s
int8_t s
Definition
gvf_parametric.h:59
gvf_parametric_con::step_adaptation
bool step_adaptation
Definition
gvf_parametric.h:63
gvf_parametric_init
void gvf_parametric_init(void)
Definition
gvf_parametric.cpp:128
gvf_parametric_con::beta
float beta
Definition
gvf_parametric.h:62
gvf_parametric_con::L
float L
Definition
gvf_parametric.h:61
gvf_parametric_tel::e_len
int e_len
Definition
gvf_parametric.h:68
gvf_parametric_telemetry
gvf_parametric_tel gvf_parametric_telemetry
Definition
gvf_parametric.cpp:76
gvf_parametric_set_direction
void gvf_parametric_set_direction(int8_t s)
Definition
gvf_parametric.cpp:437
gvf_parametric_con
Definition
gvf_parametric.h:56
gvf_parametric_tel
Definition
gvf_parametric.h:66
s
static uint32_t s
Definition
light_scheduler.c:33
uint32_t
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
Definition
vl53l1_types.h:78
int8_t
signed char int8_t
Typedef defining 8 bit char type.
Definition
vl53l1_types.h:103
sw
airborne
modules
guidance
gvf_parametric
gvf_parametric.h
Generated on Wed Jun 3 2026 22:07:13 for Paparazzi UAS by
1.9.8