pgirmess (version 1.6.9)

uploadGPS: Upload waypoints to Garmin GPS

Description

Upload waypoints to Garmin GPS, using gpsbabel

Usage

uploadGPS(gpx, f = "usb:",type="w")

Arguments

gpx

name of the .gpx file (can be created from a data frame using writeGPX)

f

the appropriate device interface, default "usb:", see details

type

'w' for waypoints (default), 't' for track

Warning

Overwrite waypoints having the same name in the GPS

Details

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", "com:4" or on linux "/dev/ttyUSB0", etc.

See Also

writeGPX

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
  # a GPS device must be connected
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")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab