没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
5页
实现GPS定位、全球卫星定位 string tmpstr, tmpsubstr; unsigned int i=0, j=0, ti; string::size_type k=0; correlator = new OnechCorrelator; correlator->initCorrelator( corr_cfg ); // calculate the length of 20ms IF data data_count_20ms = int(corr_cfg.sampling_freq * 0.02);
资源推荐
资源详情
资源评论
/*:cacode_module.cc
*******************************************************
* CA code module for L1 GPS signal structure
*
* This class is used to generate the CA prn code for certain PRN number
* It can output prn code of three phases: early, prompt, delay,
* seperated by 1/2 chip, relatively
*
* Author:
* Yu Lu, luyu1974@gmail.com
* Jan, 2005
*******************************************************/
#include "./includes/cacode_module.h"
#include "./includes/prncode_generator.h"
#include "./includes/square_nco.h"
#include <iostream>
#include <fstream>
using namespace std;
const unsigned int CAcodeModule::MAX_PHASE = 0xFFFFFFFF;
CAcodeModule::CAcodeModule()
{
samplingfreq = 5e6; //default sampling freq is 5MHz
HalfchipOSC = new SquareNCO;
FullchipOSC = new SquareNCO;
prn_cg = new PRNcodeGenerator;
prn_cg->set_prnnum(1); //defalut prn num =1
reset_module();
FullchipOSC->set_phasestep( MAX_PHASE/2 );
}
CAcodeModule::~CAcodeModule()
{
delete HalfchipOSC;
delete FullchipOSC;
delete prn_cg;
}
void CAcodeModule::reset_module()
{
资源评论
- d5652583992013-10-24介绍了导航定位的一些方面,不全,看看
ningxiuli
- 粉丝: 2
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功