GPS::gpsd::Satellite - Provides an interface for a gps satellite object.



NAME

GPS::gpsd::Satellite - Provides an interface for a gps satellite object.


SYNOPSIS

 #!/usr/bin/perl
 use strict;
 use GPS::gpsd;
 my $host = shift() || 'localhost';
 my $gps=GPS::gpsd->new(host=>$host) || die("Error: Cannot connect to the gpsd server");
 my $i=0;
 print join("\t", qw{Count PRN ELEV Azim SNR USED}), "\n";
 foreach ($gps->getsatellitelist) {
   print join "\t", ++$i,
                    $_->prn,
                    $_->elev,
                    $_->azim,
                    $_->snr,
                    $_->used;
   print "\n";
 }


DESCRIPTION


METHODS

prn
Returns the Satellite PRN number.

elevation (aka elev)
Returns the satellite elevation, 0 to 90 degrees.

azimuth (aka azim)
Returns the satellite azimuth, 0 to 359 degrees.

snr
Returns the Signal to Noise ratio (C/No) 00 to 99 dB, null when not tracking.

used
Returns a 1 or 0 according to if the satellite was or was not used in the last fix.


GETTING STARTED


KNOWN LIMITATIONS


BUGS

No known bugs.


EXAMPLES


AUTHOR

Michael R. Davis, qw/gpsd michaelrdavis com/


SEE ALSO

GPS::gpsd

GPS::gpsd::Point

 GPS::gpsd::Satellite - Provides an interface for a gps satellite object.