mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
status_display: remove unused vehicle_attitude topic
This commit is contained in:
@@ -27,9 +27,6 @@ void SubscriberHandler::subscribe()
|
||||
_vehicle_status_flags_sub = orb_subscribe(ORB_ID(vehicle_status_flags));
|
||||
}
|
||||
|
||||
if (_vehicle_attitude_sub < 0) {
|
||||
_vehicle_attitude_sub = orb_subscribe(ORB_ID(vehicle_attitude));
|
||||
}
|
||||
}
|
||||
|
||||
void SubscriberHandler::unsubscribe()
|
||||
@@ -59,10 +56,6 @@ void SubscriberHandler::unsubscribe()
|
||||
_vehicle_status_flags_sub = -1;
|
||||
}
|
||||
|
||||
if (_vehicle_attitude_sub >= 0) {
|
||||
orb_unsubscribe(_vehicle_attitude_sub);
|
||||
_vehicle_attitude_sub = -1;
|
||||
}
|
||||
}
|
||||
|
||||
void SubscriberHandler::check_for_updates()
|
||||
@@ -103,10 +96,4 @@ void SubscriberHandler::check_for_updates()
|
||||
_update_bitfield |= (uint32_t)StatusMask::CpuLoad;
|
||||
}
|
||||
|
||||
updated = false;
|
||||
orb_check(_vehicle_attitude_sub, &updated);
|
||||
|
||||
if (updated) {
|
||||
_update_bitfield |= (uint32_t)StatusMask::VehicleAttitude;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user