Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
dcf.h File Reference
#include "std.h"
+ Include dependency graph for dcf.h:

Go to the source code of this file.

Data Structures

struct  dcf_con
 
struct  dcf_tab
 

Macros

#define DCF_MAX_NEIGHBORS   4
 

Functions

void dcf_init (void)
 
bool distributed_circular (uint8_t wp)
 
void send_theta_to_nei (void)
 
void parseRegTable (uint8_t *buf)
 
void parseThetaTable (uint8_t *buf)
 

Variables

struct dcf_con dcf_control
 
struct dcf_tab dcf_tables
 

Detailed Description

Distributed circular formation algorithm

Definition in file dcf.h.


Data Structure Documentation

◆ dcf_con

struct dcf_con

Definition at line 37 of file dcf.h.

Data Fields
uint16_t broadtime
float k
float radius
float theta
uint16_t timeout

◆ dcf_tab

struct dcf_tab

Definition at line 47 of file dcf.h.

Data Fields
int16_t error_sigma[DCF_MAX_NEIGHBORS]
uint32_t last_theta[DCF_MAX_NEIGHBORS]
int16_t tableNei[DCF_MAX_NEIGHBORS][4]

Macro Definition Documentation

◆ DCF_MAX_NEIGHBORS

#define DCF_MAX_NEIGHBORS   4

Default number of neighbors per aircraft

Definition at line 34 of file dcf.h.

Function Documentation

◆ dcf_init()

void dcf_init ( void  )

Definition at line 63 of file dcf.c.

References DCF_MAX_NEIGHBORS, dcf_tables, DefaultPeriodic, dcf_tab::error_sigma, register_periodic_telemetry(), send_dcf(), and dcf_tab::tableNei.

+ Here is the call graph for this function:

◆ distributed_circular()

◆ parseRegTable()

void parseRegTable ( uint8_t buf)

Definition at line 140 of file dcf.c.

References ac_id, DCF_MAX_NEIGHBORS, dcf_tables, and dcf_tab::tableNei.

◆ parseThetaTable()

void parseThetaTable ( uint8_t buf)

Definition at line 169 of file dcf.c.

References DCF_MAX_NEIGHBORS, dcf_tables, get_sys_time_msec(), dcf_tab::last_theta, and dcf_tab::tableNei.

+ Here is the call graph for this function:

◆ send_theta_to_nei()

void send_theta_to_nei ( void  )

Definition at line 125 of file dcf.c.

References dcf_control, DCF_MAX_NEIGHBORS, dcf_tables, DefaultChannel, DefaultDevice, msg, dcf_tab::tableNei, and dcf_con::theta.

Referenced by distributed_circular().

+ Here is the caller graph for this function:

Variable Documentation

◆ dcf_control

struct dcf_con dcf_control

Definition at line 58 of file dcf.c.

Referenced by distributed_circular(), and send_theta_to_nei().

◆ dcf_tables

struct dcf_tab dcf_tables