File: coeff.h

package info (click to toggle)
twpsk 2.1-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 944 kB
  • ctags: 1,477
  • sloc: cpp: 9,057; makefile: 187; sh: 4
file content (231 lines) | stat: -rw-r--r-- 4,156 bytes parent folder | download | duplicates (16)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
/* Linux PSK31 modem driver for soundcard -- Filter coefficients
 *
 * these FIR coefs are those used by G0TJZ in his TMC320C50 code
 *
 * Hansi Reiser, DL9RDZ, 20 April 1998
 */

/* 64-tap raised-cosine FIR*/
float fir1c[64]={
         0.000000,
         0.000038,
         0.000150,
         0.000336,
         0.000595,
         0.000922,
         0.001317,
         0.001773,
         0.002288,
         0.002856,
         0.003472,
         0.004130,
         0.004823,
         0.005545,
         0.006288,
         0.007047,
         0.007812,
         0.008578,
         0.009337,
         0.010080,
         0.010802,
         0.011495,
         0.012153,
         0.012769,
         0.013337,
         0.013852,
         0.014308,
         0.014703,
         0.015030,
         0.015289,
         0.015475,
         0.015587,
         0.015625,
         0.015587,
         0.015475,
         0.015289,
         0.015030,
         0.014703,
         0.014308,
         0.013852,
         0.013337,
         0.012769,
         0.012153,
         0.011495,
         0.010802,
         0.010080,
         0.009337,
         0.008578,
         0.007813,
         0.007047,
         0.006288,
         0.005545,
         0.004823,
         0.004130,
         0.003472,
         0.002856,
         0.002288,
         0.001773,
         0.001317,
         0.000922,
         0.000595,
         0.000336,
         0.000150,
         0.000038,
};

/* 4-bit receive filter for 31.25 baud BPSK
 * Designed by G3PLX, version 2
 */
float fir2c[64]={
         -0.00044789,
         -0.00063167,
         -0.00100256,
         -0.00156531,
         -0.00232266,
         -0.00327063,
         -0.00439342,
         -0.00565850,
         -0.00701253,
         -0.00837907,
         -0.00965823,
         -0.01072878,
         -0.01145278,
         -0.01168246,
         -0.01126911,
         -0.01007335,
         -0.00797606,
         -0.00488924,
         -0.00076591,
          0.00439171,
          0.01052660,
          0.01752432,
          0.02521404,
          0.03337329,
          0.04173643,
          0.05000649,
          0.05786981,
          0.06501264,
          0.07113857,
          0.07598566,
          0.07934199,
          0.08105860,
          0.08105860,
          0.07934199,
          0.07598566,
          0.07113857,
          0.06501264,
          0.05786981,
          0.05000649,
          0.04173643,
          0.03337329,
          0.02521404,
          0.01752432,
          0.01052660,
          0.00439171,
         -0.00076591,
         -0.00488924,
         -0.00797606,
         -0.01007335,
         -0.01126911,
         -0.01168246,
         -0.01145278,
         -0.01072878,
         -0.00965823,
         -0.00837907,
         -0.00701253,
         -0.00565850,
         -0.00439342,
         -0.00327063,
         -0.00232266,
         -0.00156531,
         -0.00100256,
         -0.00063167,
         -0.00044789,
};

float fir2cnew[64]={
	0.000625000,
	0.000820912,
	0.001374651,
	0.002188141,
	0.003110600,
	0.003956273,
	0.004526787,
	0.004635947,
	0.004134515,
	0.002932456,
	0.001016352,
	-0.001539947,
	-0.004572751,
	-0.007834665,
	-0.011009254,
	-0.013733305,
	-0.015625000,
	-0.016315775,
	-0.015483216,
	-0.012882186,
	-0.008371423,
	-0.001933193,
	0.006315933,
	0.016124399,
	0.027115485,
	0.038807198,
	0.050640928,
	0.062016866,
	0.072333574,
	0.081028710,
	0.087617820,
	0.091728168,
	0.093125000,
	0.091728168,
	0.087617820,
	0.081028710,
	0.072333574,
	0.062016866,
	0.050640928,
	0.038807198,
	0.027115485,
	0.016124399,
	0.006315933,
	-0.001933193,
	-0.008371423,
	-0.012882186,
	-0.015483216,
	-0.016315775,
	-0.015625000,
	-0.013733305,
	-0.011009254,
	-0.007834665,
	-0.004572751,
	-0.001539947,
	0.001016352,
	0.002932456,
	0.004134515,
	0.004635947,
	0.004526787,
	0.003956273,
	0.003110600,
	0.002188141,
	0.001374651,
	0.000820912
};


float ampcof[16] = {
	-0.097545161,
	-0.093796555,
	-0.086443400,
	-0.075768274,
	-0.062181416,
	-0.046204960,
	-0.028452874,
	-0.009607360,
	0.009607360,
	0.028452874,
	0.046204960,
	0.062181416,
	0.075768274,
	0.086443400,
	0.093796555,
	0.097545161
};