mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 09:13:34 +08:00
fw control: attitude, added pid elements
This commit is contained in:
@@ -547,12 +547,9 @@ uorb_receive_thread(void *arg)
|
||||
mavlink_missionlib_send_gcs_string("[mavlink] ERROR reading uORB data");
|
||||
} else {
|
||||
|
||||
static bool updated = false;
|
||||
for (unsigned i = 0; i < n_listeners; i++) {
|
||||
orb_check(*(listeners[i].subp), &updated);
|
||||
// printf("revents: %d:%d", i, fds[i].revents);
|
||||
// if (fds[i].revents & POLLIN)
|
||||
if(updated)
|
||||
bool updated = false;
|
||||
if(OK == orb_check(*(listeners[i].subp), &updated) && updated)
|
||||
listeners[i].callback(&listeners[i]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user