PX4 Firmware
PX4 Autopilot Software http://px4.io
|
A sensor bridge class must implement this interface. More...
#include <sensor_bridge.hpp>
Public Member Functions | |
virtual | ~IUavcanSensorBridge ()=default |
virtual const char * | get_name () const =0 |
Returns ASCII name of the bridge. More... | |
virtual int | init ()=0 |
Starts the bridge. More... | |
virtual unsigned | get_num_redundant_channels () const =0 |
Returns number of active redundancy channels. More... | |
virtual void | print_status () const =0 |
Prints current status in a human readable format to stdout. More... | |
Public Member Functions inherited from ListNode< IUavcanSensorBridge *> | |
void | setSibling (IUavcanSensorBridge * sibling) |
const IUavcanSensorBridge * | getSibling () const |
Static Public Member Functions | |
static void | make_all (uavcan::INode &node, List< IUavcanSensorBridge *> &list) |
Sensor bridge factory. More... | |
Static Public Attributes | |
static constexpr unsigned | MAX_NAME_LEN = 20 |
Additional Inherited Members | |
Protected Attributes inherited from ListNode< IUavcanSensorBridge *> | |
IUavcanSensorBridge * | _list_node_sibling |
A sensor bridge class must implement this interface.
Definition at line 49 of file sensor_bridge.hpp.
|
virtualdefault |
|
pure virtual |
Returns ASCII name of the bridge.
Implemented in UavcanGnssBridge, UavcanMagnetometerBridge, UavcanBarometerBridge, UavcanBatteryBridge, and UavcanFlowBridge.
|
pure virtual |
Returns number of active redundancy channels.
Implemented in UavcanCDevSensorBridgeBase, and UavcanGnssBridge.
Referenced by UavcanCDevSensorBridgeBase::UavcanCDevSensorBridgeBase().
|
pure virtual |
Starts the bridge.
Implemented in UavcanGnssBridge, UavcanMagnetometerBridge, UavcanBarometerBridge, UavcanBatteryBridge, and UavcanFlowBridge.
|
static |
Sensor bridge factory.
Creates all known sensor bridges and puts them in the linked list.
Definition at line 50 of file sensor_bridge.cpp.
Referenced by UavcanNode::init().
|
pure virtual |
Prints current status in a human readable format to stdout.
Implemented in UavcanCDevSensorBridgeBase, and UavcanGnssBridge.
Referenced by UavcanCDevSensorBridgeBase::UavcanCDevSensorBridgeBase().
|
static |
Definition at line 52 of file sensor_bridge.hpp.