TinyGPS++ Altitude problem

Hi, @Dave_S

To add code please click this link;

Your code'

/**********************************************************************************/
void loop()
{
bool newData = false;

// For one second we parse GPS data
for (unsigned long start = millis(); millis() - start < 1000;)
{
while (ss.available())
{
char c = ss.read();
// Serial.write(c); // uncomment this line to see the GPS data flowing
if (gps.encode(c)) // Did a new valid sentence come in?
newData = true;
}
}

if (newData)
{
lcd.clear();
displayInfo();
delay(2000);
lcd.clear();
printAnalogValues();
delay(1000); // Another 1 second will be added by getting new data
newData = false; // Now time to reload more new data from GPS
}
}
/*************************************************************/

Tom.. :grinning: :+1: :coffee: :australia:

1 Like