通过车载终端采集GPS数据

源代码在线查看: position.h

软件大小: 2749 K
上传用户: wanghaihah
关键词: GPS 车载终端 数据 采集
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				#ifndef __POSITION_H__
				#define __POSITION_H__
				
				
				struct VOICE_INFO_STRUCT
				{
				    unsigned char curState;
				    unsigned char lastState;
				    unsigned char curPoint;
				    unsigned char pointChange;
				
				
				    unsigned char trend;        /*0:停车, 1:行驶中 2:*/
				    unsigned char location;     /*1:二点之间 2:越过下一点 3:*/
				    long disCur;                /*与当前点的距离*/
				    long disNext;               /*与下一点的距离*/
				    long dis2point;             /*2点之间的距离*/
				
				    long lastDisCur;
				    long lastDisNex;
				
				    unsigned char valid;
				    long longitude;
				    long latitude;
				    unsigned int speed;
				    
				    unsigned char firstStation;
				    unsigned char lastStation;
				    unsigned char arriveFlag;
				    unsigned char stopFlag;
				    
				};
				
				extern struct VOICE_INFO_STRUCT voiceInfo;
				
				
				extern unsigned char get_cur_position(void);
				extern unsigned char get_position_state(void);
				extern long get_cur_station_dis(void);
				extern long get_next_station_dis(void);
				
				
				extern void set_position_table(char *ptr);
				extern void set_position_mode(char *ptr);
				extern void set_position_state(char pDir, char pMode);
				extern unsigned char position_process(void);
				
				extern unsigned char first_last_station(unsigned char value);
				extern unsigned char position_next_station(unsigned char value);
				extern unsigned char position_last_station(unsigned char value);
				extern unsigned char position_sound_record(unsigned char value);
				extern void clear_sound_flag(void);
				extern char position_stop(void);
				void position_init(void);
				void position_setstation();
				void all_two_distance(void);
				#endif /*__POSITION_H__*/
							

相关资源