10 #include "AnitaPacketUtil.h" 43 for(
int i=0;i<MAX_SATS;i++) {
44 prn[i]=gpsStruct->sat[i].prn;
46 snr[i]=gpsStruct->sat[i].snr;
47 flag[i]=gpsStruct->sat[i].flag;
48 azimuth[i]=gpsStruct->sat[i].azimuth;
56 TEllipse *lippy =
new TEllipse();
57 lippy->SetFillColor(0);
58 lippy->SetFillStyle(0);
59 lippy->DrawEllipse(0.5,0.5,0.45*TMath::Cos(TMath::DegToRad()*10),0,0,360,0);
60 lippy->DrawEllipse(0.5,0.5,0.45*TMath::Cos(TMath::DegToRad()*20),0,0,360,0);
61 lippy->DrawEllipse(0.5,0.5,0.45*TMath::Cos(TMath::DegToRad()*30),0,0,360,0);
62 lippy->DrawEllipse(0.5,0.5,0.45*TMath::Cos(TMath::DegToRad()*40),0,0,360,0);
63 lippy->DrawEllipse(0.5,0.5,0.45*TMath::Cos(TMath::DegToRad()*50),0,0,360,0);
64 lippy->DrawEllipse(0.5,0.5,0.45*TMath::Cos(TMath::DegToRad()*60),0,0,360,0);
65 lippy->DrawEllipse(0.5,0.5,0.45*TMath::Cos(TMath::DegToRad()*70),0,0,360,0);
66 lippy->DrawEllipse(0.5,0.5,0.45*TMath::Cos(TMath::DegToRad()*80),0,0,360,0);
67 lippy->DrawEllipse(0.5,0.5,0.45*TMath::Cos(TMath::DegToRad()*90),0,0,360,0);
69 TLine *liney =
new TLine();
70 liney->SetLineStyle(1);
71 liney->DrawLineNDC(0.03,0.5,0.97,0.5);
72 liney->DrawLineNDC(0.5,0.03,0.5,0.97);
74 TLatex *texy =
new TLatex();
75 texy->SetTextSize(0.08);
76 texy->DrawTextNDC(0.02,0.93,
"G12");
78 TMarker *satty =
new TMarker();
79 for(
int i=0;i<(int)
numSats;i++) {
81 satty->SetMarkerColor(kRed);
83 satty->SetMarkerColor(kOrange);
85 satty->SetMarkerColor(kGreen);
86 satty->SetMarkerStyle(29);
87 satty->SetMarkerSize(2.5);
88 Double_t r=0.45*TMath::Cos(TMath::DegToRad()*
elevation[i]);
89 Double_t x=0.5+r*TMath::Cos(TMath::DegToRad()*
azimuth[i]);
90 Double_t y=0.5+r*TMath::Sin(TMath::DegToRad()*
azimuth[i]);
92 satty->DrawMarker(x,y);
UChar_t snr[12]
SNR of visible satellites.
UInt_t numSats
Number of satellites visible.
G12Sat – The satellite data from the G12.
G12 Satellite Info – Telemetered.
Int_t run
Run number assigned offline.
UInt_t realTime
Time in unixtime.
G12Sat()
Default constructor.
UInt_t payloadTime
Time in unixtime.
void getCirclePlot(TPad *padSat)
Fills the TPad with a 2D azimuth-elevation plot.
UChar_t elevation[12]
Elevation of visible satellites.
UChar_t prn[12]
PRN of visible satellites.
UShort_t azimuth[12]
Azimuth of visible satellites.
UChar_t flag[12]
Usability flag of satellites.
int simplePacketCheck(GenericHeader_t *gHdr, PacketCode_t code)
simplePacketCheck – utility function