Open GoogleCodeExporter opened 9 years ago
Seems like an initialization issue. Here is debug output of three restarts
(after that nothing more is logged):
first:
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:232: MSG_SOL fix_status=93 fix_type=3
_parse_gps:223: MSG_STATUS fix_status=93 fix_type=3
_parse_gps:212: MSG_POSLLH next_fix=1
read:153: bad cka 62 should be 5b
second:
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:232: MSG_SOL fix_status=221 fix_type=3
_parse_gps:223: MSG_STATUS fix_status=221 fix_type=3
_parse_gps:212: MSG_POSLLH next_fix=1
_parse_gps:178: ACK 1
third:
parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:198: Unexpected message 0x0d 0x01
_parse_gps:232: MSG_SOL fix_status=221 fix_type=3
_parse_gps:223: MSG_STATUS fix_status=221 fix_type=3
_parse_gps:212: MSG_POSLLH next_fix=1
Original comment by andre.sc...@gmail.com
on 30 Jul 2012 at 5:48
Did some more digging and enabled debug info inside GPS.cpp. Now it seems that
in total the GPS update is only called twice (due to the way groundstart is
handled inside setup.pde) and unfortunately the timout or initial unsuccessful
read (e.g., position message before speed message) cause a NO_GPS status
setting. See debug log: (added one debug line to GPS.cpp)
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:178: ACK 1
_parse_gps:232: MSG_SOL fix_status=221 fix_type=3
_parse_gps:223: MSG_STATUS fix_status=221 fix_type=3
_parse_gps:212: MSG_POSLLH next_fix=1
update:39: gps read timeout 13191 0
update:29: gps update! 13291
update:29: gps update! 13292
Mabe one should increase the number of trials from 2 to something larger inside
setup.pde?
Original comment by andre.sc...@gmail.com
on 31 Jul 2012 at 6:29
Sorry, mixed up, meant system.pde. The following one-line change seems to fix
the problem:
diff --git a/ArduPlane/system.pde b/ArduPlane/system.pde
index 291f191..25a77e6 100644
--- a/ArduPlane/system.pde
+++ b/ArduPlane/system.pde
@@ -339,7 +339,7 @@ static void startup_ground(void)
break;
}
- if (counter >= 2) {
+ if (counter >= 4) {
GPS_enabled = false;
break;
}
Original comment by andre.sc...@gmail.com
on 31 Jul 2012 at 6:35
Original issue reported on code.google.com by
andre.sc...@gmail.com
on 30 Jul 2012 at 7:15