~ubuntu-branches/ubuntu/precise/linpsk/precise

« back to all changes in this revision

Viewing changes to linpsk/constants.h

  • Committer: Bazaar Package Importer
  • Author(s): Bruce Walker
  • Date: 2002-02-06 11:43:38 UTC
  • Revision ID: james.westby@ubuntu.com-20020206114338-xqmjmhh01lpjm0g4
Tags: upstream-0.6.2
ImportĀ upstreamĀ versionĀ 0.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          constants.h  -  description
 
3
                             -------------------
 
4
    begin                : Fri Apr 21 2000
 
5
    copyright            : (C) 2000 by Volker Schroer
 
6
    email                : DL1KSV@gmx.de
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
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
 ***************************************************************************/
 
17
 
 
18
#ifndef CONSTANTS_H
 
19
#define CONSTANTS_H
 
20
 
 
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
 
24
#define TXTOG_CODE -3
 
25
 
 
26
#define FFT_SIZE 2048
 
27
#define FFT_SAMPLERATEX2 11025  // 2 x the fft sample rate(so is an integer)
 
28
 
 
29
#define TXBUFFER_LENGTH 1000
 
30
#define BUF_SIZE 4096   //size of data chunks to process at a time from
 
31
                                                                                        // the soundcard
 
32
 
 
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
 
49
#define a1coeff 1.8
 
50
#define a2coeff -1.8
 
51
#endif