Commit 6ab16310 authored by MDB's avatar MDB
Browse files

debug coeff temp mark

parent b77b68fb
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -306,7 +306,6 @@ void CComponentCore::setMode(const char * mode) throw (ReceiversErrors::Receiver
    // the set the default LO for the default LO for the selected mode.....
    ACS::doubleSeq lo;
    MED_TRACE_MSG(" LO ");
    /** @todo rivedere assegnazioni */
    lo.length(l_setup.m_IFs);
    lo[0]= l_setup.m_defaultLO[0];    
    /* LOs loading */
@@ -337,6 +336,12 @@ void CComponentCore::setLO(const ACS::doubleSeq& lo)
    baci::ThreadSyncGuard guard(&m_mutex);
    double l_lo_value;
    ReceiverConfHandler::ConfigurationSetup l_setup;
    /* Just one frequency for every if!*/
    if(lo.length() != 1){
        _IRA_LOGFILTER_LOG(LM_CRITICAL,"CComponentCore::setLO()","ReceiverControl parameter error");
        _EXCPT(ReceiversErrors::ModeErrorExImpl,impl,"CComponentCore::setLO()");
        throw impl;
    }

    m_mixer.setValue(lo);           
    l_lo_value= m_mixer.getEffectiveValue();    
@@ -675,13 +680,18 @@ void CComponentCore::getCalibrationMark(ACS::doubleSeq& result,
        resFreq[i]=realFreq;
        resBw[i]=realBw;
        realFreq+=realBw/2.0;
        MED_TRACE_FMT("resFreq[%d] %f",i, resFreq[i]);
        MED_TRACE_FMT("resBW[%d] %f",i, resBw[i]);
        MED_TRACE_FMT("realFreq[%d] %f",i, realFreq);
        ACS_LOG(LM_FULL_INFO,"CComponentCore::getCalibrationMark()",(LM_DEBUG,"REFERENCE_FREQUENCY %lf",realFreq));
        if (m_polarization[ifs[i]]== (long)Receivers::RCV_LCP) {            
            result[i]= m_configuration.getLeftMarkTemp(realFreq);                        
            MED_TRACE_FMT("LCP mark temp [%d] %f", i, result[i] );
            ACS_LOG(LM_FULL_INFO,"CComponentCore::getCalibrationMark()",(LM_DEBUG,"LEFT_MARK_VALUE %lf",result[i]));
        }
        else { //RCV_RCP            
            result[i]= m_configuration.getRightMarkTemp(realFreq);
            MED_TRACE_FMT("RCP mark temp [%d] %f", i, result[i] );
            ACS_LOG(LM_FULL_INFO,"CComponentCore::getCalibrationMark()",(LM_DEBUG,"RIGHT_MARK_VALUE %lf",result[i]));
        }
    }
+6 −2
Original line number Diff line number Diff line
@@ -175,8 +175,10 @@ double CConfiguration::getLeftMarkTemp(double freq)
	DWORD l_coeffs_len;
	double l_ret= 0.0;
	l_coeffs_len= getLeftMarkCoeffs(l_coeffs);	
	MED_TRACE_FMT("LCP coeff len %d", l_coeffs_len );			
	for(DWORD i=0; i< l_coeffs_len; i++){
		l_ret+= l_coeffs[i] *  pow(freq, i);
		MED_TRACE_FMT("LCP coeff [%] %d", i, l_coeffs[i] );
	}
	return l_ret;
}
@@ -187,8 +189,10 @@ double CConfiguration::getRightMarkTemp(double freq)
	DWORD l_coeffs_len;
	double l_ret= 0.0;	
	l_coeffs_len= getRightMarkCoeffs(l_coeffs);				
	MED_TRACE_FMT("RCP coeff len %d", l_coeffs_len );		
	for(DWORD i=0; i< l_coeffs_len; i++){
		l_ret+= l_coeffs[i] *  pow(freq, i);
		MED_TRACE_FMT("RCP coeff [%] %d", i, l_coeffs[i] );
	}
	return l_ret;
}
+2 −4
Original line number Diff line number Diff line
@@ -274,14 +274,12 @@ ReceiverConfHandler::ConfigurationName ReceiverConfHandler::getActualConf(){
}

ReceiverConfHandler::ConfigurationSetup ReceiverConfHandler::getCurrentSetup()  {	 
	MED_TRACE_MSG(" IN ");    
    ReceiverConfHandler::ConfigurationName l_name_enum = m_current_conf.m_name;
    if (!findConfiguration(l_name_enum)){    
        setConfiguration(CCC_Normal);
        MED_TRACE_MSG(" OUT DEFAULT ");
        return m_conf_data[CCC_Normal];
    }	 
	 MED_TRACE_MSG(" OUT ");
    return m_conf_data[l_name_enum];
}