mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 13:55:40 +08:00
[nav] bomb has a nav module
This commit is contained in:
committed by
Felix Ruess
parent
ee42369dda
commit
46067aab06
@@ -1,9 +0,0 @@
|
||||
# Hey Emacs, this is a -*- makefile -*-
|
||||
|
||||
# standard and extra fixed wing navigation
|
||||
|
||||
|
||||
#add these to all targets
|
||||
|
||||
$(TARGET).srcs += $(SRC_SUBSYSTEMS)/navigation/bomb.c
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE module SYSTEM "module.dtd">
|
||||
|
||||
<module name="nav_bomb" dir="nav">
|
||||
<doc>
|
||||
<description>
|
||||
Compute the dropping point for a fixedwing aircraft.
|
||||
Takes into account the flight speed vector and the wind to estimate the best dropping point.
|
||||
Needs some waypoints to be defined in the flight plan: REALEASE, CLIMB, BASELEG
|
||||
</description>
|
||||
</doc>
|
||||
<header>
|
||||
<file name="bomb.h"/>
|
||||
</header>
|
||||
<makefile>
|
||||
<file name="bomb.c"/>
|
||||
</makefile>
|
||||
</module>
|
||||
@@ -20,13 +20,12 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file subsystems/navigation/bomb.c
|
||||
* @file modules/nav/bomb.c
|
||||
*
|
||||
*/
|
||||
|
||||
#include "state.h"
|
||||
#include "subsystems/nav.h"
|
||||
#include "subsystems/navigation/bomb.h"
|
||||
#include "modules/nav/bomb.h"
|
||||
#include "generated/flight_plan.h"
|
||||
#include "generated/airframe.h"
|
||||
#include "inter_mcu.h"
|
||||
@@ -20,13 +20,16 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file subsystems/navigation/bomb.h
|
||||
* @file modules/nav/bomb.h
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef BOMB_H
|
||||
#define BOMB_H
|
||||
|
||||
#include "std.h"
|
||||
#include "subsystems/nav.h"
|
||||
|
||||
#define MY_BOMB_RADIUS DEFAULT_CIRCLE_RADIUS
|
||||
|
||||
extern unit_t bomb_compute_approach( uint8_t wp_target, uint8_t wp_start, float radius );
|
||||
@@ -43,10 +46,4 @@ extern bool_t compute_alignment(uint8_t w1, uint8_t w2, uint8_t start, uint8_t e
|
||||
#define BombCloseHatch() ({ ap_state->commands[COMMAND_HATCH] = MIN_PPRZ; })
|
||||
#define BombAligned() Qdr(DegOfRad(bomb_qdr_aligned))
|
||||
|
||||
|
||||
extern bool_t compute_tod( void );
|
||||
extern unit_t compute_baseleg( void );
|
||||
extern float baseleg_alt, downwind_altitude;
|
||||
extern const float baseleg_alt_tolerance;
|
||||
|
||||
#endif // BOMB_H
|
||||
Reference in New Issue
Block a user