Changeset 9523 for trunk/MagicSoft/Cosy/main
- Timestamp:
- 12/01/09 13:03:41 (15 years ago)
- Location:
- trunk/MagicSoft/Cosy/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MTracking.cc
r9522 r9523 225 225 // if (fCosy->fStarguider) 226 226 // fCosy->fStarguider->SetPointingPosition(sla.GetRaDec()); 227 228 // gLog << all << "=====> " << (int)(&sla==&fSlalib) << " " << fTrackType << " MJD=" << Form("%.13f", sla.GetMjd()) << " HA=" << sla.GetHourAngle() << " Alpha=" << sla.GetAlpha() << " fTrackPos.Ra()=" << fTrackPos.Ra() << " fTrackPos.Dec()=" << fTrackPos.Dec() << " Alt=" << sla.GetZdAzRad().Zd() << " Az=" << sla.GetZdAzRad().Az() << endl; 229 } 230 231 void MTracking::UpdateSlalib(Double_t dt=0) 227 } 228 229 void MTracking::UpdateSlalib(Double_t dt) 232 230 { 233 231 fSlalib.Now(dt); … … 248 246 const RaDec &dst = fSlalib.GetRaDecRad(); 249 247 250 ZdAz dest = fSlalib.GetZdAzRad(); //fSlalib.CalcZdAz(dst);251 252 if (fTrackType <0)253 gLog << all << fSlalib.GetTime() << ": Tracking Planet "<< endl;248 ZdAz dest = fSlalib.GetZdAzRad(); 249 250 if (fTrackType>=0) 251 gLog << all << fSlalib.GetTime() << ": Tracking Planet with Id " << fTrackType << endl; 254 252 gLog << all << fSlalib.GetTime() << ": Track Position " << dst.Ra()*kRad2Deg/15 << "h, " << dst.Dec()*kRad2Deg <<"deg" << endl; 255 253 … … 279 277 void MTracking::TrackPosition(const RaDec &dst) 280 278 { 281 282 // gLog << all << "=====> dst.Ra()=" << dst.Ra() << " dst.Dec()=" << dst.Dec() << " (deg?)" << endl;283 284 279 fTrackPos = dst; 285 280 fTrackType = -1; … … 322 317 // Get current nominal local position 323 318 UpdateSlalib(); 324 //fCosy->fRaDec = fSlalib.GetRaDec(); 325 326 ZdAz pos = fSlalib.GetZdAzRad();//fSlalib.CalcZdAz(fSlalib.GetRaDec()); 319 320 ZdAz pos = fSlalib.GetZdAzRad(); 327 321 328 322 // Some output … … 363 357 // 364 358 UpdateSlalib(dt); 365 //fCosy->fRaDec = fSlalib.GetRaDec();366 359 367 360 // 368 361 // Request nominal position for this time in the future (To+dt) 369 362 // 370 const ZdAz pointing = fSlalib.GetZdAzRad(); //fSlalib.CalcZdAz(fSlalib.GetRaDec()); // [rad]363 const ZdAz pointing = fSlalib.GetZdAzRad(); 371 364 ZdAz dest = fCosy->AlignTrackingPos(pointing); // fix ambiguity 372 365 … … 461 454 //SlaPlanets sla(fSlalib.GetObservatoryKey()); 462 455 SlaPlanets sla(MObservatory::kMagic1); 463 // gLog << all << "====> KEYS " << (int)fSlalib.GetObservatoryKey() << " " << (int)sla.GetObservatoryKey() << " " << (int)fCosy->fObservatory << endl;464 456 465 457 UpdateSlalib(sla); 466 467 //ZdAz soll = sla.GetZdAz(); //sla.CalcZdAz(sla.GetRaDec()); // [rad]468 458 469 459 // … … 507 497 UpdateSlalib(sla, mjdzd); 508 498 509 ZdAz dummy = sla.GetZdAzRad(); //sla.CalcZdAz(radec, mjdzd);499 ZdAz dummy = sla.GetZdAzRad(); 510 500 dummy = fCosy->AlignTrackingPos(dummy); 511 501 fCosy->fZdAzSoll.Zd(dummy.Zd()); … … 518 508 UpdateSlalib(sla, mjdaz); 519 509 520 ZdAz dummy = sla.GetZdAzRad(); //sla.CalcZdAz(radec, mjdaz);510 ZdAz dummy = sla.GetZdAzRad(); 521 511 dummy = fCosy->AlignTrackingPos(dummy); 522 512 fCosy->fZdAzSoll.Az(dummy.Az()); -
trunk/MagicSoft/Cosy/main/MTracking.h
r9516 r9523 31 31 32 32 void UpdateSlalib(SlaPlanets &sla); 33 void UpdateSlalib(Double_t dt );33 void UpdateSlalib(Double_t dt=0); 34 34 void UpdateSlalib(SlaPlanets &sla, Double_t mjd); 35 35
Note:
See TracChangeset
for help on using the changeset viewer.