Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

SpectDirLine.hh

Go to the documentation of this file.
00001 /*
00002 
00003     Spectrum based direction finding for line array
00004     Copyright (C) 2000-2002 Jussi Laako
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 */
00021 
00022 
00023 #include <vector>
00024 
00025 #include <Alloc.hh>
00026 #include <dsp/DSPOp.hh>
00027 #include <dsp/RecDecimator.hh>
00028 
00029 #include "Config.h"
00030 #include "RemoveNoise.hh"
00031 #include "SpectDir.hh"
00032 
00033 
00034 #ifndef SPECTDIRLINE_HH
00035     #define SPECTDIRLINE_HH
00036 
00037 
00038     // These should match with the ones defined in Messages.hh!
00039 
00043     enum
00044     {
00045         SDL_SCALE_LIN = 0,      
00046         SDL_SCALE_LOG = 1       
00047     };
00048 
00052     enum
00053     {
00054         SDL_BNER_NONE = 0,      
00055         SDL_BNER_TPSW = 1,      
00056         SDL_BNER_OTA = 2,       
00057         SDL_BNER_DIFF = 3,      
00058         SDL_BNER_IDIFF = 4      
00059     };
00060 
00061 
00068     class clSpectDirLine : public clSpectDir
00069     {
00070             bool bDebug;
00071             long lSensorCount;
00072             long lDirectionCount;
00073             long lFilterSize;
00074             long lFFTSize;
00075             long lDecimation;
00076             long lSpectSize;
00077             long lMinBin;
00078             long lMaxBin;
00079             long lNewData;
00080             long lOldData;
00081             float fOverlap;
00082             GDT fFreqRes;
00083             GDT fIntTime;
00084             GDT *fpWinFunc;
00085             GDT *fpExtBuf;
00086             std::vector<GDT *> vfpProcBuf;
00087             std::vector<GDT *> vfpPrevBuf;
00088             std::vector<GDT *> vfpRNBuf;
00089             std::vector<GCDT *> vspSpect;
00090             clDSPAlloc WinFuncBuf;
00091             clDSPAlloc ExtBuf;
00092             std::vector<clDSPAlloc> vProcBuf;
00093             std::vector<clDSPAlloc> vPrevBuf;
00094             std::vector<clDSPAlloc> vRNBuf;
00095             std::vector<clDSPAlloc> vSpectBuf;
00096             std::vector<clRecDecimator *> vDecimator;
00097             clRemoveNoise BNER;
00098             void Calculate (int, stpSpectDirRN);
00099         public:
00114             clSpectDirLine (long, GDT, GDT, double, long, int, long, long, GDT, 
00115                 bool);
00116             ~clSpectDirLine ();
00125             void PutData (const GDT *, long, long, long);
00139             bool GetResults (GDT *, GDT, int, stpSpectDirRN);
00143             void ResetResults ();
00149             GDT GetIntegrationTime () { return fIntTime; }
00150     };
00151 
00152 #endif
00153 

Generated on Sun Oct 26 19:11:22 2003 for HASAS by doxygen 1.3.3