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

正文內(nèi)容

基于s3c2440的gps定位系統(tǒng)畢設(shè)-預(yù)覽頁(yè)

 

【正文】 el無(wú)需安裝,可以虛擬ISO等光盤映像文件), menu界面選擇“Install inside Windows”即可在Windows下直接安裝而無(wú)需分區(qū)。通常Linux平臺(tái)上ARM的交叉編譯器是armLinuxgcc首先生成一個(gè)工具鏈,工具鏈可以通過(guò)手動(dòng)創(chuàng)建,也可以使用腳本創(chuàng)建。增加g++++$ updatealternatives install /usr/bin/g++ g++ /usr/bin/g++ 40$ updatealternatives install /usr/bin/g++ g++ /usr/bin/g++ 30 (5)切換版本到g++$ updatealternatives config g++圖421:增加g++,g++手動(dòng)模式 要維持當(dāng)前值[*]請(qǐng)按回車鍵,或者鍵入選擇的編號(hào):1(自己手動(dòng)輸入要選擇的默認(rèn)值,輸入1,) 要 注意文件夾權(quán)限 chmod 777 XXX查看當(dāng)前gcc版本(6) $ gcc v圖422:安裝成功 創(chuàng)建QT開發(fā)平臺(tái)(1)qtopia版本可在Linux操作系統(tǒng)下應(yīng)用Qt圖形界面及應(yīng)用程序的開發(fā),它可以產(chǎn)生 Qt開發(fā)工具,如用于設(shè)計(jì)的designer、運(yùn)行結(jié)果顯示的qvfb可以沒(méi)有實(shí)際的開發(fā)板,直接在桌面系統(tǒng)中顯示程序運(yùn)行結(jié)果。xplatform linuxarmg++editionpdadisplaysize640x480I/root/yizhi/arminclude L/root/yizhi/armlib prefix=/root/yizhi/qtopia39。執(zhí)行U口轉(zhuǎn)串口。2. B upload 從此處讀取上傳的文件,PC機(jī)向開發(fā)板發(fā)送文件,需要發(fā)送的文件在/tmp目錄下(PC機(jī)上的目錄)。此時(shí)可以打印串口信息但是在通過(guò)串口用xmodem協(xié)議燒寫內(nèi)核時(shí)會(huì)提示沒(méi)有xmodem協(xié)議。 (1)S鍵:發(fā)送文件到目標(biāo)系統(tǒng)中;(2)W鍵:自動(dòng)卷屏。系統(tǒng)內(nèi)核移植就是讓一套軟件在指定平臺(tái)發(fā)揮作用,至少要有兩個(gè)不同的硬件或軟件平臺(tái)才會(huì)完成。如圖所示: 圖:431選擇界面 制作根文件系統(tǒng)YAFFS是Yet Another Flash File System的縮寫。YAFFS中,文件是以512字節(jié)、1 024字節(jié)或者2 048字節(jié)大小的數(shù)據(jù)塊進(jìn)行存儲(chǔ)的,這種以固定塊大小來(lái)存儲(chǔ)方法的實(shí)現(xiàn)主要由于它可以把一個(gè)數(shù)據(jù)塊頭和每個(gè)數(shù)據(jù)塊聯(lián)系起來(lái)。YAFFS文件系統(tǒng)設(shè)計(jì)具有層次感,NAND 接口,yaffs_guts 與NAND 內(nèi)存訪問(wèn)函數(shù)之間的包裝層4部分。最后用mkyaffs2image 工具來(lái)制作文件系統(tǒng):./mkyaffs2image qte_yaffs 0Object 3115, qte_yaffs/lib/ is a symlink to Object 3116, qte_yaffs/lib/ is a file, 59 data chunks writtenObject 3117, qte_yaffs/lib/ is a file, 31 data chunks writtenObject 3118, qte_yaffs/lib/ is a symlink to Object 3119, qte_yaffs/lib/libstdc++ is a file, 513 data chunks writtenObject 3120, qte_yaffs/lib/ is a symlink to Object 3121, qte_yaffs/lib/ is a file, 52 data chunks writtenObject 3122, qte_yaffs/mnt is a directoryObject 3123, qte_yaffs/tmp is a directoryOperation plete.2867 objects in 236 directories83519 NAND pagesFriendlyARM Computer Technology Inc.ljfubuntu:~/test201243yaffs2$ ls圖441:制作根文件系統(tǒng) 應(yīng)用程序開發(fā)開發(fā)Qt 應(yīng)用程序一般有全部采用手寫代碼,在命令行下完成編譯和運(yùn)行和使用Qt Designer設(shè)計(jì)界面,使用IDE兩種。啟動(dòng)Qt designer。文件名為*.ui (3)include include include qtopia/QTOPIA_ADD_APPLICATION(gps,gps)。就可以在開發(fā)板上運(yùn)行了。 Device: /dev/ttyUSB0,重啟開發(fā)板,這樣基本上就可以正常使用mini來(lái)打印串口信息了。//打開開發(fā)平臺(tái)后先要點(diǎn)擊openport按鈕,否則開發(fā)板會(huì)死機(jī)// if(!flag_port){ qWarning(info:Please open port first!)。j++) //run in 5s,then stop! //讓程序運(yùn)行5s// { while(1){ if(fd0) { qWarning( GPS::gps_start(): open_port ttySAC1 error! )。 if(tmp==39。 qWarning(read the 39。 iGPS_RECV_CMD_MAX_BUF。 if(tmp==39。 qWarning( tmp success! )。amp。amp。 qWarning( this is GGA success! )。i++) Hour[i]=0。//no=8 for(i = 0。 Minu[1]=buffer[no+1]。i++) Second[i]=0。 = atoi(Minu)。 if( 24) = 24。經(jīng)度是27位到40位,=(atof(Minute)) / + atoi(Degree),將組成緯度信息。i++) Degree[i]=0。 for(i=0。i7。 //NS:27 = buffer[27]。 else flag_gps=0。i++) Degree[i]=0。 no+=3。 for(i=0。 =(atof(Minute)) / + atoi(Degree)。) flag_gps=1。i 4。 = atoi(Satnum)。i++) Height[i]=0。 Height[1]=buffer[no+2]。 Height[1]=buffer[no+1]。圖4410:顯示信息 GPS信息顯示定位信息雖已提取出來(lái),但是這樣顯示并不是很美觀,下面的程序?qū)⑼瓿蒕t界面顯示的功能。static int flag_port。 setCaption( tr( gps ) )。 T_longitude = new QLabel( this, T_longitude )。 T_timesetGeometry( QRect( 20, 80, 190, 20 ) )。 T_time2setText( tr( ) )。 T_hight = new QLabel( this, T_hight )。 T_portsetGeometry( QRect( 20, 170, 191, 20 ) )。 B_startsetText( tr( start ) )。 B_set = new QPushButton( this, B_set )。 B_closesetGeometry( QRect( 230, 160, 80, 31 ) )。 if(fd0){ qWarning( GPS::gps_start(): open_port ttySAC1 error! )。 tcgetattr(fd,amp。opt,B4800)。= ~CSIZE。 amp。 [VTIME] =150。 //return 0。 flag_port=1。 T_time2setText( tr(UTC time is: %1 :%2 :%3 ) .arg() .arg() .arg() )。N39。S39。E39。W39。 sleep(2)。 flag_port=0。}加上Qt設(shè)置的程序后會(huì)顯示一個(gè)用戶界面如下圖所示,可以在開發(fā)板上通過(guò)觸摸屏手動(dòng)控制,并且在終端會(huì)有相應(yīng)提示。圖3 GPS定位終端的Qtopia圖形界面交叉編譯GPS應(yīng)用程序,生成可執(zhí)行文件,并創(chuàng)建相關(guān)的啟動(dòng)文件與圖標(biāo)文件,添加到文件系統(tǒng)中的Qtopia目錄中,重新交叉編譯并下載Qtopia到開發(fā)板。2 創(chuàng)建開發(fā)環(huán)境,在PC機(jī)上安裝Ubuntu系統(tǒng)并對(duì)系統(tǒng)進(jìn)行設(shè)置,安裝串口工具mini創(chuàng)建交叉編譯環(huán)境,創(chuàng)建QT開發(fā)平臺(tái)。參考文獻(xiàn)[1] 孫天澤,袁文菊,張海峰. 嵌入式設(shè)計(jì)及Linux驅(qū)動(dòng)開發(fā)指南——:電子工業(yè)出版社,2007[2] 劉洪濤,孫天澤. 嵌入式系統(tǒng)技術(shù)與設(shè)計(jì). :人民郵電出版社,2009[3] S3C2410 User’s Manual. Samsung Electronics Co., Ltd. [4]余萍,許勇,.[碩士學(xué)位論文].[5]王曉宇,.[學(xué)位論文].[6]江春華,.[學(xué)位論文].[7]潘成源,.[學(xué)位論文].[8]張慧敏,.[學(xué)位論文].[9]陳天麟,.[學(xué)位論文]. [6]汪小澄,2007(14):131~133[7] 王淵,趙宇. ,2006,29(06):94~96[8] 游霞. 嵌入式Linux下以太網(wǎng)驅(qū)動(dòng)程序的開發(fā):[學(xué)位論文],電子科技大學(xué),2007[9]蔡樹向,(2008)8011003致 謝本文的順利完成與王偉教授的悉心指導(dǎo)有著很大的聯(lián)系,在整個(gè)過(guò)程中處處都傾注著老師的心血,王老師淵博的學(xué)識(shí)、嚴(yán)謹(jǐn)?shù)闹螌W(xué)作風(fēng)、敏銳超前的學(xué)術(shù)意識(shí)、對(duì)科學(xué)研究全身心的投入、認(rèn)真負(fù)責(zé)的工作態(tài)度、平易的待人之道給我留下了深刻的印象王偉老師對(duì)我要求嚴(yán)格,每個(gè)過(guò)程王老師都嚴(yán)格把關(guān),王老師雖對(duì)學(xué)生要求嚴(yán)格,平常卻很平易近人,給人講解簡(jiǎn)明扼要,遇到不明白的更是詳細(xì)的講解。附 錄 AGPS定位程序 include include include include include include include include include include include sys/include sys/include include include include static int fd。/* * Constructs a gps which is a child of 39。 and widget flags set to 39。 setCaption( tr( gps ) )。 T_longitude = new QLabel( this, T_longitude )。 T_timesetGeometry( QRect( 20, 80, 190, 20 ) )。 T_time2setText( tr( ) )。 T_hight = new QLabel( this, T_hight )。 T_portsetGeometry( QRect( 20, 170, 191, 20 ) )。 B_startsetText( tr( start ) )。 B_set = new QPushButton( this, B_set )。 B_closesetGeometry( QRect( 230, 160, 80, 31 ) )。 connect( B_set, SIGNAL( clicked() ), this, SLOT( set() ) )。 fd=open(/dev/ttySAC1, O_RDWR)。 } qWarning(open fd sucess!)。 cfsetispeed(amp。 amp。= ~PARENB。= ~CSTOPB。opt)){ qWarning( set error!!\n)。 tcflush(fd,TCIOFLUSH)。}void gps::start(){ char buffer[GPS_RECV_CMD_MAX_BUF]。 char Hour[4]。 char Height[4]。 T_portsetText(tr(info:Please open the port first!))。 sleep(1)。$39。$39。i++) { read(fd,amp。\n39。 if(buffer[2]==39。 buffer[3]==39。 buffer[4]==39。 //Time:615 no = 6。 Hour[0]=buffer[no]。i 4。 no += 2。 Second[0]=buffer[no
點(diǎn)擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1