Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
airspeed_uavcan.c File Reference

Airspeed sensor on the uavcan bus. More...

#include "airspeed_uavcan.h"
#include "uavcan/uavcan.h"
#include "core/abi.h"
#include "mcu_periph/sys_time.h"
#include "math/pprz_isa.h"
#include "uavcan.equipment.air_data.RawAirData.h"
Include dependency graph for airspeed_uavcan.c:

Go to the source code of this file.

Macros

#define AIRSPEED_UAVCAN_DIFF_P_SCALE   1.0f
#define AIRSPEED_UAVCAN_KELVIN_MIN   150.f

Functions

static void airspeed_uavcan_cb (struct uavcan_iface_t *iface, CanardRxTransfer *transfer)
void airspeed_uavcan_init (void)

Variables

struct airspeed_uavcan_t airspeed_uavcan = {0}
static uavcan_event airspeed_uavcan_ev

Detailed Description

Airspeed sensor on the uavcan bus.

Definition in file airspeed_uavcan.c.

Macro Definition Documentation

◆ AIRSPEED_UAVCAN_DIFF_P_SCALE

#define AIRSPEED_UAVCAN_DIFF_P_SCALE   1.0f

Definition at line 35 of file airspeed_uavcan.c.

Referenced by airspeed_uavcan_init().

◆ AIRSPEED_UAVCAN_KELVIN_MIN

#define AIRSPEED_UAVCAN_KELVIN_MIN   150.f

Definition at line 40 of file airspeed_uavcan.c.

Referenced by airspeed_uavcan_cb().

Function Documentation

◆ airspeed_uavcan_cb()

void airspeed_uavcan_cb ( struct uavcan_iface_t * iface,
CanardRxTransfer * transfer )
static

Definition at line 47 of file airspeed_uavcan.c.

References airspeed_uavcan, AIRSPEED_UAVCAN_KELVIN_MIN, get_sys_time_usec(), PPRZ_ISA_ABS_NULL, TEMPERATURE_TYPE_AIR, transfer(), and UAVCAN_SENDER_ID.

Referenced by airspeed_uavcan_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ airspeed_uavcan_init()

void airspeed_uavcan_init ( void )

Definition at line 77 of file airspeed_uavcan.c.

References airspeed_uavcan, airspeed_uavcan_cb(), AIRSPEED_UAVCAN_DIFF_P_SCALE, airspeed_uavcan_ev, and uavcan_bind().

Here is the call graph for this function:

Variable Documentation

◆ airspeed_uavcan

struct airspeed_uavcan_t airspeed_uavcan = {0}

Definition at line 44 of file airspeed_uavcan.c.

Referenced by airspeed_uavcan_cb(), and airspeed_uavcan_init().

◆ airspeed_uavcan_ev

uavcan_event airspeed_uavcan_ev
static

Definition at line 45 of file airspeed_uavcan.c.

Referenced by airspeed_uavcan_init().