1Net::GPSD::Satellite(3)User Contributed Perl DocumentatioNnet::GPSD::Satellite(3)
2
3
4
6 Net::GPSD::Satellite - Provides an interface for a gps satellite
7 object.
8
10 use Net::GPSD;
11 my $obj=Net::GPSD->new();
12 my $i=0;
13 print join("\t", qw{Count PRN ELEV Azim SNR USED}), "\n";
14 foreach ($obj->getsatellitelist) {
15 print join "\t", ++$i,
16 $_->prn,
17 $_->elev,
18 $_->azim,
19 $_->snr,
20 $_->used;
21 $_->oid;
22 print "\n";
23 }
24
25 or to construct a satelite object
26
27 use Net::GPSD::Satelite;
28 my $obj=Net::GPSD::Satellite->new(22,80,79,35,1);
29
30 or to create a satelite object
31
32 use Net::GPSD::Satelite;
33 my $obj=Net::GPSD::Satellite->new();
34 $obj->prn(22),
35 $obj->elev(80),
36 $obj->azim(79),
37 $obj->snr(35),
38 $obj->used(1);
39
42 new
43 my $obj=Net::GPSD::Satellite->new($prn,$elev,$azim,$snr,$used);
44
46 initialize
47 prn
48 Returns the Satellite PRN number.
49
50 $obj->prn(22);
51 my $prn=$obj->prn;
52
53 oid
54 Returns the Satellite Object ID from the GPS::OID package.
55
56 $obj->oid(22216);
57 my $oid=$obj->oid;
58
59 elevation, elev
60 Returns the satellite elevation, 0 to 90 degrees.
61
62 $obj->elev(80);
63 my $elev=$obj->elev;
64
65 azimuth, azim
66 Returns the satellite azimuth, 0 to 359 degrees.
67
68 $obj->azim(79);
69 my $azim=$obj->azim;
70
71 snr
72 Returns the Signal to Noise ratio (C/No) 00 to 99 dB, null when not
73 tracking.
74
75 $obj->snr(35);
76 my $snr=$obj->snr;
77
78 used
79 Returns a 1 or 0 according to if the satellite was or was not used in
80 the last fix.
81
82 $obj->used(1);
83 my $used=$obj->used;
84
85 q2u
88 Email author and submit to RT.
89
91 DavisNetworks.com supports all Perl applications including this
92 package.
93
95 Michael R. Davis, qw/gpsd michaelrdavis com/
96
98 Copyright (c) 2006 Michael R. Davis (mrdvt92)
99
100 This library is free software; you can redistribute it and/or modify it
101 under the same terms as Perl itself.
102
104perl v5.32.0 2020-07-28 Net::GPSD::Satellite(3)