mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 02:43:33 +08:00
uORB::Publication improvements and cleanup (#14784)
- create common uORB::PublicationBase - uORB::PublicationQueued types are now type aliases - ORB_PRIO use enum type everywhere to avoid accidental misuse - PX4Accelerometer/PX4Gyroscope/etc driver libs explicitly advertise on construction, unadvertise on destruction. This is a workaround for any potential issues that might appear when accel/gyro cdev and uORB indexing doesn't align.
This commit is contained in:
@@ -386,7 +386,7 @@ int uORBTest::UnitTest::test_multi()
|
||||
}
|
||||
|
||||
/* test priorities */
|
||||
int prio;
|
||||
ORB_PRIO prio;
|
||||
|
||||
if (PX4_OK != orb_priority(sfd0, &prio)) {
|
||||
return test_fail("prio #0");
|
||||
|
||||
Reference in New Issue
Block a user