@ -283,6 +283,9 @@ int detect_orientation(int mavlink_fd, int sub_sensor_combined) {
@@ -283,6 +283,9 @@ int detect_orientation(int mavlink_fd, int sub_sensor_combined) {
hrt_abstimet=t_start;
hrt_abstimet_prev=t_start;
hrt_abstimet_still=0;
unsignedpoll_errcount=0;
while(true){
/* wait blocking for new data */
intpoll_ret=poll(fds,1,1000);
@ -327,12 +330,14 @@ int detect_orientation(int mavlink_fd, int sub_sensor_combined) {
@@ -327,12 +330,14 @@ int detect_orientation(int mavlink_fd, int sub_sensor_combined) {
}
}
}elseif(poll_ret==0){
/* any poll failure for 1s is a reason to abort */