Enable GPS degraded mode, set 10 sec degraded timeout.
authorKeith Packard <keithp@keithp.com>
Sat, 22 Aug 2009 20:38:56 +0000 (13:38 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 22 Aug 2009 20:38:56 +0000 (13:38 -0700)
No reason not to let the GPS report solutions whenever it likes, let's
see how this works.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao_gps.c

index 7d68b325c77ccfbe3b8ed97d0fcf39b2646dcc13..2b3a5178120029bee4998de33631a862dedf6432 100644 (file)
@@ -30,14 +30,14 @@ const char ao_gps_config[] = {
        0xa0, 0xa2, 0x00, 0x0e, /* length: 14 bytes */
        136,                    /* mode control */
        0, 0,                   /* reserved */
-       4,                      /* degraded mode (disabled) */
+       0,                      /* degraded mode (allow 1-SV navigation) */
        0, 0,                   /* reserved */
        0, 0,                   /* user specified altitude */
        2,                      /* alt hold mode (disabled, require 3d fixes) */
        0,                      /* alt hold source (use last computed altitude) */
        0,                      /* reserved */
-       0,                      /* Degraded time out (disabled) */
-       0,                      /* Dead Reckoning time out (disabled) */
+       10,                     /* Degraded time out (10 sec) */
+       10,                     /* Dead Reckoning time out (10 sec) */
        0,                      /* Track smoothing (disabled) */
        0x00, 0x8e, 0xb0, 0xb3,