diff options
author | Julian Oes <joes@student.ethz.ch> | 2012-09-20 13:09:32 +0200 |
---|---|---|
committer | Julian Oes <joes@student.ethz.ch> | 2012-09-20 13:09:32 +0200 |
commit | d7085ba9e30f5166ec583eeec6bb018364a14ce0 (patch) | |
tree | 129de014640892493272481da746cb6334d13d4e /apps/gps | |
parent | df8bbb2d308adc6fa46a2f5299913b9044a53b01 (diff) | |
download | px4-firmware-d7085ba9e30f5166ec583eeec6bb018364a14ce0.tar.gz px4-firmware-d7085ba9e30f5166ec583eeec6bb018364a14ce0.tar.bz2 px4-firmware-d7085ba9e30f5166ec583eeec6bb018364a14ce0.zip |
forgot to remove some rprintfs
Diffstat (limited to 'apps/gps')
-rw-r--r-- | apps/gps/ubx.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/gps/ubx.c b/apps/gps/ubx.c index 367dd8a8c..8a658b623 100644 --- a/apps/gps/ubx.c +++ b/apps/gps/ubx.c @@ -726,7 +726,7 @@ void *ubx_watchdog_loop(void *args) int mavlink_fd = open(MAVLINK_LOG_DEVICE, 0); - int err_skip_counter = 0; + //int err_skip_counter = 0; while (!(*thread_should_exit)) { /* if some values are to old reconfigure gps */ @@ -739,7 +739,7 @@ void *ubx_watchdog_loop(void *args) // printf("timestamp_now=%llu\n", timestamp_now); // printf("last_message_timestamps=%llu\n", ubx_state->last_message_timestamps[i]); if (timestamp_now - ubx_state->last_message_timestamps[i] > UBX_WATCHDOG_CRITICAL_TIME_MICROSECONDS) { - printf("Warning: GPS ubx message %d not received for a long time\n", i); + //printf("Warning: GPS ubx message %d not received for a long time\n", i); all_okay = false; } } @@ -749,13 +749,13 @@ void *ubx_watchdog_loop(void *args) if (!all_okay) { /* gps error */ ubx_fail_count++; - if (err_skip_counter == 0) - { - printf("GPS Watchdog detected gps not running or having problems\n"); - err_skip_counter = 20; - } - err_skip_counter--; - printf("gps_mode_try_all =%u, ubx_fail_count=%u, ubx_healthy=%u, once_ok=%u\n", gps_mode_try_all, ubx_fail_count, ubx_healthy, once_ok); +// if (err_skip_counter == 0) +// { +// printf("GPS Watchdog detected gps not running or having problems\n"); +// err_skip_counter = 20; +// } +// err_skip_counter--; + //printf("gps_mode_try_all =%u, ubx_fail_count=%u, ubx_healthy=%u, once_ok=%u\n", gps_mode_try_all, ubx_fail_count, ubx_healthy, once_ok); /* If we have too many failures and another mode or baud should be tried, exit... */ |