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
44 my $obj=Net::GPSD::Satellite->new($prn,$elev,$azim,$snr,$used);
45
47 prn
48
49 Returns the Satellite PRN number.
50
51 $obj->prn(22);
52 my $prn=$obj->prn;
53
54 oid
55
56 Returns the Satellite Object ID from the GPS::PRN package.
57
58 $obj->oid(22216);
59 my $oid=$obj->oid;
60
61 elevation (aka elev)
62
63 Returns the satellite elevation, 0 to 90 degrees.
64
65 $obj->elev(80);
66 my $elev=$obj->elev;
67
68 azimuth (aka azim)
69
70 Returns the satellite azimuth, 0 to 359 degrees.
71
72 $obj->azim(79);
73 my $azim=$obj->azim;
74
75 snr
76
77 Returns the Signal to Noise ratio (C/No) 00 to 99 dB, null when not
78 tracking.
79
80 $obj->snr(35);
81 my $snr=$obj->snr;
82
83 used
84
85 Returns a 1 or 0 according to if the satellite was or was not used in
86 the last fix.
87
88 $obj->used(1);
89 my $used=$obj->used;
90
94 No known bugs.
95
98 Michael R. Davis, qw/gpsd michaelrdavis com/
99
101 Copyright (c) 2006 Michael R. Davis (mrdvt92)
102
103 This library is free software; you can redistribute it and/or modify it
104 under the same terms as Perl itself.
105
107perl v5.8.8 2007-01-15 Net::GPSD::Satellite(3)