-
-
24 Mar 2009 21:32:06 UTC
- Distribution: perl-GPS
- Module version: 1.12
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (962 / 0 / 0)
- Kwalitee
Bus factor: 1- 26.04% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (43.58KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
GPS::NMEA - Perl interface to GPS equipment using the NMEA Protocol
SYNOPSIS
use GPS::NMEA; $gps = new GPS::NMEA( 'Port' => '/dev/ttyS0', 'Baud' => 9600, );
DESCRIPTION
GPS::NMEA allows the connection and use of of a GPS receiver in perl scripts.
Note that latitudes and longitudes are in DMM format.
GETTING STARTED
KNOWN LIMITATIONS
BUGS
EXAMPLES
Get the position periodically:
#!/usr/bin/perl use GPS::NMEA; my $gps = GPS::NMEA->new(Port => '/dev/cuaa0', # or COM5: or /dev/ttyS0 Baud => 4800); while(1) { my($ns,$lat,$ew,$lon) = $gps->get_position; print "($ns,$lat,$ew,$lon)\n"; }
Get the internal NMEA dump:
#!/usr/bin/perl use GPS::NMEA; use Data::Dumper; my $gps = GPS::NMEA->new(Port => '/dev/cuaa0', # or COM5: or /dev/ttyS0 Baud => 4800); while(1) { $gps->parse; # Dump internal NMEA data: $gps->nmea_data_dump; # Alternative to look at the internal NMEA data: require Data::Dumper; print Data::Dumper->new([$gps->{NMEADATA}],[])->Indent(1)->Useqq(1)->Dump; } __END__
AUTHOR
Joao Pedro B Gonçalves , joaop@iscsp.utl.pt
SEE ALSO
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 159:
You forgot a '=back' before '=head1'
- Around line 204:
Non-ASCII character seen before =encoding in 'Gonçalves'. Assuming CP1252
Module Install Instructions
To install GPS::NMEA, copy and paste the appropriate command in to your terminal.
cpanm GPS::NMEA
perl -MCPAN -e shell install GPS::NMEA
For more information on module installation, please visit the detailed CPAN module installation guide.