正交相移键控(Quadrature Phase Shift Keyin,QPSK)是一种数字调制方式。
相移键控(PSK),是一种用载波相位表示输入信号信息的调制技术。是一种相位调制。
调制方式基本的有三种:幅度调制,频率调制,相位调制。
VC6新建一个单文档工程;
// qpskView.cpp : implementation of the CQpskView class
//
#include "stdafx.h"
#include "qpsk.h"
#include "qpskDoc.h"
#include "qpskView.h"
#include <math.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//#define source_length 1000000
#define source_length 128
#define symbol_length source_length/2
#define SNR_start 1
#define SNR_end 10
#define SNR_step 1
#define PI 3.1415926
#define Coderate 1
typedef struct {
double Rpart;
double Ipart;
}complex;
int source[source_length];//message(),modulate(),error()
int change[source_length];//modulate()
int resource[source_length]; //demodulate(),error()
complex modulatesym[symbol_length];