mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
VTOL att controller: Code style fix
This commit is contained in:
@@ -689,7 +689,7 @@ void VtolAttitudeControl::task_main()
|
||||
}
|
||||
|
||||
/* wait for up to 100ms for data */
|
||||
int pret = px4_poll(&fds[0], (sizeof(fds) / sizeof(fds[0])), 100);
|
||||
int pret = px4_poll(&fds[0], sizeof(fds) / sizeof(fds[0]), 100);
|
||||
|
||||
|
||||
/* timed out - periodic check for _task_should_exit */
|
||||
@@ -699,7 +699,7 @@ void VtolAttitudeControl::task_main()
|
||||
|
||||
/* this is undesirable but not much we can do - might want to flag unhappy status */
|
||||
if (pret < 0) {
|
||||
warn("poll error %d, %d", pret, errno);
|
||||
PX4_WARN("poll error %d, %d", pret, errno);
|
||||
/* sleep a bit before next try */
|
||||
usleep(100000);
|
||||
continue;
|
||||
@@ -844,7 +844,7 @@ void VtolAttitudeControl::task_main()
|
||||
}
|
||||
}
|
||||
|
||||
warnx("exit");
|
||||
PX4_WARN("exit");
|
||||
_control_task = -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user