Show
Ignore:
Timestamp:
04/15/11 16:20:25 (2 years ago)
Author:
jgaeddert
Message:

FrameSync?64: adding squelch_enabled and squelch_threshold properties

Location:
ossiedev/branches/jgaeddert/0.8.0/components
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/jgaeddert/0.8.0/components/src/FrameSync64.cpp

    r10089 r10685  
    159159    std::cout << "props length : " << props.length() << std::endl; 
    160160 
    161     for ( unsigned int i = 0; i <props.length(); i++) 
    162     { 
     161    for ( unsigned int i = 0; i <props.length(); i++) { 
    163162        std::cout << "Property id : " << props[i].id << std::endl; 
    164163 
    165164        if (strcmp(props[i].id, "DCE:0a3620cc-0aa1-11df-baab-001aa089d644") == 0) { 
    166165            // verbose 
    167             CORBA::Boolean tmp; 
    168             props[i].value >>= tmp; 
    169             verbose = tmp; 
     166            props[i].value >>= verbose; 
     167        } else if (strcmp(props[i].id, "DCE:5b2083b8-fac1-4ed9-becf-80ca7ab08329") == 0) { 
     168            // squelch_enabled 
     169            CORBA::Boolean simple_tmp; 
     170            props[i].value >>= simple_tmp; 
     171            fsprops.squelch_enabled = (simple_tmp == false) ? 0 : 1; 
     172            framesync64_setprops(fs,&fsprops); 
     173        } else if (strcmp(props[i].id, "DCE:f6729dae-185f-4438-9202-6adaff95e20e") == 0) { 
     174            // squelch_threshold 
     175            props[i].value >>= fsprops.squelch_threshold; 
     176            framesync64_setprops(fs,&fsprops); 
     177        } else { 
     178            fprintf(stderr,"error: FrameSync64::configure(), invalid property\n"); 
     179            throw (0); 
    170180        } 
    171181    } 
  • ossiedev/branches/jgaeddert/0.8.0/components/xml/FrameSync64.prf.xml

    r10052 r10685  
    55<properties> 
    66    <description>These are the properties to configure the device manager</description>  
     7 
    78    <simple id="DCE:0a3620cc-0aa1-11df-baab-001aa089d644" mode="readwrite" name="verbose" type="boolean"> 
    89        <value>0</value>  
     
    1011        <kind kindtype="configure"/> 
    1112    </simple> 
     13 
     14    <simple id="DCE:5b2083b8-fac1-4ed9-becf-80ca7ab08329" mode="readwrite" name="squelch_enabled" type="boolean"> 
     15        <value>1</value>  
     16        <description>enable/disable squelch control (ignore signals below threshold)</description>  
     17        <kind kindtype="configure"/> 
     18    </simple> 
     19 
     20    <simple id="DCE:f6729dae-185f-4438-9202-6adaff95e20e" mode="readwrite" name="squelch_threshold" type="float"> 
     21        <value>-30.0</value>  
     22        <description>AGC squelch threshold (noise floor) in dB</description>  
     23        <kind kindtype="configure"/> 
     24    </simple> 
    1225</properties>