1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
/***************************************************************************
* Copyright (C) 2004 by Johan Maes - ON4QZ *
* on4qz@telenet.be *
* http://users.telenet.be/on4qz *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef FILTERPARAM_H
#define FILTERPARAM_H
#include "appdefs.h"
#include <QString>
#define FILTERPARAMTYPE double
#define TXWFNUMTAPS 121
#define NUMTAPSPOST 0
#define NUMRXFILTERS 1
#define SYNCBPNUMZEROES 10
#define SYNCBPNUMPOLES 10
#define SYNCBP1200GAIN (2036425.679557*7.7)
extern const double z_sync_bp1200[SYNCBPNUMZEROES+1];
extern const double p_sync_bp1200[SYNCBPNUMPOLES];
#define SYNCBP1900GAIN 15076908.367168
extern const double z_sync_bp1900[SYNCBPNUMZEROES+1];
extern const double p_sync_bp1900[SYNCBPNUMPOLES];
#define SYNCLPTAPS 51
#define SYNCLPGAIN 26.568143
extern const double z_sync_lp[SYNCLPTAPS];
#define VIDEOBPNUMZEROES 8
#define VIDEOBPNUMPOLES 8
#define VIDEOBPGAIN 2284.945151
extern const double z_video_bp[VIDEOBPNUMZEROES+1];
extern const double p_video_bp[VIDEOBPNUMPOLES];
#define VIDEOFIRNUMTAPS 181
#define VIDEOFIRGAIN 10.000014
#define VIDEOFIRCENTER 1900
extern const double videoFilterCoefFIR[VIDEOFIRNUMTAPS];
#define DRMHILBERTTAPS 153
#define DRMHILBERTGAIN 1.569749
extern const FILTERPARAMTYPE drmHilbertCoef[DRMHILBERTTAPS];
enum efilterType {FNARROW,FWIDE};
enum epostFilterType {NONE};
extern const FILTERPARAMTYPE wfFilterCoef[TXWFNUMTAPS];
DSPFLOAT calculateGain(const DSPFLOAT *fp,unsigned int len);
struct sfilters
{
const QString filterName;
const FILTERPARAMTYPE *filterPtr;
DSPFLOAT centerFrequency;
};
//extern sfilters filterStruct[NUMRXFILTERS];
#endif
|