diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-08 17:59:43 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-10-08 17:59:43 +0200 |
commit | dd50c88f073926a550f0f1f5b08f931116dd4f8f (patch) | |
tree | fe21d5604b8df5245e982d14bd84a171ab15b7e3 /apps/gps | |
parent | 1318a0b9542effe8419b3c5a15a48a18dc36ebea (diff) | |
download | px4-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.c | 2 |
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); |