1
/***************************************************************************
2
constants.h - description
4
begin : Fri Apr 21 2000
5
copyright : (C) 2000 by Volker Schroer
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* based on the work of Moe Wheatley, AE4JY *
16
***************************************************************************/
21
#include <math.h> // for some constants like PI
22
#define TXOFF_CODE -1 // control codes that can be placed in the input
23
#define TXON_CODE -2 // queue for various control functions
27
#define FFT_SAMPLERATEX2 11025 // 2 x the fft sample rate(so is an integer)
29
#define TXBUFFER_LENGTH 1000
30
#define BUF_SIZE 4096 //size of data chunks to process at a time from
33
// define some constants
34
#define PI2 ( M_PI + M_PI ) // 2 Pi
35
//#define PHZ_180_MIN (M_PI_4) //Pi/4
36
#define PHZ_180_MIN ( 0.0 )
37
//#define PHZ_180_MAX (3.0*PI2/8.0) //3Pi/4
38
#define PHZ_180_MAX ( M_PI )
39
//#define PHZ_0_MIN (5.0*PI2/8.0) //5Pi/4
40
#define PHZ_0_MIN ( M_PI )
41
//#define PHZ_0_MAX (7.0*PI2/8.0) //7Pi/4
42
#define PHZ_0_MAX ( PI2 )
43
#define Ts (.032+.000000) // Ts == symbol period(correct for +/- .23%error)
44
#define M_PI_3_2 (M_PI_2+M_PI) // 3Pi/2
45
#define M_PI_3_4 (M_PI_2+M_PI_4) // 3Pi/4
46
#define M_PI_5_4 (M_PI + M_PI_4) // 5Pi/4
47
#define M_PI_7_4 (M_PI + M_PI_2 + M_PI_4) // 7Pi/4
48
// Coefficents for AFC- Filtering