uploadGPS {pgirmess} | R Documentation |
Upload waypoints to Garmin GPS, using gpsbabel
uploadGPS(gpx, f = "usb:",type="w")
gpx |
name of the .gpx file (can be created from a data frame using writeGPX ) |
f |
the appropriate device interface, default "com4:", see details |
type |
'w' for waypoints (default), 't' for track |
This function uploads waypoints or a track to a garmin GPS from a '.gpx' file. gpsbabel is called via the system. Therefore gpsbabel must be installed and on the user's path, see http://www.gpsbabel.org. If not the default, device interface should be something as "usb:", "usb:1", or on linux "/dev/ttyUSB0", etc.
Overwrite waypoints having the same name in the GPS
## Not run: coords<-data.frame(ID=c("C18J01", "C18J02"),Long= c(-46.996602, 47.002745),Lat=c(-6.148734, 6.14829),Alt=c(250,1230)) writeGPX(coords,"mywaypoints") uploadGPS("mywaypoint.gpx") ## End(Not run)