请问谁开发过GPS系统的软件?(利用硬件,实现最简单的定位功能? 我做过,很简单,用MSCOMM控件后CFile类读取GPS传到串口的数据,你要得定位信息在$GPRMC行中。你也可以用超级终端来读串口数据。然后研究一下,看你到底需要那一部分数据。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我有一些源码,你需要的话可以mail给你! 多谢各位的帮助 我现在急需这方面的原理,code,有知道的请帮兄弟一把email [email protected] 大侠用的是什么档次的GPS,贵不贵 ? sorry上次一时手快,只写的默认的50分,我一定多多加分,感谢回复的朋友们 m_strstr=(CString)m_mscomm.GetInput().bstrVal;int i,j;i=m_strstr.Find("$GPRMC");m_strmsg=m_strstr.Mid(i,100);i=m_strmsg.Find(",A");if(i!=-1){ x1=::atof(m_strmsg.Mid(i+15,10).Left(3)); x2=::atof(m_strmsg.Mid(i+15,10).Mid(3,2)); x3=::atof(m_strmsg.Mid(i+15,10).Right(4)); x=x1+(x2+x3/10000)/60; x1=::atof(m_strmsg.Mid(i+3,9).Left(2)); x2=::atof(m_strmsg.Mid(i+3,9).Mid(2,2)); x3=::atof(m_strmsg.Mid(i+3,9).Right(4)); y=x1+(x2+x3/10000)/60; int hh=::atoi(m_strmsg.Mid(7,2))+8; if(hh>=24) hh-=24; int mm=::atoi(m_strmsg.Mid(9,2)); int ss=::atoi(m_strmsg.Mid(11,2)); j=m_strmsg.Find(",*"); m_strmsg=m_strmsg.Mid(i+28,j-i-28); i=m_strmsg.Find(','); j=m_strmsg.GetLength(); speed=::atof(m_strmsg.Left(i)); speed*=1.852; //把速度从节转换为km/h m_strmsg=m_strmsg.Right(j-i-1); j=m_strmsg.GetLength(); i=m_strmsg.Find(','); degree=::atoi(m_strmsg.Left(i)); m_strmsg=m_strmsg.Right(j-i-1); if(degree>180) degree-=180; if(degree<15||degree>=165) fg=0; else if(degree<45) fg=1; else if(degree<75) fg=2; else if(degree<105) fg=3; else if(degree<135) fg=4; else fg=5; m_pSet->AddNew(); m_pSet->m_column1="20"+m_strmsg.Mid(4,2)+"-"+ m_strmsg.Mid(2,2)+"-"+m_strmsg.Left(2); m_pSet->m_column2.Format("%02d:%02d:%02d",hh,mm,ss); m_pSet->m_column3.Format("%f",x); m_pSet->m_column4.Format("%f",y); m_pSet->m_column5.Format("%1d",fg); m_pSet->m_column6.Format("%.2f",speed); m_pSet->Update(); m_pSet->MoveFirst(); m_strmsg.Format("位置: 经度:%f,纬度:%f 速度: %.2f 公里/小时",x,y,speed);} To ivefire,你是不是用的GPS模块,怎么和我做的如此的像。 Thank ivefire,!thank dutsf!Thank all !!btw ,谁能介绍一下GPS硬件方面的信息?象型号,价格什么的? there are a lot of gps related products, such as jupiter, novatel,marconi,ashtech,argo. the simplest gps oem card is about 50$ where can find these detail information ?Please tell me.anyway, thanks all ! 从客户端传送一个文件到服务端的指定文件夹中(该文件夹由客户端指定),要用到什么方面的知识? [提 问: 关 于 消 息 分 流 器 中 定 义 的 回 调 函 数 形 式 ] 高分请教SNMP中TRAP的问题......... 小问题 大量vc资料下载 http://www.dsend.com 同志们,好别忘了顶。 vc 和 officexp 用带处数据传送文件时的问题?(急!!!!) DAO连了一个数据库 怎么让socket服务器能接受大量的连接? 求一个程序模型,就是有一堆数据,然后要画出 类似股票实时走势图那种图形 变量访问时出现的一个小问题?谢谢. 关于DLL
我现在急需这方面的原理,code,
有知道的请帮兄弟一把
email [email protected] 大侠用的是什么档次的GPS,贵不贵 ?
上次一时手快,只写的默认的50分,
我一定多多加分,感谢回复的朋友们
int i,j;
i=m_strstr.Find("$GPRMC");
m_strmsg=m_strstr.Mid(i,100);
i=m_strmsg.Find(",A");
if(i!=-1)
{
x1=::atof(m_strmsg.Mid(i+15,10).Left(3));
x2=::atof(m_strmsg.Mid(i+15,10).Mid(3,2));
x3=::atof(m_strmsg.Mid(i+15,10).Right(4));
x=x1+(x2+x3/10000)/60;
x1=::atof(m_strmsg.Mid(i+3,9).Left(2));
x2=::atof(m_strmsg.Mid(i+3,9).Mid(2,2));
x3=::atof(m_strmsg.Mid(i+3,9).Right(4));
y=x1+(x2+x3/10000)/60;
int hh=::atoi(m_strmsg.Mid(7,2))+8;
if(hh>=24) hh-=24;
int mm=::atoi(m_strmsg.Mid(9,2));
int ss=::atoi(m_strmsg.Mid(11,2));
j=m_strmsg.Find(",*");
m_strmsg=m_strmsg.Mid(i+28,j-i-28);
i=m_strmsg.Find(',');
j=m_strmsg.GetLength();
speed=::atof(m_strmsg.Left(i));
speed*=1.852; //把速度从节转换为km/h
m_strmsg=m_strmsg.Right(j-i-1);
j=m_strmsg.GetLength();
i=m_strmsg.Find(',');
degree=::atoi(m_strmsg.Left(i));
m_strmsg=m_strmsg.Right(j-i-1);
if(degree>180) degree-=180;
if(degree<15||degree>=165) fg=0;
else if(degree<45) fg=1;
else if(degree<75) fg=2;
else if(degree<105) fg=3;
else if(degree<135) fg=4;
else fg=5;
m_pSet->AddNew();
m_pSet->m_column1="20"+m_strmsg.Mid(4,2)+"-"+
m_strmsg.Mid(2,2)+"-"+m_strmsg.Left(2);
m_pSet->m_column2.Format("%02d:%02d:%02d",hh,mm,ss);
m_pSet->m_column3.Format("%f",x);
m_pSet->m_column4.Format("%f",y);
m_pSet->m_column5.Format("%1d",fg);
m_pSet->m_column6.Format("%.2f",speed);
m_pSet->Update();
m_pSet->MoveFirst();
m_strmsg.Format("位置: 经度:%f,纬度:%f 速度: %.2f 公里/小时",x,y,speed);
}
thank dutsf!
Thank all !!
btw ,谁能介绍一下GPS硬件方面的信息?
象型号,价格什么的?
Please tell me.
anyway, thanks all !