// The GPS chip puts the next nmea string in its output buffer
// only if its been read, IE its empty.
// So if you read infrequently the string in the buffer is old and
// has the WRONG time !!! The string lies around like a bullet in
// the breach waiting for some mug.
//I don't know who wrote that comment.. I'm guessing it was Julian!
booleanpipeGPS(){
while(GPS.available()){
charc[2];
c[0]=GPS.read();
c[1]='\0';//null character for termination required.
//Serial.print(c);
WriteToOutputBuff(c);
}
}
// GPS setup
voidGpsSetup(){
// definitions for different outputs
// only one of these strings can be used at a time
// otherwise they will overwrite each other
// for more information take a look at the QUECTEL L70 protocoll specification: http://docs-europe.electrocomponents.com/webdocs/147d/0900766b8147dbdd.pdf