mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Move uORB Subscription getter to header file (#6891)
This commit is contained in:
committed by
Daniel Agar
parent
8a6b6f9be5
commit
f5ffdba4cc
@@ -151,9 +151,6 @@ bool Subscription<T>::check_updated()
|
||||
return SubscriptionBase::updated();
|
||||
}
|
||||
|
||||
template <class T>
|
||||
const T &Subscription<T>::get() { return _data; }
|
||||
|
||||
template class __EXPORT Subscription<actuator_armed_s>;
|
||||
template class __EXPORT Subscription<actuator_controls_s>;
|
||||
template class __EXPORT Subscription<att_pos_mocap_s>;
|
||||
|
||||
@@ -193,7 +193,7 @@ public:
|
||||
/*
|
||||
* This function gets the T struct data
|
||||
* */
|
||||
const T &get();
|
||||
const T &get() const { return _data; }
|
||||
private:
|
||||
T _data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user