logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::GPSD3::Return::Satellite - Net::GPSD3 Return Satellite Object

Author

         Michael R. Davis
         CPAN ID: MRDVT
         STOP, LLC
         domain=>michaelrdavis,tld=>com,account=>perl
         http://www.stopllc.com/

Bugs

       Log on RT and Send to gpsd-dev email list

Description

       Provides a Perl object interface to the Satellite data structure returned by the GPSD daemon.

       An example JSON string:

         {"PRN":15,"el":77,"az":123,"ss":0, "used":false},

Methods

class
       Returns the object class

   string
       Returns the JSON string

   parent
       Return the parent Net::GPSD object

   PRN,prn
       Returns the GPS Satellites Pseudo Random Number Identifier

   used
       Returns a JSON::XS::Boolean true or false object.

   az,azimuth
       Returns the azimuth, degrees from true north.

   el,elevation
       Returns the Elevation in degrees.

   ss
       Signal strength in dBHz.

       Note: C/N0 is dBHz usually, but trimbles can also emit poorly specified Amplitude Measurement Units.

Name

       Net::GPSD3::Return::Satellite - Net::GPSD3 Return Satellite Object

See Also

       Net::GPSD3, Net::GPSD3::Return::Unknown

perl v5.34.0                                       2022-06-16                 Net::GPSD3::Return::Satellite(3pm)

Support

       DavisNetworks.com supports all Perl applications including this package.

       Try gpsd-dev email list

Synopsis

         use Net::GPSD3 0.13;
         my $gpsd = Net::GPSD3->new;
         my $poll = $gpsd->poll;  #new method in 0.12
         my $sky  = $poll->sky;   #new method in 0.13
         printf "Reported: %s, Used: %s\n", $sky->reported, $sky->used;
         printf "PRN: %s\n", join(", ", map {$_->used ? $_->prn : "-".$_->prn} $sky->Satellites);

See Also