UAVCAN GNSS subscription name fix

This commit is contained in:
Pavel Kirienko 2014-08-22 13:24:31 +04:00
parent 0d9f6b6e2e
commit f820010a2b
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@
UavcanGnssBridge::UavcanGnssBridge(uavcan::INode &node) :
_node(node),
_uavcan_sub_status(node),
_sub_fix(node),
_report_pub(-1)
{
}
@ -59,7 +59,7 @@ int UavcanGnssBridge::init()
int res = -1;
// GNSS fix subscription
res = _uavcan_sub_status.start(FixCbBinder(this, &UavcanGnssBridge::gnss_fix_sub_cb));
res = _sub_fix.start(FixCbBinder(this, &UavcanGnssBridge::gnss_fix_sub_cb));
if (res < 0)
{
warnx("GNSS fix sub failed %i", res);

View File

@ -77,7 +77,7 @@ private:
* libuavcan related things
*/
uavcan::INode &_node;
uavcan::Subscriber<uavcan::equipment::gnss::Fix, FixCbBinder> _uavcan_sub_status;
uavcan::Subscriber<uavcan::equipment::gnss::Fix, FixCbBinder> _sub_fix;
/*
* uORB