Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
can_fuelcell.c File Reference
#include "modules/energy/can_fuelcell.h"
#include "modules/datalink/telemetry.h"
#include "uavcan/uavcan.h"
+ Include dependency graph for can_fuelcell.c:

Go to the source code of this file.

Data Structures

struct  uavcan_equipment_fuelcell
 

Macros

#define UAVCAN_EQUIPMENT_FUELCELL_STATUS_MAX_SIZE   11
 
#define UAVCAN_EQUIPMENT_FUELCELL_STATUS_SIGNATURE   (0x475459FF3AA36FE5ULL)
 
#define UAVCAN_EQUIPMENT_FUELCELL_STATUS_ID   1141
 

Functions

static void fuelcell_uavcan_cb (struct uavcan_iface_t *iface, CanardRxTransfer *transfer)
 
void can_fuelcell_periodic (void)
 
static void can_fuelcell_send_telemetry (struct transport_tx *trans, struct link_device *dev)
 
void can_fuelcell_init (void)
 

Variables

static struct uavcan_equipment_fuelcell can_fuelcell_data = { 0, 67, 0.78, 45.9, 1457.0, 1234.0, -223.0, 2, 12, 7}
 
static uavcan_event fuelcell_uavcan_ev
 

Detailed Description

Author
F. van Tienen Fuel-cell data through CAN bus

Definition in file can_fuelcell.c.


Data Structure Documentation

◆ uavcan_equipment_fuelcell

struct uavcan_equipment_fuelcell

Definition at line 39 of file can_fuelcell.c.

Data Fields
uint8_t error
float power_batt
float power_cell
float power_out
float press_reg
uint8_t pressure
uint8_t state
uint8_t suberror
int timeout
float volt_bat

Macro Definition Documentation

◆ UAVCAN_EQUIPMENT_FUELCELL_STATUS_ID

#define UAVCAN_EQUIPMENT_FUELCELL_STATUS_ID   1141

Definition at line 35 of file can_fuelcell.c.

◆ UAVCAN_EQUIPMENT_FUELCELL_STATUS_MAX_SIZE

#define UAVCAN_EQUIPMENT_FUELCELL_STATUS_MAX_SIZE   11

Definition at line 33 of file can_fuelcell.c.

◆ UAVCAN_EQUIPMENT_FUELCELL_STATUS_SIGNATURE

#define UAVCAN_EQUIPMENT_FUELCELL_STATUS_SIGNATURE   (0x475459FF3AA36FE5ULL)

Definition at line 34 of file can_fuelcell.c.

Function Documentation

◆ can_fuelcell_init()

◆ can_fuelcell_periodic()

void can_fuelcell_periodic ( void  )

Definition at line 98 of file can_fuelcell.c.

References can_fuelcell_data, and uavcan_equipment_fuelcell::timeout.

◆ can_fuelcell_send_telemetry()

◆ fuelcell_uavcan_cb()

Variable Documentation

◆ can_fuelcell_data

struct uavcan_equipment_fuelcell can_fuelcell_data = { 0, 67, 0.78, 45.9, 1457.0, 1234.0, -223.0, 2, 12, 7}
static

◆ fuelcell_uavcan_ev

uavcan_event fuelcell_uavcan_ev
static

Definition at line 57 of file can_fuelcell.c.

Referenced by can_fuelcell_init().