From 19ad73197e221ab3e498e7858b269f52aa8d8d51 Mon Sep 17 00:00:00 2001 From: ladyada Date: Wed, 13 Feb 2013 13:35:05 -0500 Subject: [PATCH] add antenna request line --- examples/echo/echo.pde | 3 +++ examples/flora_parsing/flora_parsing.ino | 3 +++ examples/leo_parsing/leo_parsing.ino | 3 +++ examples/parsing/parsing.pde | 3 +++ 4 files changed, 12 insertions(+) diff --git a/examples/echo/echo.pde b/examples/echo/echo.pde index 4466397..0ca6641 100644 --- a/examples/echo/echo.pde +++ b/examples/echo/echo.pde @@ -77,6 +77,9 @@ void setup() // 10 Hz update rate - for 9600 baud you'll have to set the output to RMC only (see above) //GPS.sendCommand(PMTK_SET_NMEA_UPDATE_10HZ); + // Request updates on antenna status, comment out to keep quiet + GPS.sendCommand(PGCMD_ANTENNA); + // the nice thing about this code is you can have a timer0 interrupt go off // every 1 millisecond, and read data from the GPS for you. that makes the // loop code a heck of a lot easier! diff --git a/examples/flora_parsing/flora_parsing.ino b/examples/flora_parsing/flora_parsing.ino index c50813a..f103d71 100644 --- a/examples/flora_parsing/flora_parsing.ino +++ b/examples/flora_parsing/flora_parsing.ino @@ -42,6 +42,9 @@ void setup() // For the parsing code to work nicely and have time to sort thru the data, and // print it out we don't suggest using anything higher than 1 Hz + // Request updates on antenna status, comment out to keep quiet + GPS.sendCommand(PGCMD_ANTENNA); + delay(1000); // Ask for firmware version Serial1.println(PMTK_Q_RELEASE); diff --git a/examples/leo_parsing/leo_parsing.ino b/examples/leo_parsing/leo_parsing.ino index 7acf704..d18c3b4 100644 --- a/examples/leo_parsing/leo_parsing.ino +++ b/examples/leo_parsing/leo_parsing.ino @@ -63,6 +63,9 @@ void setup() // For the parsing code to work nicely and have time to sort thru the data, and // print it out we don't suggest using anything higher than 1 Hz + // Request updates on antenna status, comment out to keep quiet + GPS.sendCommand(PGCMD_ANTENNA); + delay(1000); // Ask for firmware version mySerial.println(PMTK_Q_RELEASE); diff --git a/examples/parsing/parsing.pde b/examples/parsing/parsing.pde index 86f4c52..86403ad 100644 --- a/examples/parsing/parsing.pde +++ b/examples/parsing/parsing.pde @@ -75,6 +75,9 @@ void setup() // For the parsing code to work nicely and have time to sort thru the data, and // print it out we don't suggest using anything higher than 1 Hz + // Request updates on antenna status, comment out to keep quiet + GPS.sendCommand(PGCMD_ANTENNA); + // the nice thing about this code is you can have a timer0 interrupt go off // every 1 millisecond, and read data from the GPS for you. that makes the // loop code a heck of a lot easier!