Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
ctc.h File Reference
#include "std.h"
+ Include dependency graph for ctc.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ctc_con
 

Functions

void ctc_init (void)
 
bool collective_tracking_vehicle (void)
 
bool collective_tracking_waypoint (uint8_t wp)
 
bool collective_tracking_point (float x, float y)
 
void collective_tracking_control (void)
 
void ctc_send_info_to_nei (void)
 
void parse_ctc_RegTable (uint8_t *buf)
 
void parse_ctc_CleanTable (uint8_t *buf)
 
void parse_ctc_NeiInfoTable (uint8_t *buf)
 
void parse_ctc_TargetInfo (uint8_t *buf)
 

Variables

ctc_con ctc_control
 
int16_t tableNei [][6]
 
float ctc_error_to_target
 

Detailed Description

Collective Tracking Control

Definition in file ctc.h.


Data Structure Documentation

◆ ctc_con

struct ctc_con

Definition at line 33 of file ctc.h.

Data Fields
float alpha
float k1
float k2
float omega
float p_centroid_x
float p_centroid_y
float px
float py
float ref_px
float ref_py
float target_px
float target_py
float target_vx
float target_vy
uint16_t time_broad
uint16_t timeout
float v_centroid_x
float v_centroid_y
float vx
float vy

Function Documentation

◆ collective_tracking_control()

◆ collective_tracking_point()

bool collective_tracking_point ( float  x,
float  y 
)

Definition at line 133 of file ctc.c.

References collective_tracking_control(), ctc_control, ctc_con::target_px, ctc_con::target_py, ctc_con::target_vx, and ctc_con::target_vy.

+ Here is the call graph for this function:

◆ collective_tracking_vehicle()

bool collective_tracking_vehicle ( void  )

◆ collective_tracking_waypoint()

bool collective_tracking_waypoint ( uint8_t  wp)

Definition at line 121 of file ctc.c.

References collective_tracking_control(), ctc_control, ctc_con::target_px, ctc_con::target_py, ctc_con::target_vx, ctc_con::target_vy, waypoints, point::x, and point::y.

+ Here is the call graph for this function:

◆ ctc_init()

void ctc_init ( void  )

Definition at line 97 of file ctc.c.

References CTC_MAX_AC, DefaultPeriodic, register_periodic_telemetry(), send_ctc(), send_ctc_control(), and tableNei.

+ Here is the call graph for this function:

◆ ctc_send_info_to_nei()

void ctc_send_info_to_nei ( void  )

Referenced by collective_tracking_control().

+ Here is the caller graph for this function:

◆ parse_ctc_CleanTable()

void parse_ctc_CleanTable ( uint8_t buf)

Referenced by collective_tracking_control().

+ Here is the caller graph for this function:

◆ parse_ctc_NeiInfoTable()

void parse_ctc_NeiInfoTable ( uint8_t buf)

Referenced by collective_tracking_control().

+ Here is the caller graph for this function:

◆ parse_ctc_RegTable()

void parse_ctc_RegTable ( uint8_t buf)

Referenced by collective_tracking_control().

+ Here is the caller graph for this function:

◆ parse_ctc_TargetInfo()

void parse_ctc_TargetInfo ( uint8_t buf)

Referenced by collective_tracking_control().

+ Here is the caller graph for this function:

Variable Documentation

◆ ctc_control

◆ ctc_error_to_target

float ctc_error_to_target

◆ tableNei

int16_t tableNei[][6]

Definition at line 81 of file ctc.c.