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

SpectDir2.hh

Go to the documentation of this file.
00001 /*
00002 
00003     Direction calculation from spectrum, header
00004     Copyright (C) 2000-2001 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 <dsp/DSPOp.hh>
00024 
00025 #include "Config.h"
00026 #include "ArrayBase.hh"
00027 
00028 
00029 #ifndef SPECTDIR2_HH
00030     #define SPECTDIR2_HH
00031 
00032 
00033     typedef struct _stSpectDir2RN
00034     {
00035         int iType;
00036         GDT fAlpha;
00037         long lMeanLength;
00038         long lGapLength;
00039     } stSpectDir2RN, *stpSpectDir2RN;
00040 
00041 
00047     class clSpectDir2
00048     {
00049             long lDirCount;
00050             GDT fPI;
00051             GDT fSensorSpacing;
00052             GDT fArrayFreq;
00053         public:
00054             clDSPOp DSP;
00055             clSpectDir2 ();
00056             ~clSpectDir2 ();
00057             // Set sensor spacing
00058             // Note: Call this before setting speed of sound
00059             // (sensor spacing)
00060             void SetSensorSpacing (GDT);
00061             // Set speed of sound
00062             // (speed of sound)
00063             void SetSoundSpeed (GDT);
00064             // Get array frequency
00065             GDT GetArrayFrequency () { return fArrayFreq; }
00066             // Get direction from frequency and phase difference
00067             // (frequency, phase diff (rad)) = direction (rad)
00068             GDT GetDirection (GDT, GDT);
00069     };
00070 
00071 #endif
00072 

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