I'm shortly wanting to create some 'boundary' polygons that I wish to use in a sketch along with some real-time GPS data.
Basically, my idea is, create the data with googlemaps/earth, save the kml file to an SD card, load SD card into Arduino via appropriate hardware interface and library (I have a µMicroSD drive which does FAT files via serial, but standard SDMMC Lib is ok as well) and then within the sketch parse these co-ordinates into RAM.
Now Im guessing this involves reading the file using the appropriate commands, then looping through it line by line to build the various variables and then moving on to processing the GPS data with those now-loaded variables.
I have looked,and could find sketches that OUTPUT KML data to serial (by just building the serial.print's in the appropriate format, not really through interpretation with variables) but can't find any KML/XML (since its the same thing) processing other than this one designed for an ethernetshield:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1231812230
Alternatively, is there even just a "Config File" library like there is for PERL that makes it easy to load run-time values from a 'file' 'somewhere' (i say 'file' 'somewhere' because really, it could be a dynamic value prepared elsewhere and just dumped via serial even...)
Anyone have any tips or suggestions where I could look or perhaps seek some guidance from to adapt ?
Thanks everyone!
Adrian