43 #include <uavcan/equipment/power/BatteryInfo.hpp> 48 static const char *
const NAME;
58 void battery_sub_cb(
const uavcan::ReceivedDataStructure<uavcan::equipment::power::BatteryInfo> &
msg);
61 void (UavcanBatteryBridge::*)
62 (
const uavcan::ReceivedDataStructure<uavcan::equipment::power::BatteryInfo> &) >
65 uavcan::Subscriber<uavcan::equipment::power::BatteryInfo, BatteryInfoCbBinder>
_sub_battery;
const char * get_name() const override
Returns ASCII name of the bridge.
int init() override
Starts the bridge.
uavcan::MethodBinder< UavcanBatteryBridge *, void(UavcanBatteryBridge::*)(const uavcan::ReceivedDataStructure< uavcan::equipment::power::BatteryInfo > &) > BatteryInfoCbBinder
uavcan::Subscriber< uavcan::equipment::power::BatteryInfo, BatteryInfoCbBinder > _sub_battery
static const char *const NAME
void battery_sub_cb(const uavcan::ReceivedDataStructure< uavcan::equipment::power::BatteryInfo > &msg)
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...
UavcanBatteryBridge(uavcan::INode &node)