Random Projects and Comments

Home Arduino Arduino GPX Library Project v0.1
formats

Arduino GPX Library Project v0.1

I have completed my first version of a library to [hopefully] help in the generation of GPX files on an Arduino processor.  I have successful generated output that validated successful for the example code.  I am going to be integrating it into my current GPS project later today so there may be some changes soon.

The library is pretty basic at this time, the methods are called sequentially to piece the file together.  Due to the limited in the Arduino processor ( and most embedded systems )  I do not think it is practical to construct the full element in memory.

Here is the example over at github:

[code]
#include

GPX myGPX;

void setup()
{
// start serial port at 9600 bps:
Serial.begin(9600);
String dumbString(“”);
}

void loop(){
Serial.print(myGPX.getOpen());
myGPX.setMetaDesc(“foofoofoo”);
myGPX.setName(“track name”);
myGPX.setDesc(“Track description”);
myGPX.setSrc(“SUP500Ff”);
Serial.print(myGPX.getMetaData());
Serial.print(myGPX.getfTrakOpen());
Serial.print(myGPX.getInfo());
Serial.print(myGPX.getTrakSegOpen());
Serial.print(myGPX.getPt(GPX_TRKPT,”41.123″,”-71.456″));
Serial.print(myGPX.getPt(GPX_TRKPT,”42.123″,”-72.456″));
Serial.print(myGPX.getPt(GPX_TRKPT,”43.123″,”-73.456″));
Serial.print(myGPX.getTrakSegClose());
Serial.print(myGPX.getTrakClose());
Serial.print(myGPX.getClose());
delay(10000);
}
[/code]

And the resulting output:
[code]







[/code]

The project page is over here.

 
Tags: ,

One Response

credit
© Ryan M Sutton, 2015