Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
traffic_info.h File Reference
+ Include dependency graph for traffic_info.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  acInfo
 

Macros

#define NB_ACS_ID   256
 
#define NB_ACS   24
 
#define AC_INFO_POS_UTM_I   0
 
#define AC_INFO_POS_LLA_I   1
 
#define AC_INFO_POS_ENU_I   2
 
#define AC_INFO_POS_UTM_F   3
 
#define AC_INFO_POS_LLA_F   4
 
#define AC_INFO_POS_ENU_F   5
 
#define AC_INFO_VEL_ENU_I   6
 
#define AC_INFO_VEL_ENU_F   7
 
#define AC_INFO_VEL_LOCAL_F   8
 

Functions

void traffic_info_init (void)
 
bool parse_acinfo_dl (uint8_t *buf)
 Parse all datalink or telemetry messages that contain global position of other acs Messages currently handled: Telemetry (vehicle -> ground or vehicle -> vehicle): GPS_SMALL, GPS, GPS_LLA Datalink (ground -> vehicle): ACINFO, ACINFO_LLA. More...
 
void set_ac_info_utm (uint8_t id, uint32_t utm_east, uint32_t utm_north, uint32_t alt, uint8_t utm_zone, uint16_t course, uint16_t gspeed, uint16_t climb, uint32_t itow)
 Set Aircraft info. More...
 
void set_ac_info_lla (uint8_t id, int32_t lat, int32_t lon, int32_t alt, int16_t course, uint16_t gspeed, int16_t climb, uint32_t itow)
 Set Aircraft info. More...
 
static void acInfoSetPositionUtm_i (uint8_t ac_id, struct UtmCoor_i *utm_pos)
 Set position from UTM coordinates (int). More...
 
static void acInfoSetPositionLla_i (uint8_t ac_id, struct LlaCoor_i *lla_pos)
 Set position from LLA coordinates (int). More...
 
static void acInfoSetPositionEnu_i (uint8_t ac_id, struct EnuCoor_i *enu_pos)
 Set position from ENU coordinates (int). More...
 
static void acInfoSetPositionUtm_f (uint8_t ac_id, struct UtmCoor_f *utm_pos)
 Set position from UTM coordinates (float). More...
 
static void acInfoSetPositionLla_f (uint8_t ac_id, struct LlaCoor_f *lla_pos)
 Set position from LLA coordinates (float). More...
 
static void acInfoSetPositionEnu_f (uint8_t ac_id, struct EnuCoor_f *enu_pos)
 Set position from ENU coordinates (float). More...
 
static void acInfoSetVelocityEnu_i (uint8_t ac_id, struct EnuCoor_i *enu_vel)
 Set velocity from ENU coordinates (int). More...
 
static void acInfoSetVelocityEnu_f (uint8_t ac_id, struct EnuCoor_f *enu_vel)
 Set velocity from ENU coordinates (float). More...
 
void acInfoCalcPositionUtm_i (uint8_t ac_id)
 
void acInfoCalcPositionUtm_f (uint8_t ac_id)
 
void acInfoCalcPositionLla_i (uint8_t ac_id)
 
void acInfoCalcPositionLla_f (uint8_t ac_id)
 
void acInfoCalcPositionEnu_i (uint8_t ac_id)
 
void acInfoCalcPositionEnu_f (uint8_t ac_id)
 
void acInfoCalcVelocityEnu_i (uint8_t ac_id)
 
void acInfoCalcVelocityEnu_f (uint8_t ac_id)
 
static struct UtmCoor_iacInfoGetPositionUtm_i (uint8_t ac_id)
 Get position from UTM coordinates (int). More...
 
static struct LlaCoor_iacInfoGetPositionLla_i (uint8_t ac_id)
 Get position from LLA coordinates (int). More...
 
static struct EnuCoor_iacInfoGetPositionEnu_i (uint8_t ac_id)
 Get position in local ENU coordinates (int). More...
 
static struct UtmCoor_facInfoGetPositionUtm_f (uint8_t ac_id)
 Get position from UTM coordinates (float). More...
 
static struct LlaCoor_facInfoGetPositionLla_f (uint8_t ac_id)
 Get position from LLA coordinates (float). More...
 
static struct EnuCoor_facInfoGetPositionEnu_f (uint8_t ac_id)
 Get position in local ENU coordinates (float). More...
 
static struct EnuCoor_iacInfoGetVelocityEnu_i (uint8_t ac_id)
 Get position from ENU coordinates (int). More...
 
static struct EnuCoor_facInfoGetVelocityEnu_f (uint8_t ac_id)
 Get position from ENU coordinates (float). More...
 
static float acInfoGetCourse (uint8_t ac_id)
 Get vehicle course (float). More...
 
static float acInfoGetGspeed (uint8_t ac_id)
 Get vehicle ground speed (float). More...
 
static float acInfoGetClimb (uint8_t ac_id)
 Get vehicle climb speed (float). More...
 
static uint32_t acInfoGetItow (uint8_t ac_id)
 Get time of week from latest message (ms). More...
 

Variables

uint8_t ti_acs_idx
 
uint8_t ti_acs_id []
 
struct acInfo ti_acs []
 

Detailed Description

Author
Kirk Scheper Keeps track of other aircraft in airspace

Definition in file traffic_info.h.

Macro Definition Documentation

#define NB_ACS_ID   256

Definition at line 37 of file traffic_info.h.