Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
bomb.h
Go to the documentation of this file.
1 #ifndef BOMB_H
2 #define BOMB_H
3 
4 #define MY_BOMB_RADIUS DEFAULT_CIRCLE_RADIUS
5 
6 extern unit_t bomb_compute_approach( uint8_t wp_target, uint8_t wp_start, float radius );
7 extern unit_t bomb_update_release( uint8_t wp_target );
8 extern unit_t bomb_shoot( void );
10 extern bool_t compute_alignment(uint8_t w1, uint8_t w2, uint8_t start, uint8_t end, float d_before, float d_after);
11 
12 
13 #define BombComputeApproach(_target, _start, _radius) bomb_compute_approach(_target, _start, _radius)
14 #define BombUpdateRelease(_wp) bomb_update_release(_wp)
15 #define BombReadyToShoot() bomb_ready_to_shoot()
16 #define BombShoot() bomb_shoot()
17 #define BombCloseHatch() ({ ap_state->commands[COMMAND_HATCH] = MIN_PPRZ; })
18 #define BombAligned() Qdr(DegOfRad(bomb_qdr_aligned))
19 
20 
21 extern bool_t compute_tod( void );
22 extern unit_t compute_baseleg( void );
23 extern float baseleg_alt, downwind_altitude;
24 extern const float baseleg_alt_tolerance;
25 
26 #endif
const float baseleg_alt_tolerance
bool_t compute_alignment(uint8_t w1, uint8_t w2, uint8_t start, uint8_t end, float d_before, float d_after)
static float radius
Definition: chemotaxis.c:15
float baseleg_alt
unit_t bomb_update_release(uint8_t wp_target)
float bomb_start_qdr
float downwind_altitude
unit_t bomb_shoot(void)
bool_t compute_tod(void)
unsigned char uint8_t
Definition: types.h:14
float bomb_trigger_delay
unit_t compute_baseleg(void)
unit_t bomb_compute_approach(uint8_t wp_target, uint8_t wp_start, float radius)