Commit bcd49f40 authored by SRT Operator's avatar SRT Operator
Browse files

some printf for debugging....to be removed later

parent 0c723cbf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -788,6 +788,7 @@ bool CBossCore::checkScan(const ACS::Time& startUt,const Antenna::TTrackingParam
			IRA::CIRATools::timeToStr(inputTime,out);
			ACS_LOG(LM_FULL_INFO,"CBossCore::checkScan()",(LM_DEBUG,"CHECK_TIME_IS: %s",(const char *)out));
			generator->getHorizontalCoordinate(inputTime,azimuth,elevation); //use inputTime (=now), in order to get where the source is now)
			printf("controllo cordinate di riferimento: %lf, %lf\n",azimuth,elevation);
			antennaInfo->azimuth=azimuth;
			antennaInfo->elevation=elevation;
			antennaInfo->rightAscension=ra;
@@ -828,7 +829,7 @@ bool CBossCore::checkScan(const ACS::Time& startUt,const Antenna::TTrackingParam
		changeBossStatus(Management::MNG_WARNING);
		_THROW_EXCPT(ComponentErrors::UnexpectedExImpl,"CBossCore::checkScan()");
	}
	if ((azimuth*DR2D>=90.0) && (azimuth<=270.0)) {
	if ((azimuth*DR2D>=90.0) && (azimuth*DR2D<=270.0)) {
		antennaInfo->section=Antenna::ANT_SOUTH;
	}
	else {
+1 −0
Original line number Diff line number Diff line
@@ -307,6 +307,7 @@ Antenna::EphemGenerator_ptr CBossCore::prepareScan(
			}
			else if (primary.frame==Antenna::ANT_HORIZONTAL) {
				ACS_LOG(LM_FULL_INFO,"CBossCore::prepareScan()",(LM_DEBUG,"SOURCE_AZ_EL: %lf %lf",primary.parameters[0],primary.parameters[1]));
				printf("parametri beam park: %lf, %lf",primary.parameters[0],primary.parameters[1]);
				tracker->setFixedPoint(primary.targetName,primary.parameters[0],primary.parameters[1]);
			}
			//copy the current track and store it
+2 −1
Original line number Diff line number Diff line
@@ -196,7 +196,8 @@ void CCore::_goTo(const double& azimuth,const double& elevation) throw (Manageme
	MinorServo::MinorServoScan servo;
	Receivers::TReceiversParameters receievers;
	Schedule::CSubScanBinder binder(&primary,&secondary,&servo,&receievers);
	binder.goTo(azimuth*DD2R,elevation*DD2R);
	printf("Parametri del goTo %lf, %lf\n",azimuth,elevation); 
	binder.goTo(azimuth,elevation);
	startTime=0; // it means start as soon as possible
	startScan(startTime,&primary,&secondary,&servo,&receievers); //ManagementErrors::TelescopeSubScanErrorExImpl,ManagementErrors::TargetOrSubscanNotFeasibleExImpl
	m_subScanEpoch=startTime;