37、观测量读取任务定义

\qquad 下面是HD-GR GNSS导航软件的观测量读取任务相关定义:

// main_measure.h -- Header file for the main_measure.c file

/* 
 * Copyright (C) 2005 Andrew Greenberg
 * Distributed under the GNU GENERAL PUBLIC LICENSE (GPL) Version 2 (June 1991).
 * See the "COPYING" file distributed with this software for more information.
 */

/* Namuru GPS receiver project
 * Original : measure.h
 * Modes    : None
 * version  : V1.0
 * date     : 21st/Dec/2006
 */

/* 
 * HD-GR GNSS receiver project
 * Modes    : Inherited the definitions of measure.h in the Namuru GPS receiver 
 *            project V1.0 and made necessary adjustments to adapt to the new HW, 
 *            RTOS and functions.
 * version  : V1.0
 * date     : xx/xx/2015
 */

#ifndef __MAIN_MEASURE_H__
#define __MAIN_MEASURE_H__

#include "constants.h"
#include "gnsstime.h"

/*******************************************************************************
 * Definitions
 ******************************************************************************/

//#define ENABLE_CARRIER_PHASE_MEASUREMENT

/*******************************************************************************
 * Declarations
 ******************************************************************************/

// One Channel Raw data
typedef struct {
	unsigned short	valid;				// This channel's measurement is valid
	unsigned short	prn;				// Sat. PRN
	unsigned long	power;				// signal average power

	unsigned short	epoch_codes;		// Epoch code count value
	unsigned short	epoch_bits;			// Epoch bit count value

	unsigned short	code_phase;			// Half chip phase of C/A code
	unsigned short	code_dco_phase;		// Half chip DCO phase C/A code

#ifdef ENABLE_CARRIER_PHASE_MEASUREMENT
	unsigned short	carrier_dco_phase;	// Carrier DCO phase
	unsigned long	carrier_cycles;		// Carrier cycle count value
#endif // ENABLE_CARRIER_PHASE_MEASUREMENT

	long			doppler;			// Current carrier frequency
	unsigned long   sync_bit_time;		// Bit-time obtained from the tracking channel before 
										// grabbing the measurements (Time of week, in bits).
	unsigned long	meas_bit_time;		// Bit-time obtained from the tracking channel before 
										// grabbing the measurements.
} chan_meas_t;

// Raw data
typedef struct {
	gnsstime_t meas_time;
	unsigned short meas_tic;
	chan_meas_t chan_meas[TOT_MAX_CHANNELS];
} measurement_t;

/*******************************************************************************
 * Prototypes (Globally visible functions)
 ******************************************************************************/

// Call by main
void initialize_measurements( void);
// Call by accum_task
void grab_bit_times( void);
void fill_ch_pars( void)
void meas_task(void* pdata);

/*******************************************************************************
 * Externs
 ******************************************************************************/

extern OS_EVENT *m_SemMeas;
extern measurement_t m_raw_meas;

#endif // __MAIN_MEASURE_H__

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值