mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 06:20:34 +08:00
commander preflight check sensors via uORB instead of IOCTL
- remove all platform defines
This commit is contained in:
committed by
Lorenz Meier
parent
f72e9e4385
commit
c7e572d2c2
@@ -90,8 +90,10 @@ public:
|
||||
|
||||
protected:
|
||||
const struct orb_metadata *_meta;
|
||||
|
||||
unsigned _instance;
|
||||
int _handle;
|
||||
|
||||
int _handle{-1};
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -155,7 +157,9 @@ public:
|
||||
List<SubscriptionNode *> *list = nullptr):
|
||||
SubscriptionNode(meta, interval, instance, list),
|
||||
_data() // initialize data structure to zero
|
||||
{}
|
||||
{
|
||||
forcedUpdate();
|
||||
}
|
||||
|
||||
~Subscription() override = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user