This programme is to control DC motor in a certain speed using PWM. The target speed is "r", it is the speed in 1s. The sample rate is 0.1s, so the actual speed target is "rc"=r/10. The "r" and "rc" are integer, and the range of "r" is from 50 to 100. Keep rc=r/10!!! The array "speed1" and "speed2" are the control result, in 0.1s and 1s. The length of "speed1" is 2400, and "speed2" is 240. The "pw" and "nw" are the parameters of PWM. The test will last 4 min.
標(biāo)簽: speed programme is control
上傳時(shí)間: 2014-11-22
上傳用戶:jyycc
中山大學(xué)編譯原理課程的一個(gè)實(shí)驗(yàn),根據(jù)OPP(算符優(yōu)先)做的一個(gè)表達(dá)式計(jì)算器。 內(nèi)有實(shí)驗(yàn)的設(shè)計(jì)文檔。 實(shí)驗(yàn)要求支持sin,cos,max,min,power,mod,boolean,?:,等運(yùn)算。 這個(gè)代碼可以為學(xué)習(xí)編譯原理的同學(xué)參考。
標(biāo)簽: 大學(xué) 編譯原理 實(shí)驗(yàn)
上傳時(shí)間: 2014-01-27
上傳用戶:PresidentHuang
1.把"Web"文件夾內(nèi)的文件拷貝到某個(gè)文件夾 2.在IIS中新建站點(diǎn),指向該文件夾,如果新建虛擬路徑,會(huì)導(dǎo)致一些圖片的不正常顯示. 3."Database"文件夾內(nèi)有數(shù)據(jù)庫(kù)文件hyb2bTest_Data.MDF,在Sql Server企業(yè)管理器中選擇"附加數(shù)據(jù)庫(kù)" 4.需要修改根目錄web.config文件 <add key="DBServer" value="."/>,改成當(dāng)前數(shù)據(jù)庫(kù)地址 <add key="DBUser" value="sa"/>,改成當(dāng)前數(shù)據(jù)庫(kù)用戶名 <add key="DBPwd" value="sa"/>,改成當(dāng)前數(shù)據(jù)庫(kù)密碼 <add key="DBName" value="hyb2btest"/>,改成當(dāng)前數(shù)據(jù)庫(kù)名稱 <add key="SQLConnString" value="server=. database=hyb2btest user id=sa pwd=sa Min Pool Size=10"/>,分別也換成當(dāng)前數(shù)據(jù)庫(kù)的地址,用戶名、密碼以及數(shù)據(jù)庫(kù)名稱。 5.后臺(tái)登錄地址: 當(dāng)前路徑+manage/index.aspx 帳戶:admin 密碼:admin 環(huán)境要求: Windows2000 / Windows2003 + IIS5 + .NET Framework 1.1 + MS SQL Server 2000 或各更高版本 演示地址:www.hyb2b.cn 電話:13061363607 MSN :huayousoft@hotmail.com
上傳時(shí)間: 2014-01-27
上傳用戶:zhliu007
ClustanGraphics聚類(lèi)分析工具。提供了11種聚類(lèi)算法。 Single Linkage (or Minimum Method, Nearest Neighbor) Complete Linkage (or Maximum Method, Furthest Neighbor) Average Linkage (UPGMA) Weighted Average Linkage (WPGMA) Mean Proximity Centroid (UPGMC) Median (WPGMC) Increase in Sum of Squares (Ward s Method) Sum of Squares Flexible (ß space distortion parameter) Density (or k-linkage, density-seeking mode analysis)
標(biāo)簽: ClustanGraphics Complete Neighbor Linkage
上傳時(shí)間: 2014-01-02
上傳用戶:003030
電子鬧鐘 clk: 標(biāo)準(zhǔn)時(shí)鐘信號(hào),本例中,其頻率為4Hz; clk_1k: 產(chǎn)生鬧鈴音、報(bào)時(shí)音的時(shí)鐘信號(hào),本例中其頻率為1024Hz; mode: 功能控制信號(hào); 為0:計(jì)時(shí)功能; 為1:鬧鐘功能; 為2:手動(dòng)校時(shí)功能; turn: 接按鍵,在手動(dòng)校時(shí)功能時(shí),選擇是調(diào)整小時(shí),還是分鐘; 若長(zhǎng)時(shí)間按住該鍵,還可使秒信號(hào)清零,用于精確調(diào)時(shí); change: 接按鍵,手動(dòng)調(diào)整時(shí),每按一次,計(jì)數(shù)器加1; 如果長(zhǎng)按,則連續(xù)快速加1,用于快速調(diào)時(shí)和定時(shí); hour,min,sec:此三信號(hào)分別輸出并顯示時(shí)、分、秒信號(hào), 皆采用BCD 碼計(jì)數(shù),分別驅(qū)動(dòng)6 個(gè)數(shù)碼管顯示時(shí)間; alert: 輸出到揚(yáng)聲器的信號(hào),用于產(chǎn)生鬧鈴音和報(bào)時(shí)音; 鬧鈴音為持續(xù)20 秒的急促的“嘀嘀嘀”音,若按住“change”鍵, 則可屏蔽該音;整點(diǎn)報(bào)時(shí)音為“嘀嘀嘀嘀—嘟”四短一長(zhǎng)音; LD_alert: 接發(fā)光二極管,指示是否設(shè)置了鬧鐘功能; LD_hour: 接發(fā)光二極管,指示當(dāng)前調(diào)整的是小時(shí)信號(hào); LD_min: 接發(fā)光二極管,指示當(dāng)前調(diào)整的是分鐘信號(hào)
標(biāo)簽: clk 電子鬧鐘 標(biāo)準(zhǔn) 時(shí)鐘信號(hào)
上傳時(shí)間: 2017-01-02
上傳用戶:頂?shù)弥?/p>
Shut the Box is a simple diversion written in C and GTK+. The object is simple: Roll the dice and click the tiles that sum up to that dice roll until there are no more tiles to click.
標(biāo)簽: simple the diversion and
上傳時(shí)間: 2014-12-03
上傳用戶:天涯
設(shè)計(jì)一個(gè)具有特定功能的數(shù)字電子鐘。準(zhǔn)確計(jì)時(shí),以數(shù)字形式顯示h、min、s 的時(shí)間。小時(shí)的計(jì)時(shí)要求為二十四進(jìn)位,分和秒的計(jì)時(shí)要求為六十進(jìn)位。 該電子鐘上電或按鍵復(fù)位后能自動(dòng)顯示系統(tǒng)提示00-00-00,進(jìn)入時(shí)鐘準(zhǔn)備狀態(tài);第一次按電子鐘功能鍵,電子鐘從0時(shí)0分0秒開(kāi)始運(yùn)行,進(jìn)入時(shí)鐘運(yùn)行狀態(tài);再次按電子鐘功能鍵,則電子鐘進(jìn)入時(shí)鐘調(diào)整狀態(tài),此時(shí)可利用各調(diào)整鍵調(diào)整時(shí)間,調(diào)整結(jié)束后可按功能鍵再次進(jìn)入時(shí)鐘運(yùn)行狀態(tài)。
標(biāo)簽: 數(shù)字電子鐘 計(jì)時(shí)
上傳時(shí)間: 2017-02-04
上傳用戶:1966640071
學(xué)生成績(jī)查詢系統(tǒng),運(yùn)用結(jié)構(gòu)體,struct ,sort ,Clrscr(),textcolor()函數(shù),用for()循環(huán)語(yǔ)句,switch和ifelse作為條件測(cè)試語(yǔ)句。 程序?qū)崿F(xiàn)了學(xué)生成績(jī)查詢功能,有20個(gè)我們班學(xué)生的數(shù)據(jù)信息,每個(gè)包含: 學(xué)號(hào) — num [10](字符串)、姓名(拼音)— name[25](字符串)、 性別 — sex(字符,M或W)、年齡 — age(整型)、 三門(mén)課程成績(jī)(高數(shù)、英語(yǔ)、計(jì)算機(jī))— score [3 ](單精度)。設(shè)計(jì)一個(gè)系統(tǒng): 定義及輸出。用結(jié)構(gòu)體類(lèi)型數(shù)據(jù)及其賦初值的方法把學(xué)生的數(shù)據(jù)送到結(jié)構(gòu)體數(shù)組中(第一個(gè)數(shù)據(jù)用自己的真實(shí)數(shù)據(jù),其它數(shù)據(jù)自定,但注意要是合法數(shù)據(jù)),然后把它們輸出顯示;計(jì)算并排序。計(jì)算每個(gè)學(xué)生三門(mén)課程的總分(sum,單精度)及平均分(aver,單精度,輸出一位小數(shù)),還有他們成績(jī)的排名,將包括所有數(shù)據(jù)的結(jié)構(gòu)體數(shù)組元素按總分從大到小的順序排序打印出來(lái); 運(yùn)行程序,進(jìn)入主界面!可輸入1—輸出所有學(xué)生的成績(jī),輸入2—計(jì)算和排列學(xué)生的成績(jī),輸入3—查詢學(xué)生個(gè)人成績(jī),輸入4—退出查詢。 在進(jìn)行學(xué)生個(gè)人成績(jī)個(gè)人查詢可以實(shí)現(xiàn)多次查詢——進(jìn)入學(xué)生個(gè)人查詢,輸入1回車(chē)實(shí)現(xiàn)多次查詢。 運(yùn)行環(huán)境為T(mén)URBOC ,WINDOWSXP。
標(biāo)簽: 成績(jī)查詢系統(tǒng)
上傳時(shí)間: 2014-01-01
上傳用戶:cx111111
spoj CCOST . Usage of a 2 dimensional fenwick tree.Querying (log(n)^2) a 2 dimensional matrix for sub sum and updating a cell in O(logn)
標(biāo)簽: dimensional Querying fenwick matrix
上傳時(shí)間: 2017-03-02
上傳用戶:chfanjiang
Genetic Algorithm example using Java You have 10 cards numbered 1 to 10. You have to divide them into 2 piles so that: The sum of the first pile is as close as possible to 36 and the product of all in second pile is as close as poss to 360.
標(biāo)簽: have Algorithm You numbered
上傳時(shí)間: 2017-03-08
上傳用戶:lacsx
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1