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
Adafruit: GPS Logging shield sketch error
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23940
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Adafruit: GPS Logging shield sketch error
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?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Adafruit: GPS Logging shield sketch error
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.
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.
-
- Posts: 155
- Joined: Sat Feb 25, 2012 12:32 am
Re: Adafruit: GPS Logging shield sketch error
Thanks,
Compiles fine now 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
Compiles fine now 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
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Adafruit: GPS Logging shield sketch error
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
Have a look at GPSBabel
Please be positive and constructive with your questions and comments.