projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1150aa8
)
Reset GPS at boot time
author
Keith Packard
<keithp@keithp.com>
Sat, 18 Jul 2009 05:11:03 +0000
(22:11 -0700)
committer
Keith Packard
<keithp@keithp.com>
Sat, 18 Jul 2009 05:11:03 +0000
(22:11 -0700)
src/ao_gps.c
patch
|
blob
|
history
diff --git
a/src/ao_gps.c
b/src/ao_gps.c
index e793de519ebf553eae49e107c189a046d03aaafd..c06c635fd9fc3d67bf560671cca0572fbde8e974 100644
(file)
--- a/
src/ao_gps.c
+++ b/
src/ao_gps.c
@@
-25,12
+25,24
@@
__xdata struct ao_gps_data ao_gps_data;
#undef AO_GPS_4800
#ifdef AO_GPS_4800
#undef AO_GPS_4800
#ifdef AO_GPS_4800
-static const char ao_gps_set_nmea[] = "
\r\n$PSRF100,0,57600,8,1,0*37\r\n
\r\n";
+static const char ao_gps_set_nmea[] = "
$PSRF100,0,57600,8,1,0*37
\r\n";
#else
#else
-static const char ao_gps_set_nmea[] = "
\r\n$PSRF100,0,4800,8,1,0*0F\r\n
\r\n";
+static const char ao_gps_set_nmea[] = "
$PSRF100,0,4800,8,1,0*0F
\r\n";
#endif
const char ao_gps_config[] = {
#endif
const char ao_gps_config[] = {
+ 0xa0, 0xa2, 0x00, 0x19, /* length: 25 bytes */
+ 128, /* Initialize Data Source */
+ 0, 0, 0, 0, /* ECEF X */
+ 0, 0, 0, 0, /* ECEF Y */
+ 0, 0, 0, 0, /* ECEF Z */
+ 0, 0, 0, 0, /* Clock Drift */
+ 0, 0, 0, 0, /* Time of Week */
+ 0, 0, /* Week Number */
+ 0, /* Channels */
+ 0xc6, /* Clear user data, RTC not accurate, Clear history, clear ephemeris */
+ 0x01, 0x46, 0xb0, 0xb3,
+
0xa0, 0xa2, 0x00, 0x0e, /* length: 14 bytes */
136, /* mode control */
0, 0, /* reserved */
0xa0, 0xa2, 0x00, 0x0e, /* length: 14 bytes */
136, /* mode control */
0, 0, /* reserved */