Paparazzi UAS  v5.15_devel-81-gd13dafb
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
rssi.c File Reference
#include "modules/multi/rssi.h"
#include "subsystems/datalink/datalink.h"
#include "pprzlink/messages.h"
#include "subsystems/abi.h"
#include "generated/airframe.h"
+ Include dependency graph for rssi.c:

Go to the source code of this file.

Macros

#define NB_ACS_ID   256
 
#define NB_ACS   24
 

Functions

static void rssi_cb (uint8_t sender_id, uint8_t _ac_id, int8_t _tx_strength, int8_t _rssi)
 
void rssi_init ()
 
void parse_rssi_dl (void)
 
void set_rssi (uint8_t _ac_id, int8_t _tx_strength, int8_t _rssi)
 
struct rssi_info_ get_rssi (uint8_t _ac_id)
 

Variables

uint8_t rssi_acs_idx
 
struct rssi_info_ rssi_acs [NB_ACS]
 
uint8_t rssi_acs_id [NB_ACS_ID]
 
abi_event ev
 

Detailed Description

Author
Kirk Scheper stores received rssi values for communication protocols that support it

Definition in file rssi.c.

Macro Definition Documentation

#define NB_ACS_ID   256

Definition at line 35 of file rssi.c.

Referenced by rssi_init(), and traffic_info_init().

Function Documentation

struct rssi_info_ get_rssi ( uint8_t  _ac_id)

Definition at line 90 of file rssi.c.

References rssi_acs, and rssi_acs_id.

void parse_rssi_dl ( void  )

Definition at line 65 of file rssi.c.

References dl_buffer, and set_rssi().

+ Here is the call graph for this function:

static void rssi_cb ( uint8_t  sender_id,
uint8_t  _ac_id,
int8_t  _tx_strength,
int8_t  _rssi 
)
static

Definition at line 47 of file rssi.c.

References set_rssi().

Referenced by rssi_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void rssi_init ( void  )

Definition at line 52 of file rssi.c.

References ABI_BROADCAST, rssi_info_::ac_id, NB_ACS_ID, rssi_acs, rssi_acs_id, rssi_acs_idx, and rssi_cb().

+ Here is the call graph for this function:

void set_rssi ( uint8_t  _ac_id,
int8_t  _tx_strength,
int8_t  _rssi 
)

Definition at line 77 of file rssi.c.

References rssi_info_::ac_id, NB_ACS, rssi_info_::rssi, rssi_acs, rssi_acs_id, rssi_acs_idx, and rssi_info_::tx_strength.

Referenced by parse_rssi_dl(), and rssi_cb().

+ Here is the caller graph for this function:

Variable Documentation

Definition at line 45 of file rssi.c.

struct rssi_info_ rssi_acs[NB_ACS]

Definition at line 42 of file rssi.c.

Referenced by get_rssi(), rssi_init(), and set_rssi().

uint8_t rssi_acs_id[NB_ACS_ID]

Definition at line 43 of file rssi.c.

Referenced by get_rssi(), rssi_init(), and set_rssi().

uint8_t rssi_acs_idx

Definition at line 41 of file rssi.c.

Referenced by rssi_init(), and set_rssi().