Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
approach_moving_target.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Ewoud Smeur <e.j.j.smeur@tudelft.nl>
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  */
26 #ifndef APPROACH_MOVING_TARGET_H
27 #define APPROACH_MOVING_TARGET_H
28 
29 #include "std.h"
31 
32 
33 struct Amt {
34  struct FloatVect3 rel_unit_vec;
35  float distance;
36  float speed;
37  float psi_ref;
38  float slope_ref;
40  float pos_gain;
41  float speed_gain;
42  float relvel_gain;
46 };
47 
48 extern struct Amt amt;
49 
50 extern void approach_moving_target_init(void);
51 extern void follow_diagonal_approach(void);
53 extern void approach_moving_target_set_low_pass_freq(float filter_freq);
54 
55 #endif // APPROACH_MOVING_TARGET_H
float speed_gain
void follow_diagonal_approach(void)
Generates a velocity reference from a diagonal approach path.
int32_t enabled_time
struct Amt amt
void approach_moving_target_set_low_pass_freq(float filter_freq)
float err_slowdown_gain
uint8_t wp_id
float relvel_gain
float cutoff_freq_filters_hz
void approach_moving_target_init(void)
struct FloatVect3 rel_unit_vec
void approach_moving_target_enable(uint8_t wp_id)
Paparazzi floating point algebra.
int int32_t
Typedef defining 32 bit int type.
Definition: vl53l1_types.h:83
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98