GPS Programming Guide
Development website
  • Initial page
  • Introduction
  • Hardware
  • General considerations
  • Initialization
  • Getting information
  • Ephemeris handling
  • Advanced functions
  • Code examples and extended information
  • API changelog
  • Certifications
Powered by GitBook
On this page
  • Loading ephemeris
  • Saving ephemeris

Was this helpful?

Ephemeris handling

Take into account that an SD card is needed for saving ephemeris in Waspmote.

Loading ephemeris

It loads the ephemeris from the FILE_EPHEMERIS file into the GPS.

It returns '1' if success, '0' if error.

Example of use:

{
    int8_t epehemState;
    epehemState=GPS.loadEphems(); // Load "EPHEM.TXT" and send them to GPS module
    epehemState=GPS.loadEphems("EPHEM2.TXT"); // Load ephemeris from this file
}

Saving ephemeris

It saves the ephemeris in the system to the FILE_EPHEMERIS file.

It returns 1 for success, 0 for failure.

Example of use:

{
    int8_t ephemState;
    ephemState=GPS.saveEphems(); // Save ephemeris into "EPHEM.TXT"
    ephemState=GPS.saveEphems("EPHEM2.TXT" ); // Save ephemeris to "EPHEM2.TXT"
}

Using ephemeris basic example:

Show ephemeris improvement example:

PreviousGetting informationNextAdvanced functions

Last updated 4 years ago

Was this helpful?

http://www.development.libelium.com/gps-02-using-ephemeris
http://www.developement.libelium.com/gps-03-ephemeris-improvement