
GPS::Magellan - Module for communicating with Magellan receivers

GPS::Magellan::OpenPort('/dev/ttyS0');
$gps = GPS::Magellan->new(
port => '/dev/ttyS0'
);
# Download waypoints
@waypoints = $gps->getPoints('WAYPOINT');
foreach $coord (@waypoints){
printf("longitude: %s, latitude: %s\n", $coord->longitude, $coord->latitude);
}
# Download trackpoints
@trackpoints = $gps->getPoints('TRACKLOG');
foreach $coord (@trackpoints){
printf("longitude: %s, latitude: %s\n", $coord->longitude, $coord->latitude);
}
$file = GPS::Magellan::File::Way_Txt->new(
coords => \@waypoints
);
print $file->as_string();

Soming soon, until then see README, examples/magellan.pl and the test suite for example.

Instantiates a new GPS::Magellan object. SERIAL_DEVICE specifies which port if the receiver connected to.
Downloads coordinates of the specified type from the receiver.
Returns: an array of GPS::Magellan::Coord objects.
Send arbitrary command to the receiver.
Returns: the receiver's response as an array of GPS::Magellan::Message objects.

Peter Banik <peter@login-fo.net>

GPS::Magellan::Coord GPS::Magellan::Message GPS::Magellan::File

$Id: Magellan.pm,v 1.2 2004/02/29 21:48:38 peter Exp $

Missing coordinate upload feature. Needs more documentation. Instead of GPS::Magellan::Coord, it should make use of a generic coordinate class.
Please report bugs to the author.

Copyright (c) 2003