Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > 0839f6b6fe552791a84bcbf054a4bb38

perl-GPS-Garmin-0.17-1mdv2010.1.i586.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;
}

Sources packages:

Other version of this rpm: