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

正文內容

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

2025-02-11 14:59 上一頁面

下一頁面
 

【正文】 el無需安裝,可以虛擬ISO等光盤映像文件), menu界面選擇“Install inside Windows”即可在Windows下直接安裝而無需分區(qū)。通常Linux平臺上ARM的交叉編譯器是armLinuxgcc首先生成一個工具鏈,工具鏈可以通過手動創(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++手動模式 要維持當前值[*]請按回車鍵,或者鍵入選擇的編號:1(自己手動輸入要選擇的默認值,輸入1,) 要 注意文件夾權限 chmod 777 XXX查看當前gcc版本(6) $ gcc v圖422:安裝成功 創(chuàng)建QT開發(fā)平臺(1)qtopia版本可在Linux操作系統(tǒng)下應用Qt圖形界面及應用程序的開發(fā),它可以產生 Qt開發(fā)工具,如用于設計的designer、運行結果顯示的qvfb可以沒有實際的開發(fā)板,直接在桌面系統(tǒng)中顯示程序運行結果。xplatform linuxarmg++editionpdadisplaysize640x480I/root/yizhi/arminclude L/root/yizhi/armlib prefix=/root/yizhi/qtopia39。執(zhí)行U口轉串口。2. B upload 從此處讀取上傳的文件,PC機向開發(fā)板發(fā)送文件,需要發(fā)送的文件在/tmp目錄下(PC機上的目錄)。此時可以打印串口信息但是在通過串口用xmodem協(xié)議燒寫內核時會提示沒有xmodem協(xié)議。 (1)S鍵:發(fā)送文件到目標系統(tǒng)中;(2)W鍵:自動卷屏。系統(tǒng)內核移植就是讓一套軟件在指定平臺發(fā)揮作用,至少要有兩個不同的硬件或軟件平臺才會完成。如圖所示: 圖:431選擇界面 制作根文件系統(tǒng)YAFFS是Yet Another Flash File System的縮寫。YAFFS中,文件是以512字節(jié)、1 024字節(jié)或者2 048字節(jié)大小的數據塊進行存儲的,這種以固定塊大小來存儲方法的實現主要由于它可以把一個數據塊頭和每個數據塊聯(lián)系起來。YAFFS文件系統(tǒng)設計具有層次感,NAND 接口,yaffs_guts 與NAND 內存訪問函數之間的包裝層4部分。最后用mkyaffs2image 工具來制作文件系統(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) 應用程序開發(fā)開發(fā)Qt 應用程序一般有全部采用手寫代碼,在命令行下完成編譯和運行和使用Qt Designer設計界面,使用IDE兩種。啟動Qt designer。文件名為*.ui (3)include include include qtopia/QTOPIA_ADD_APPLICATION(gps,gps)。就可以在開發(fā)板上運行了。 Device: /dev/ttyUSB0,重啟開發(fā)板,這樣基本上就可以正常使用mini來打印串口信息了。//打開開發(fā)平臺后先要點擊openport按鈕,否則開發(fā)板會死機// if(!flag_port){ qWarning(info:Please open port first!)。j++) //run in 5s,then stop! //讓程序運行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。經度是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信息顯示定位信息雖已提取出來,但是這樣顯示并不是很美觀,下面的程序將完成Qt界面顯示的功能。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設置的程序后會顯示一個用戶界面如下圖所示,可以在開發(fā)板上通過觸摸屏手動控制,并且在終端會有相應提示。圖3 GPS定位終端的Qtopia圖形界面交叉編譯GPS應用程序,生成可執(zhí)行文件,并創(chuàng)建相關的啟動文件與圖標文件,添加到文件系統(tǒng)中的Qtopia目錄中,重新交叉編譯并下載Qtopia到開發(fā)板。2 創(chuàng)建開發(fā)環(huán)境,在PC機上安裝Ubuntu系統(tǒng)并對系統(tǒng)進行設置,安裝串口工具mini創(chuàng)建交叉編譯環(huán)境,創(chuàng)建QT開發(fā)平臺。參考文獻[1] 孫天澤,袁文菊,張海峰. 嵌入式設計及Linux驅動開發(fā)指南——:電子工業(yè)出版社,2007[2] 劉洪濤,孫天澤. 嵌入式系統(tǒng)技術與設計. :人民郵電出版社,2009[3] S3C2410 User’s Manual. Samsung Electronics Co., Ltd. [4]余萍,許勇,.[碩士學位論文].[5]王曉宇,.[學位論文].[6]江春華,.[學位論文].[7]潘成源,.[學位論文].[8]張慧敏,.[學位論文].[9]陳天麟,.[學位論文]. [6]汪小澄,2007(14):131~133[7] 王淵,趙宇. ,2006,29(06):94~96[8] 游霞. 嵌入式Linux下以太網驅動程序的開發(fā):[學位論文],電子科技大學,2007[9]蔡樹向,(2008)8011003致 謝本文的順利完成與王偉教授的悉心指導有著很大的聯(lián)系,在整個過程中處處都傾注著老師的心血,王老師淵博的學識、嚴謹的治學作風、敏銳超前的學術意識、對科學研究全身心的投入、認真負責的工作態(tài)度、平易的待人之道給我留下了深刻的印象王偉老師對我要求嚴格,每個過程王老師都嚴格把關,王老師雖對學生要求嚴格,平常卻很平易近人,給人講解簡明扼要,遇到不明白的更是詳細的講解。附 錄 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
點擊復制文檔內容
黨政相關相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1