Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros 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 "commands.h"
#include "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)   { uint8_t dummy = 0; DOWNLINK_SEND_FBW_STATUS(_trans, _dev, &dummy, &dummy, &fbw_mode, &electrical.vsupply, &electrical.current); }
 
#define PERIODIC_SEND_PPM(_trans, _dev)   {}
 
#define PERIODIC_SEND_RC(_trans, _dev)   {}
 
#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 52 of file fbw_downlink.h.

#define PERIODIC_SEND_ACTUATORS (   _trans,
  _dev 
)    {}

Definition at line 83 of file fbw_downlink.h.

#define PERIODIC_SEND_ADC (   _trans,
  _dev 
)    {}

Definition at line 94 of file fbw_downlink.h.

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

Definition at line 56 of file fbw_downlink.h.

#define PERIODIC_SEND_FBW_STATUS (   _trans,
  _dev 
)    { uint8_t dummy = 0; DOWNLINK_SEND_FBW_STATUS(_trans, _dev, &dummy, &dummy, &fbw_mode, &electrical.vsupply, &electrical.current); }

Definition at line 75 of file fbw_downlink.h.

#define PERIODIC_SEND_PPM (   _trans,
  _dev 
)    {}

Definition at line 76 of file fbw_downlink.h.

#define PERIODIC_SEND_RC (   _trans,
  _dev 
)    {}

Definition at line 77 of file fbw_downlink.h.

Function Documentation

static void fbw_downlink_periodic_task ( void  )
inlinestatic

Definition at line 97 of file fbw_downlink.h.

References DefaultChannel, and DefaultDevice.

Referenced by periodic_task_fbw().

+ Here is the caller graph for this function: