Commit 80ae39e2 authored by Matteo DB's avatar Matteo DB
Browse files

getvalue lo effective

parent 5f418567
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -81,11 +81,17 @@ class MixerOperator{
                                ReceiversErrors::LocalOscillatorErrorExImpl);

        /**
         * @brief Get the equivalent LO value 
         * @return double LO value
         * @brief Get the LO1 value 
         * @return double LO1 value
         */
        double getValue() throw (ReceiversErrors::LocalOscillatorErrorExImpl);

        /**
         * @brief Get Effective LO chain value
         * @return effective LO value
         */
        double getEffectiveValue() throw (ReceiversErrors::LocalOscillatorErrorExImpl);

        /**
         * @brief Resurce lock check
         * 
+1 −1
Original line number Diff line number Diff line
@@ -765,7 +765,7 @@ void CComponentCore::getIFOutput(
        freqs[i] = m_startFreq[ifs[i]];
        bw[i] = m_bandwidth[ifs[i]];
        pols[i] = m_polarization[ifs[i]];
        LO[i] = m_mixer.getValue();
        LO[i] = m_mixer.getEffectiveValue();
    }
}

+24 −3
Original line number Diff line number Diff line
@@ -182,6 +182,27 @@ bool MixerOperator::setValue(const ACS::doubleSeq& p_values)
}

double MixerOperator::getValue() throw (ReceiversErrors::LocalOscillatorErrorExImpl)
{
    double l_power;
    double l_freq;
    if( CORBA::is_nil(m_loDev_1st)){
        ACS_LOG(LM_FULL_INFO,"MixerOperator::getValue()",(LM_INFO,"LO is null!"));
        return 0.0;
    }
    try{
    	#ifndef EXCLUDE_MIXER                    
            m_loDev_1st->get(l_power, l_freq);            
        #else
            return 0.0;
       #endif
    } catch (ReceiversErrors::ReceiversErrorsEx& ex) { 
        _EXCPT(ReceiversErrors::LocalOscillatorErrorExImpl,impl,"MixerOperator::setLO()");
        throw impl;        
    }
    return l_freq;
}

double MixerOperator::getEffectiveValue() throw (ReceiversErrors::LocalOscillatorErrorExImpl)
{
    double l_power;
    double l_freq;