Adafruit: GPS Logging shield sketch error

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
davidh
 
Posts: 155
Joined: Sat Feb 25, 2012 12:32 am

Adafruit: GPS Logging shield sketch error

Post by davidh »

Hi,

I was looking for a code tutorial for using the GPS Logging shield. I did find one under the heading Download Stuff
Current Code & Libraries then GPS general logging sketch. The unzipped the SD_GPS-logger folder. In it was SD_GPSLogger.pde which is a Processing file. Do I copy and paste this to the Arduino IDE to run it? In the meantime I did run it in Processing and got an error

processing.app.SketchException: unexpected char: 'i'
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:353)
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:197)
at processing.mode.java.JavaBuild.build(JavaBuild.java:156)
at processing.mode.java.JavaBuild.build(JavaBuild.java:135)
at processing.mode.java.JavaMode.handleRun(JavaMode.java:176)
at processing.mode.java.JavaEditor$20.run(JavaEditor.java:481)
at java.lang.Thread.run(Thread.java:680)

Cheers
David

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Adafruit: GPS Logging shield sketch error

Post by Franklin97355 »

Your probably just doing it wrong, could you give us a bit more info? Where exactly did you get the files and what are they called? Which version of arduino and Processing are you using and on what platform?

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Adafruit: GPS Logging shield sketch error

Post by adafruit_support_rick »

SD_GPSLogger.pde is a sketch. You load it into Arduino just like any other sketch.

The .pde extension was used in earlier versions of Arduino. The sketch extension was changed to .ino in version 1.0. But version 1.0 still loads .pde files without any changes.

davidh
 
Posts: 155
Joined: Sat Feb 25, 2012 12:32 am

Re: Adafruit: GPS Logging shield sketch error

Post by davidh »

Thanks,

Compiles fine now :D Now once I've logged some data can I plug it into Google Earth and see the route I took? There is one thing I was thinking about but I need an engineers perspective. I thought it might be kinda cool if I could press a button and it will save the current coordinates as long as the data was valid.


Cheers
David

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Adafruit: GPS Logging shield sketch error

Post by adafruit_support_rick »

I don't think you can plug the data into Google Earth directly - you have to convert it to a different file format.
Have a look at GPSBabel

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”