Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
nav_drop.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2007-2009 ENAC, Pascal Brisset, Antoine Drouin
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
29
#ifndef NAV_DROP_H
30
#define NAV_DROP_H
31
32
#include "
std.h
"
33
#include "
firmwares/fixedwing/nav.h
"
34
35
extern
unit_t
nav_drop_compute_approach
(
uint8_t
wp_target,
uint8_t
wp_start,
uint8_t
wp_baseturn,
uint8_t
wp_climbout,
36
float
radius);
37
extern
unit_t
nav_drop_update_release
(
uint8_t
wp_target);
38
extern
unit_t
nav_drop_shoot
(
void
);
39
extern
float
nav_drop_trigger_delay
,
nav_drop_start_qdr
;
40
extern
bool
compute_alignment
(
uint8_t
w1,
uint8_t
w2,
uint8_t
start,
uint8_t
end,
float
d_before,
float
d_after);
41
42
#define NavDropComputeApproach(_target, _start, _radius) nav_drop_compute_approach(_target, _start, _radius)
43
#define NavDropUpdateRelease(_wp) nav_drop_update_release(_wp)
44
#define NavDropShoot() nav_drop_shoot()
45
#define NavDropCloseHatch() ({ imcu_set_command(COMMAND_HATCH, MIN_PPRZ); })
46
#define NavDropAligned() Qdr(DegOfRad(nav_drop_qdr_aligned))
47
48
#endif // NAV_DROP_H
compute_alignment
bool compute_alignment(uint8_t w1, uint8_t w2, uint8_t start, uint8_t end, float d_before, float d_after)
nav_drop_start_qdr
float nav_drop_start_qdr
Definition:
nav_drop.h:39
std.h
nav_drop_compute_approach
unit_t nav_drop_compute_approach(uint8_t wp_target, uint8_t wp_start, uint8_t wp_baseturn, uint8_t wp_climbout, float radius)
nav_drop_shoot
unit_t nav_drop_shoot(void)
uint8_t
unsigned char uint8_t
Definition:
types.h:14
nav.h
nav_drop_trigger_delay
float nav_drop_trigger_delay
nav_drop_update_release
unit_t nav_drop_update_release(uint8_t wp_target)
sw
airborne
modules
nav
nav_drop.h
Generated on Tue Feb 1 2022 13:51:16 for Paparazzi UAS by
1.8.17