Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
formation.c File Reference

library for formation flight More...

#include "multi/formation.h"
#include "std.h"
#include "state.h"
#include "subsystems/datalink/downlink.h"
#include "firmwares/fixedwing/nav.h"
#include "firmwares/fixedwing/guidance/guidance_v.h"
#include "generated/flight_plan.h"
+ Include dependency graph for formation.c:

Go to the source code of this file.

Macros

#define FORMATION_C
 
#define FORM_CARROT   2.
 
#define FORM_POS_PGAIN   0.
 
#define FORM_SPEED_PGAIN   0.
 
#define FORM_COURSE_PGAIN   0.
 
#define FORM_ALTITUDE_PGAIN   0.
 
#define FORM_PROX   20.
 
#define FORM_MODE   0
 

Functions

int formation_init (void)
 
int add_slot (uint8_t _id, float slot_e, float slot_n, float slot_a)
 
int start_formation (void)
 
int stop_formation (void)
 
int formation_flight (void)
 
void formation_pre_call (void)
 

Variables

float form_n
 
float form_e
 
float form_a
 
float form_speed
 
float form_speed_n
 
float form_speed_e
 
float form_carrot
 
float form_prox
 
float coef_form_pos
 
float coef_form_speed
 
float coef_form_course
 
float coef_form_alt
 
uint8_t form_mode
 
uint8_t leader_id
 
float old_cruise
 
float old_alt
 
struct slot_ formation [NB_ACS]
 

Detailed Description

library for formation flight

Definition in file formation.c.

Macro Definition Documentation

#define FORM_ALTITUDE_PGAIN   0.

Definition at line 51 of file formation.c.

Referenced by formation_init().

#define FORM_CARROT   2.

Definition at line 35 of file formation.c.

Referenced by formation_flight(), and formation_init().

#define FORM_COURSE_PGAIN   0.

Definition at line 47 of file formation.c.

Referenced by formation_init().

#define FORM_MODE   0

Definition at line 59 of file formation.c.

Referenced by formation_init().

#define FORM_POS_PGAIN   0.

Definition at line 39 of file formation.c.

Referenced by formation_init().

#define FORM_PROX   20.

Definition at line 55 of file formation.c.

Referenced by formation_init().

#define FORM_SPEED_PGAIN   0.

Definition at line 43 of file formation.c.

Referenced by formation_init().

#define FORMATION_C

Definition at line 5 of file formation.c.

Function Documentation

int add_slot ( uint8_t  _id,
float  slot_e,
float  slot_n,
float  slot_a 
)
void formation_pre_call ( void  )

Definition at line 254 of file formation.c.

References slot_::east, formation, leader_id, slot_::north, stateGetPositionEnu_f(), ti_acs_id, EnuCoor_f::x, and EnuCoor_f::y.

+ Here is the call graph for this function:

Variable Documentation

float coef_form_alt

Definition at line 27 of file formation.c.

Referenced by formation_flight(), and formation_init().

float coef_form_course

Definition at line 26 of file formation.c.

Referenced by formation_init().

float coef_form_pos

Definition at line 24 of file formation.c.

Referenced by formation_flight(), and formation_init().

float coef_form_speed

Definition at line 25 of file formation.c.

Referenced by formation_flight(), and formation_init().

float form_a

Definition at line 19 of file formation.c.

Referenced by formation_flight().

float form_carrot

Definition at line 22 of file formation.c.

Referenced by formation_flight(), and formation_init().

float form_e

Definition at line 19 of file formation.c.

Referenced by formation_flight().

uint8_t form_mode

Definition at line 28 of file formation.c.

Referenced by add_slot(), formation_flight(), formation_init(), and parseFormationSlot().

float form_n

Definition at line 19 of file formation.c.

Referenced by formation_flight().

float form_prox

Definition at line 23 of file formation.c.

Referenced by formation_flight(), and formation_init().

float form_speed

Definition at line 20 of file formation.c.

Referenced by formation_flight().

float form_speed_e

Definition at line 20 of file formation.c.

Referenced by formation_flight().

float form_speed_n

Definition at line 20 of file formation.c.

Referenced by formation_flight().

float old_alt

Definition at line 30 of file formation.c.

Referenced by formation_init(), start_formation(), and stop_formation().

float old_cruise

Definition at line 30 of file formation.c.

Referenced by formation_init(), start_formation(), and stop_formation().