Browse Source

PreflightCheck: Increase GPS timeout to 4 sec

sbg
Johan Jansen 10 years ago
parent
commit
38004cdd95
  1. 2
      src/modules/commander/PreflightCheck.cpp

2
src/modules/commander/PreflightCheck.cpp

@ -281,7 +281,7 @@ static bool gnssCheck(int mavlink_fd)
struct pollfd fds[1]; struct pollfd fds[1];
fds[0].fd = gpsSub; fds[0].fd = gpsSub;
fds[0].events = POLLIN; fds[0].events = POLLIN;
if(poll(fds, 1, 1000) <= 0) { if(poll(fds, 1, 4000) <= 0) {
success = false; success = false;
} }
else { else {

Loading…
Cancel
Save