mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 04:23:33 +08:00
Compilation error fixes, thanks GCC 4.8
This commit is contained in:
@@ -167,7 +167,7 @@ public:
|
||||
return reinterpret_cast<const char*>(data_);
|
||||
}
|
||||
|
||||
ValueType& at(SizeType pos) { return data_[validateRange(pos)]; }
|
||||
ValueType& at(SizeType pos) { return data_[Base::validateRange(pos)]; }
|
||||
const ValueType& at(SizeType pos) const { return data_[Base::validateRange(pos)]; }
|
||||
|
||||
ValueType& operator[](SizeType pos) { return at(pos); }
|
||||
|
||||
@@ -29,12 +29,12 @@ public:
|
||||
|
||||
int broadcast(const DataType& message)
|
||||
{
|
||||
return publish(message, TransferTypeMessageBroadcast, NodeID::Broadcast);
|
||||
return BaseType::publish(message, TransferTypeMessageBroadcast, NodeID::Broadcast);
|
||||
}
|
||||
|
||||
int broadcast(const DataType& message, TransferID tid)
|
||||
{
|
||||
return publish(message, TransferTypeMessageBroadcast, NodeID::Broadcast, tid);
|
||||
return BaseType::publish(message, TransferTypeMessageBroadcast, NodeID::Broadcast, tid);
|
||||
}
|
||||
|
||||
int unicast(const DataType& message, NodeID dst_node_id)
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
assert(0);
|
||||
return -ErrInvalidParam;
|
||||
}
|
||||
return publish(message, TransferTypeMessageUnicast, dst_node_id);
|
||||
return BaseType::publish(message, TransferTypeMessageUnicast, dst_node_id);
|
||||
}
|
||||
|
||||
static MonotonicDuration getDefaultTxTimeout() { return MonotonicDuration::fromMSec(5); } // 5 ms --> 200 Hz max
|
||||
|
||||
Reference in New Issue
Block a user