- Timestamp:
- 11/21/11 13:02:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosy/main/MTracking.cc
r10024 r12595 292 292 return kFALSE; 293 293 294 fCosy->fRaDec = fSlalib.GetRaDecRad();295 fCosy->fHourAngle = fSlalib.GetHourAngle();296 297 294 return kTRUE; 298 295 } … … 318 315 // culminating before the zenith (north) we want the star to be 319 316 // aligned between -180 and 180deg (which is the default of CalcZdAz) 317 318 #ifdef FACT 319 if (fSlalib.GetPhi()>dst.Dec() && dest.Az()>0) 320 { 321 // align az from -180/180 to 0/360 322 gLog << inf2 << "Star culminating behind zenith: Adding 360deg to Azimuth " << dest.Az()*kRad2Deg << endl; 323 dest.Az(dest.Az() - TMath::TwoPi()); 324 } 325 #else 320 326 if (fSlalib.GetPhi()>dst.Dec() && dest.Az()<0) 321 327 { … … 324 330 dest.Az(dest.Az() + TMath::TwoPi()); 325 331 } 332 #endif 326 333 327 334 // Position the telescope to the current local position of the … … 419 426 // 420 427 // *OLD*const float dt = 1; // 1 second 428 #ifdef FACT 429 const float dt = 7.6;//3; // 2 second 430 #else 421 431 const float dt = 5;//3; // 2 second 432 #endif 422 433 while (!Break()/* && !fCosy->HasError() && !fCosy->HasZombie()*/) 423 434 { … … 522 533 // (This is important on fast machines >500MHz) 523 534 // 524 usleep(1000000); // 1s 535 #ifdef FACT 536 usleep(760000/4); // 1.4s 537 #else 538 usleep(1000000); 539 #endif 525 540 526 541 // … … 529 544 // 530 545 if (!fCosy->fMac1->IsRpmActive() || !fCosy->fMac2->IsRpmActive()) 546 { 547 gLog << warn << fSlalib.GetTime() << " - RPM mode not active anymore." << endl; 531 548 break; 532 } 549 } 550 } 551 552 if (fCosy->Break()) 553 gLog << all << fSlalib.GetTime() << " - Break signal received." << endl; 554 if (fCosy->HasError()) 555 gLog << all << fSlalib.GetTime() << " - HasError received." << endl; 556 if (fCosy->HasZombie()) 557 gLog << all << fSlalib.GetTime() << " - HasZombie received." << endl; 533 558 534 559 fSlalib.Now(); 535 560 536 561 CancelThread(); 562 fCosy->fMJD = 0; 537 563 538 564 // If CancelPoints are used we have to make this a Cleanup! … … 600 626 ZdAz dummy = sla.GetZdAzRad(); 601 627 dummy = fCosy->AlignTrackingPos(dummy); 628 fCosy->fRaDec = sla.GetRaDecRad(); 629 fCosy->fHourAngle = sla.GetHourAngle(); 630 fCosy->fMJD = mjdaz; 602 631 fCosy->fZdAzSoll.Zd(dummy.Zd()); 603 632 fCosy->fTrackingError.Zd(fCosy->fBending(dummy).Zd()-istse.Zd()); … … 611 640 ZdAz dummy = sla.GetZdAzRad(); 612 641 dummy = fCosy->AlignTrackingPos(dummy); 642 fCosy->fRaDec = sla.GetRaDecRad(); 643 fCosy->fHourAngle = sla.GetHourAngle(); 644 fCosy->fMJD = mjdaz; 613 645 fCosy->fZdAzSoll.Az(dummy.Az()); 614 646 fCosy->fTrackingError.Az(fCosy->fBending(dummy).Az()-istse.Az());
Note:
See TracChangeset
for help on using the changeset viewer.