43 #include <uavcan/equipment/air_data/StaticPressure.hpp> 44 #include <uavcan/equipment/air_data/StaticTemperature.hpp> 49 static const char *
const NAME;
59 void air_pressure_sub_cb(
const uavcan::ReceivedDataStructure<uavcan::equipment::air_data::StaticPressure> &
msg);
60 void air_temperature_sub_cb(
const uavcan::ReceivedDataStructure<uavcan::equipment::air_data::StaticTemperature> &msg);
63 void (UavcanBarometerBridge::*)
64 (
const uavcan::ReceivedDataStructure<uavcan::equipment::air_data::StaticPressure> &) >
67 typedef uavcan::MethodBinder < UavcanBarometerBridge *,
68 void (UavcanBarometerBridge::*)
69 (
const uavcan::ReceivedDataStructure<uavcan::equipment::air_data::StaticTemperature> &) >
uavcan::Subscriber< uavcan::equipment::air_data::StaticTemperature, AirTemperatureCbBinder > _sub_air_temperature_data
void air_pressure_sub_cb(const uavcan::ReceivedDataStructure< uavcan::equipment::air_data::StaticPressure > &msg)
uavcan::MethodBinder< UavcanBarometerBridge *, void(UavcanBarometerBridge::*)(const uavcan::ReceivedDataStructure< uavcan::equipment::air_data::StaticPressure > &) > AirPressureCbBinder
static char msg[NUM_MSG][CONFIG_USART1_TXBUFSIZE]
This is the base class for redundant sensors with an independent ORB topic per each redundancy channe...
void air_temperature_sub_cb(const uavcan::ReceivedDataStructure< uavcan::equipment::air_data::StaticTemperature > &msg)
static const char *const NAME
uavcan::Subscriber< uavcan::equipment::air_data::StaticPressure, AirPressureCbBinder > _sub_air_pressure_data
uavcan::MethodBinder< UavcanBarometerBridge *, void(UavcanBarometerBridge::*)(const uavcan::ReceivedDataStructure< uavcan::equipment::air_data::StaticTemperature > &) > AirTemperatureCbBinder
const char * get_name() const override
Returns ASCII name of the bridge.
float last_temperature_kelvin
UavcanBarometerBridge(uavcan::INode &node)
int init() override
Starts the bridge.
Barometric pressure sensor driver interface.