Vivek Ratna Kansakar

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: using GPS #15116

    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).

    in reply to: using GPS #15114

    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.

Viewing 2 posts - 1 through 2 (of 2 total)