Hi,
I solved my problem. The GPS antenna needs to be place in an open space with no roofs where it can pick up satellite signals (at least 3 satellites should be detected).
I am also having similar problems with the GPS API. I am having difficulty in getting the GPS fix.
if(! radio->GPSenabled())
{
if(radio->GPSenable())
{
logInfo("Checking for GPS fix.");
if(radio->GPSgotFix())
{
displayGpsData();
}
else
{
logInfo("No GPS fix.");
}
}
else
{
logError("Error in enabling GPS.");
}
}
The displayGpsData() method prints out the number of satellites, latitudes & longitudes.