Commit b0d46ee9 authored by TheDebbio's avatar TheDebbio
Browse files

broken to win

parent fb3bc6dd
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -8,7 +8,9 @@
 * @details We need to extend some functionalities as C Hi/LOW receiver selection
 * 
 */
class ReceiverControlCBand : public IRA::Receviercontrol {

 
class ReceiverControlCBand : public IRA::RecevierControl {

public:

@@ -50,7 +52,7 @@ public:
            const BYTE switch_madd=0x7C,   // Switch board master address
            const BYTE switch_sadd=0x7F,   // Switch board slave address - We use broadcast address
            bool reliable_comm=false
    ) throw (ReceiverControlEx);
    ) throw (IRA::ReceiverControlEx);

    /**
     * @brief Destroy the Receiver Control object
@@ -71,7 +73,7 @@ public:
            const BYTE port_type=MCB_PORT_TYPE_DIO, 
            const BYTE port_number=MCB_PORT_NUMBER_01, 
            const BYTE value=0x01
    ) throw (ReceiverControlEx);
    ) throw (IRA::ReceiverControlEx);

    /** Set LOW C Receiver
     *  @param data_type the type of the data; the default type is 1 bit
@@ -85,7 +87,7 @@ public:
            const BYTE port_type=MCB_PORT_TYPE_DIO, 
            const BYTE port_number=MCB_PORT_NUMBER_01, 
            const BYTE value=0x00
    ) throw (ReceiverControlEx);
    ) throw (IRA::ReceiverControlEx);

private:

+8 −8
Original line number Diff line number Diff line
@@ -16,8 +16,8 @@ ReceiverControlCBand::ReceiverControlCBand(
    const BYTE switch_madd,
    const BYTE switch_sadd,
    bool reliable_comm) 
    throw (ReceiverControlEx) : 
    IRA::ReceiverControl(dewar_ip, dewar_port
    throw (IRA::ReceiverControlEx) : 
    IRA::ReceiverControl(dewar_ip, dewar_port,
                        lna_ip, lna_port,
                        guard_time,
                        number_of_feeds,
@@ -36,7 +36,7 @@ void ReceiverControlCBand::setReceiverHigh(
        const BYTE port_type, 
        const BYTE port_number, 
        const BYTE value
        ) throw (ReceiverControlEx)
        ) throw (IRA::ReceiverControlEx)
{
    try {
        makeRequest(
@@ -49,9 +49,9 @@ void ReceiverControlCBand::setReceiverHigh(
                value 
        );
    }
    catch(MicroControllerBoardEx& ex) {
    catch(IRA::MicroControllerBoardEx& ex) {
        std::string error_msg = "ReceiverControl: error performing setReceiverHigh.\n";
        throw ReceiverControlEx(error_msg + ex.what());
        throw IRA::ReceiverControlEx(error_msg + ex.what());
    }    
}

@@ -60,7 +60,7 @@ void ReceiverControlCBand::setReceiverLow(
        const BYTE port_type, 
        const BYTE port_number, 
        const BYTE value
        ) throw (ReceiverControlEx)
        ) throw (IRA::ReceiverControlEx)
{
    try {
        makeRequest(
@@ -73,8 +73,8 @@ void ReceiverControlCBand::setReceiverLow(
                value 
        );
    }
    catch(MicroControllerBoardEx& ex) {
    catch(IRA::MicroControllerBoardEx& ex) {
        std::string error_msg = "ReceiverControl: error performing setReceiverHigh.\n";
        throw ReceiverControlEx(error_msg + ex.what());
        throw IRA::ReceiverControlEx(error_msg + ex.what());
    }    
}
 No newline at end of file