Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
fbw_downlink.h File Reference

Set of macros defining the periodic telemetry messages of FBW process. More...

#include <inttypes.h>
#include "messages.h"
#include "generated/periodic_telemetry.h"
#include "generated/airframe.h"
#include "subsystems/commands.h"
#include "subsystems/actuators.h"
#include "mcu_periph/uart.h"
#include "firmwares/fixedwing/main_fbw.h"
#include "subsystems/radio_control.h"
#include "subsystems/electrical.h"
#include "inter_mcu.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for fbw_downlink.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DOWNLINK_DEVICE   DOWNLINK_FBW_DEVICE
 
#define PERIODIC_SEND_COMMANDS(_trans, _dev)   DOWNLINK_SEND_COMMANDS(_trans, _dev, COMMANDS_NB, commands)
 
#define PERIODIC_SEND_FBW_STATUS(_trans, _dev)   DOWNLINK_SEND_FBW_STATUS(_trans, _dev, &(radio_control.status), &(radio_control.frame_rate), &fbw_mode, &electrical.vsupply, &electrical.current)
 
#define PERIODIC_SEND_PPM(_trans, _dev)   {}
 
#define PERIODIC_SEND_RC(_trans, _dev)   DOWNLINK_SEND_RC(_trans, _dev, RADIO_CONTROL_NB_CHANNEL, radio_control.values)
 
#define PERIODIC_SEND_ACTUATORS(_trans, _dev)   {}
 
#define PERIODIC_SEND_ADC(_trans, _dev)   {}
 

Functions

static void fbw_downlink_periodic_task (void)
 

Detailed Description

Set of macros defining the periodic telemetry messages of FBW process.

The PeriodicSendAp() macro is generated from the telemetry description (named in conf.xml, usually in conf/telemetry directory). This macro is a sequence of calls to PERIODIC_SEND_message() which have to be defined in the present file.

Definition in file fbw_downlink.h.

Macro Definition Documentation

#define DOWNLINK_DEVICE   DOWNLINK_FBW_DEVICE

Definition at line 51 of file fbw_downlink.h.

#define PERIODIC_SEND_ACTUATORS (   _trans,
  _dev 
)    {}

Definition at line 82 of file fbw_downlink.h.

#define PERIODIC_SEND_ADC (   _trans,
  _dev 
)    {}

Definition at line 93 of file fbw_downlink.h.

#define PERIODIC_SEND_COMMANDS (   _trans,
  _dev 
)    DOWNLINK_SEND_COMMANDS(_trans, _dev, COMMANDS_NB, commands)

Definition at line 55 of file fbw_downlink.h.

#define PERIODIC_SEND_FBW_STATUS (   _trans,
  _dev 
)    DOWNLINK_SEND_FBW_STATUS(_trans, _dev, &(radio_control.status), &(radio_control.frame_rate), &fbw_mode, &electrical.vsupply, &electrical.current)

Definition at line 58 of file fbw_downlink.h.

#define PERIODIC_SEND_PPM (   _trans,
  _dev 
)    {}

Definition at line 70 of file fbw_downlink.h.

#define PERIODIC_SEND_RC (   _trans,
  _dev 
)    DOWNLINK_SEND_RC(_trans, _dev, RADIO_CONTROL_NB_CHANNEL, radio_control.values)

Definition at line 72 of file fbw_downlink.h.

Function Documentation

static void fbw_downlink_periodic_task ( void  )
inlinestatic

Definition at line 96 of file fbw_downlink.h.

References DefaultChannel, and DefaultDevice.

Referenced by periodic_task_fbw().

+ Here is the caller graph for this function: