Changeset 7210 for trunk/MagicSoft/Mars/mpointing/MHPointing.cc
- Timestamp:
- 07/22/05 13:18:44 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MHPointing.cc
r7202 r7210 130 130 fReportSG = (MReportStarguider*)plist->FindObject("MReportStarguider"); 131 131 if (!fReportSG) 132 { 133 *fLog << warn << "MReportStarguider not found... abort." << endl; 134 return kFALSE; 135 } 132 *fLog << warn << "MReportStarguider not found..." << endl; 133 136 134 fReportCosy = (MReportDrive*)plist->FindObject("MReportDrive"); 137 135 if (!fReportCosy) 138 { 139 *fLog << warn << "MReportDrive not found... abort." << endl; 140 return kFALSE; 141 } 136 *fLog << warn << "MReportDrive not found..." << endl; 142 137 143 138 // Reset Graphs … … 166 161 if (t->GetName()==(TString)"MTimeStarguider") 167 162 { 163 if (!fReportSG) 164 { 165 *fLog << err << "ERROR: fReportSG==NULL... abort." << endl; 166 return kFALSE; 167 } 168 168 169 AddPoint(fBrightness, tm, fReportSG->GetSkyBrightness()); 169 170 AddPoint(fNumStars, tm, fReportSG->GetNumIdentifiedStars()); … … 184 185 } 185 186 186 if (t->GetName()==(TString)"MTimeDrive") 187 { 187 if (fReportCosy && t->GetName()==(TString)"MTimeDrive") 188 { 189 if (!fReportCosy) 190 { 191 *fLog << err << "ERROR: fReportCosy==NULL... abort." << endl; 192 return kFALSE; 193 } 194 188 195 AddPoint(fDevTimeCosy, tm, fReportCosy->GetAbsError()*60); 189 196 if (fPosZd.GetY()[fPosZd.GetN()-1] != fReportCosy->GetNominalZd())
Note:
See TracChangeset
for help on using the changeset viewer.