Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
uav_recovery.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013-2020 Chris Efstathiou hendrixgr@gmail.com
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 
27 #if !defined(UAV_RECOVERY_H)
28 #define UAV_RECOVERY_H
29 #define MY_PARACHUTE_RADIUS DEFAULT_CIRCLE_RADIUS
30 
31 extern unit_t parachute_compute_approach(uint8_t baseleg, uint8_t release, uint8_t wp_target);
32 extern float parachute_start_qdr;
33 extern bool deploy_parachute_var;
34 extern float airborne_wind_dir;
35 extern float airborne_wind_speed;
36 extern bool wind_measurements_valid;
37 extern bool wind_info_valid;
38 
39 extern void uav_recovery_init(void);
40 extern void uav_recovery_periodic(void);
41 extern uint8_t DeployParachute(void);
42 extern uint8_t LockParachute(void);
43 extern uint8_t calculate_wind_no_airspeed(uint8_t wp, float radius, float height);
44 
45 
46 #define ParachuteComputeApproach(_baseleg, _release, _target) parachute_compute_approach(_baseleg, _release, _target)
47 
48 #endif
bool wind_measurements_valid
Definition: uav_recovery.c:76
uint8_t DeployParachute(void)
Definition: uav_recovery.c:139
void uav_recovery_periodic(void)
Definition: uav_recovery.c:115
float airborne_wind_dir
Definition: uav_recovery.c:73
bool wind_info_valid
Definition: uav_recovery.c:77
unit_t parachute_compute_approach(uint8_t baseleg, uint8_t release, uint8_t wp_target)
Definition: uav_recovery.c:235
uint8_t LockParachute(void)
Definition: uav_recovery.c:131
bool deploy_parachute_var
Definition: uav_recovery.c:78
uint8_t calculate_wind_no_airspeed(uint8_t wp, float radius, float height)
Definition: uav_recovery.c:148
float parachute_start_qdr
Definition: uav_recovery.c:71
void uav_recovery_init(void)
Definition: uav_recovery.c:94
float airborne_wind_speed
Definition: uav_recovery.c:74
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98