Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/energy/can_fuelcell.h"
#include "modules/datalink/telemetry.h"
#include "uavcan/uavcan.h"
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 |
Definition in file can_fuelcell.c.
struct uavcan_equipment_fuelcell |
#define UAVCAN_EQUIPMENT_FUELCELL_STATUS_ID 1141 |
Definition at line 35 of file can_fuelcell.c.
#define UAVCAN_EQUIPMENT_FUELCELL_STATUS_MAX_SIZE 11 |
Definition at line 33 of file can_fuelcell.c.
#define UAVCAN_EQUIPMENT_FUELCELL_STATUS_SIGNATURE (0x475459FF3AA36FE5ULL) |
Definition at line 34 of file can_fuelcell.c.
void can_fuelcell_init | ( | void | ) |
Definition at line 127 of file can_fuelcell.c.
References can_fuelcell_send_telemetry(), DefaultPeriodic, fuelcell_uavcan_cb(), fuelcell_uavcan_ev, register_periodic_telemetry(), uavcan_bind(), UAVCAN_EQUIPMENT_FUELCELL_STATUS_ID, and UAVCAN_EQUIPMENT_FUELCELL_STATUS_SIGNATURE.
void can_fuelcell_periodic | ( | void | ) |
Definition at line 98 of file can_fuelcell.c.
References can_fuelcell_data, and uavcan_equipment_fuelcell::timeout.
|
static |
Definition at line 114 of file can_fuelcell.c.
References can_fuelcell_data, dev, uavcan_equipment_fuelcell::error, uavcan_equipment_fuelcell::power_batt, uavcan_equipment_fuelcell::power_cell, uavcan_equipment_fuelcell::power_out, uavcan_equipment_fuelcell::press_reg, uavcan_equipment_fuelcell::pressure, uavcan_equipment_fuelcell::state, uavcan_equipment_fuelcell::suberror, uavcan_equipment_fuelcell::timeout, and uavcan_equipment_fuelcell::volt_bat.
Referenced by can_fuelcell_init().
|
static |
Definition at line 59 of file can_fuelcell.c.
References can_fuelcell_data, uavcan_equipment_fuelcell::error, uavcan_equipment_fuelcell::power_batt, uavcan_equipment_fuelcell::power_cell, uavcan_equipment_fuelcell::power_out, uavcan_equipment_fuelcell::press_reg, uavcan_equipment_fuelcell::pressure, uavcan_equipment_fuelcell::state, uavcan_equipment_fuelcell::suberror, uavcan_equipment_fuelcell::timeout, transfer(), and uavcan_equipment_fuelcell::volt_bat.
Referenced by can_fuelcell_init().
|
static |
Definition at line 1 of file can_fuelcell.c.
Referenced by can_fuelcell_periodic(), can_fuelcell_send_telemetry(), and fuelcell_uavcan_cb().
|
static |
Definition at line 57 of file can_fuelcell.c.
Referenced by can_fuelcell_init().