Changeset 4505

Show
Ignore:
Timestamp:
07/24/07 16:24:56 (6 years ago)
Author:
jgaeddert
Message:

updating SigProc? documentation

Location:
SigProc/trunk/SigProc
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • SigProc/trunk/SigProc/documentation.txt

    r4394 r4505  
    5353\endcode 
    5454 
     55\subsection ExampleRRCFilter Example: design a root raised-cosine filter 
     56\code 
     57// A simple SigProc example: examplerrcfilter.cpp 
     58 
     59#include "sigproc/SigProc.h" 
     60 
     61int main() { 
     62    unsigned int h_len;     // filter length 
     63    float * h;              // array for filter coefficients 
     64 
     65    unsigned int k(4);      // samples per symbol 
     66    unsigned int m(3);      // filter delay (symbols) 
     67    float beta(0.3);        // excess bandwidth factor 
     68     
     69    // Calculate filter coefficients 
     70    SigProc::DesignRRCFilter(k, m, beta, h, h_len); 
     71 
     72    // Print filter coefficients to the screen 
     73    for (unsigned int i=0; i<h_len; i++)  
     74        printf("h[%d] = %f\n", i, h[i]); 
     75     
     76    // Clean up memory 
     77    delete [] h; 
     78     
     79    return 0; 
     80}    
     81\endcode 
     82 
     83Compile and run 
     84\verbatim 
     85$ g++ -lsigproc examplerrcfilter.cpp -o ExampleRRCFilter 
     86$ ./ExampleRRCFilter 
     87\endverbatim 
     88 
    5589\section status Status and History 
    5690 
  • SigProc/trunk/SigProc/modem.cpp

    r4176 r4505  
    233233        break; 
    234234    default: 
    235         std::cerr << "ERROR: Unknown symbol for 16-PSK: " << symbol_in << std::endl; 
     235        std::cerr << "ERROR: Unknown symbol for 16-QAM: " << symbol_in << std::endl; 
    236236        throw 0; 
    237237    }