Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-backports-src > by-pkgid > a5a91ea0d64e867c4c171b08bc2c9b42

perl-GPS-Garmin-0.17-1mdv2010.1.src.rpm

Description:

use GPS::Garmin;
$gps = new GPS::Garmin( 'Port' => '/dev/ttyS0',
'Baud' => 9600,
);
To transfer current position, and direction symbols:
($latsign,$lat,$lonsign,$lon) = $gps->get_position;
To transfer current time:
($sec,$min,$hour,$mday,$mon,$year) = $gps->get_time;
To transfer trackpoints:
$gps->prepare_transfer("trk");
while($gps->records) {
($lat,$lon,$time) = $gps->grab;
}
To transfer Waypoints:
$gps->prepare_transfer("wpt");
while($gps->records) {
($title,$lat,$lon,$desc) = $gps->grab;
}

Generated packages:

Other version of this rpm: