aboutsummaryrefslogtreecommitdiff
path: root/apps/gps
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-10-08 17:59:43 +0200
committerLorenz Meier <lm@inf.ethz.ch>2012-10-08 17:59:43 +0200
commitdd50c88f073926a550f0f1f5b08f931116dd4f8f (patch)
treefe21d5604b8df5245e982d14bd84a171ab15b7e3 /apps/gps
parent1318a0b9542effe8419b3c5a15a48a18dc36ebea (diff)
downloadpx4-firmware-dd50c88f073926a550f0f1f5b08f931116dd4f8f.tar.gz
px4-firmware-dd50c88f073926a550f0f1f5b08f931116dd4f8f.tar.bz2
px4-firmware-dd50c88f073926a550f0f1f5b08f931116dd4f8f.zip
Fixed GPS lost issue, fixed accel scale initialization, fixed code style in rate controller
Diffstat (limited to 'apps/gps')
-rw-r--r--apps/gps/ubx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gps/ubx.c b/apps/gps/ubx.c
index 8a658b623..b1655afd7 100644
--- a/apps/gps/ubx.c
+++ b/apps/gps/ubx.c
@@ -781,6 +781,8 @@ void *ubx_watchdog_loop(void *args)
} else {
/* gps healthy */
ubx_success_count++;
+ ubx_healthy = true;
+ ubx_fail_count = 0;
if (!ubx_healthy && ubx_success_count == UBX_HEALTH_SUCCESS_COUNTER_LIMIT) {
//printf("[gps] ublox UBX module status ok (baud=%d)\r\n", current_gps_speed);