freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

基于s3c2440的gps定位系統(tǒng)畢設(參考版)

2025-01-21 14:59本頁面
  

【正文】 = atoi。 Second[1]=buffer[no+1]。i++) Second[i]=0。 for(i = 0。 Minu[1]=buffer[no+1]。i++) Minu[i]=0。//no=8 for(i = 0。 Hour[1]=buffer[no+1]。i++) Hour[i]=0。 for(i = 0。 qWarning( this is GGA success! )。A39。amp。G39。amp。G39。 qWarning( tmp success! )。)break。 if(tmp==39。tmp,1)。 iGPS_RECV_CMD_MAX_BUF。 ok!)。 qWarning(read the 39。) break。 if(tmp==39。 } read(fd,amp。j++) //run in 5s,then stop! { while(1){ if(fd0) { qWarning( GPS::gps_start(): open_port ttySAC1 error! )。 } for(j=0。 if(!flag_port){ qWarning(info:Please open port first!)。 int i,j。 char Satnum[4]。 char Minu[4]。 char Minute[8]。//receive buffer char tmp。 //qWarning( gps::set(): Not implemented yet! )。 flag_port=1。 T_portsetText(tr(info:Port is open!BPS is: %1).arg(DBPS))。 //return 0。 if(0!=tcsetattr(fd,TCSANOW,amp。 [VTIME] =150。 amp。 amp。 amp。= ~CSIZE。opt,B4800)。opt,B4800)。 tcflush(fd,TCIOFLUSH)。 tcgetattr(fd,amp。 //return。 if(fd0){ qWarning( GPS::gps_start(): open_port ttySAC1 error! )。}/* * Destroys the object and frees any allocated resources */gps::~gps(){ // no need to delete child widgets, Qt does it all for us}void gps::set(){ struct termios opt。 connect( B_close, SIGNAL( clicked() ), this, SLOT( close() ) )。 connect( B_stop, SIGNAL( clicked() ), this, SLOT( stop() ) )。 B_closesetText( tr( close ) )。 B_close = new QPushButton( this, B_close )。 B_setsetGeometry( QRect( 230, 110, 80, 31 ) )。 B_stopsetText( tr( stop ) )。 B_stop = new QPushButton( this, B_stop )。 B_startsetGeometry( QRect( 230, 10, 80, 31 ) )。 T_portsetText( tr( ) )。 T_port = new QLabel( this, T_port )。 T_hightsetGeometry( QRect( 120, 140, 91, 20 ) )。 T_statellitesetText( tr( ) )。 T_statellite = new QLabel( this, T_statellite )。 T_time2setGeometry( QRect( 20, 110, 190, 20 ) )。 T_timesetText( tr( ) )。 T_time = new QLabel( this, T_time )。 T_longitudesetGeometry( QRect( 20, 50, 190, 20 ) )。 T_latitudesetText( tr( ) )。 T_latitude = new QLabel( this, T_latitude )。 resize( 319, 209 )。f39。name39。parent39。static GGAINFO ggainfo。static int flag_gps。最后,我要再次感謝我的導師——王偉教授,同時也向和王老師一樣辛勤培育、無私奉獻的各位導師、師長致以深深的敬意。王老師很注重學生能力的培養(yǎng),從擬題到做實驗再到寫論文,老師都要求要有自己的思想,充分發(fā)揮我們的能動性,培養(yǎng)我對嵌入式學習的熱情。 5 需要完善的地方是:輸出的信息只是經度緯度而不是地圖形式,所以在最終輸出時還需完善,與百度地圖相聯(lián)系,直接顯示附近的地圖,還要增加語音功能與自動導航功能。3 GPS定位系統(tǒng)程序設計,完成程序的編譯調試無誤后,下載到開發(fā)板運行。主要工作如下:利用S3C2440,SDARM,NandFlash,鍵盤,LCD,電源,起振電路的設計與連接,構建一個完整的ARM平臺。系統(tǒng)上電后運行GPS應用程序會顯示創(chuàng)建的用戶圖形界面,如圖4所示;打開GPS模塊電源后點擊“openport”、再點擊“start”即可在LCD上顯示出當前位置信息,如圖5所示,包括經度、緯度、高度、時間。系統(tǒng)啟動后可自動載入Qtopia圖形界面,如圖3所示。5 GPS定位系統(tǒng)的測試配置QT環(huán)境變量,配置交叉編譯環(huán)境,拷貝Qtopia所需庫文件,按照實際環(huán)境配置編譯選項,利用auto config工具生成Makefile,進行交叉編譯。 GPS is stop!))。 qWarning( gps::stop()! )。 flag_gps=1。 //close(fd)。 } if(flag_gps==1) break。) T_longitudesetText(tr(Longitude is: W : %1 39。 if(==39。) T_longitudesetText(tr(Longitude is: E : %1 39。 if(==39。) T_latitudesetText(tr(Latitude is: S : %1 39。 if (==39。) T_latitudesetText(tr(Latitude is: N : %1 39。 if (==39。 T_statellitesetText(tr(statellites: %1) .arg())。} T_timesetText( tr(BJ time is: %1 :%2 :%3 ) .arg() .arg() .arg() )。 flag_gps=0。 tcflush(fd,TCIOFLUSH)。 } else qWarning(setting success!!)。opt)){ qWarning( set error!!\n)。 [VMIN]=0。= ~CSTOPB。= ~INPCK。= ~PARENB。 |=CS8。 amp。 cfsetospeed(amp。 cfsetispeed(amp。opt)。 } qWarning(open fd sucess!)。 //perror(open_port error)。 fd=open(/dev/ttySAC1, O_RDWR)。 B_closesetText( tr( close ) )。 B_close = new QPushButton( this, B_close )。 B_setsetGeometry( QRect( 230, 110, 80, 31 ) )。 B_stopsetText( tr( stop ) )。 B_stop = new QPushButton( this, B_stop )。 B_startsetGeometry( QRect( 230, 10, 80, 31 ) )。 T_portsetText( tr( ) )。 T_port = new QLabel( this, T_port )。 T_hightsetGeometry( QRect( 120, 140, 91, 20 ) )。 T_statellitesetText( tr( ) )。 T_statellite = new QLabel( this, T_statellite )。 T_time2setGeometry( QRect( 20, 110, 190, 20 ) )。 T_timesetText( tr( ) )。 T_time = new QLabel( this, T_time )。 T_longitudesetGeometry( QRect( 20, 50, 190, 20 ) )。 T_latitudesetText( tr( ) )。 T_latitude = new QLabel( this, T_latitude )。 resize( 319, 209 )。static GGAINFO ggainfo。static int flag_gps。主要包括界面名字定義,按鈕名字的定義和大小設置、這些在QT desiger下設計的都需要通過函數來控制。 }運行程序后會有如下圖結果左邊的是帶有NAME0183協(xié)議的輸出信息,右邊的是經過提取出的信息。 Height[2]=buffer[no+3]。 } else{ Height[0]=buffer[no]。 Height[2]=buffer[no+4]。){ Height[0]=buffer[no+1]。 if(buffer[no]==39。i 4。 //altitude第50位為高度信息下面是高度信息的讀?。簄o=51。 Satnum[1]=buffer[no+1]。i++) Satnum[i]=0。 for(i = 0。 else flag_gps=0。E39。 //WE:40 = buffer[40]。 // int B=atoi(Degree)。i7。i++) Minute[i]=0。 for(i=0。 Degree[2]=buffer[no+2]。 Degree[0]=buffer[no]。i4。 //Longitude:2938 no = 29。) flag_gps=1。 if(==39。 =(atof(Minute)) / + atoi(Degree)。i++) Minute[i]=buffer[no+i]。 for(i=0。i8。 no+=2。 Degree[0]=buffer[no]。i 4。27位顯示出南北40位顯示出東西,具體程序如下no = 17。***分,=(atof(Minute)) / + atoi(Degree)顯示出緯度信息。時間讀取完畢,北京時間與UTC時間相差8個小時。 = + 8。 = atoi(Second)。 = atoi(Hour)。 Second[0]=buffer[no]。i 4。 no += 2。 Minu[0]=buffer[no]。i 4。 no += 2。 Hour[0]=buffer[no]。i 4。到此說明$GGA識別成功,下面是讀取定位信息:時間,經緯度,高度 no = 6。){ = 1。 buffer[4]==39。 amp。 buffer[3]==39。 amp。 if(buffer[2]==39。 } flag_gps=1。\n39。 buffer[i]=tmp。i++) { read(fd,amp。 // for(i = 0。$39。 }。$39。tmp,1)。 sleep(1)。j=5。 T_portsetText(tr(info:Please open the port first!))。例如,當前衛(wèi)星信息$GPGGA的提?。?GPGGA,092007,000,N,E,1,08,
點擊復制文檔內容
黨政相關相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1