Cov txheej txheem:

Siv IRobot Tsim's Command Module Nrog Linux: 4 Cov Kauj Ruam
Siv IRobot Tsim's Command Module Nrog Linux: 4 Cov Kauj Ruam

Video: Siv IRobot Tsim's Command Module Nrog Linux: 4 Cov Kauj Ruam

Video: Siv IRobot Tsim's Command Module Nrog Linux: 4 Cov Kauj Ruam
Video: Tik Tok || Tseem Nco Koj Thiab Kuv P15 2024, Hlis ntuj nqeg
Anonim
Siv IRobot Tsim's Command Module Nrog Linux
Siv IRobot Tsim's Command Module Nrog Linux

Txij li iRobot tsis tau muab cov neeg siv linux nrog txoj hauv kev los siv cov lus txib, kuv yuav tsum txiav txim siab nws tus kheej. Tsis txhob ntshai, nws tsis nyuaj txhua, tiag tiag. Txhua yam koj yuav tsum tau ua yog khiav ob peb tsab ntawv. Let pib, puas yog?

Kauj ruam 1: Tau txais cov khoom

Txog qhov kev qhia no, Kuv xav tias koj muaj apt-based tus thawj tswj hwm pob. (piv txwv li koj siv Debian derivative, lossis Ubuntu derivative) Cias vim apt = zoo. Yog tias koj tsis ua, kuv xav tias muaj tib lub pob rau yum, tab sis kuv tsis tuaj yeem sim qhov ntawd. (Fedora tsis nyiam kuv) Tam sim no, koj yuav tsum ua haujlwm ntev thiab nyuaj ib yam nkaus li lub hli:

sudo apt-tau nruab avrdude avr-libc gcc-avrsudo apt-tau tshem tawm brlttyThiab yog, tshem tawm pob ntawd muaj kev nyab xeeb. (Cov lus qhia los ntawm no) Yog tias nws ua rau koj yuam kev hais tias nws tsis tau teeb tsa, koj nyob zoo, tsis txhob txhawj xeeb.

Kauj Ruam 2: Sau/Tau Txais Txoj Haujlwm

Nov yog ntu uas koj sau koj qhov program. Tab sis txhawm rau sim nws, cia siv qhov program demo. Qhov hais kom ua module tuaj nrog CD, thiab ntawm nws, muaj 3 qhov kev qhia ua haujlwm. To sim, siv cov program nkag. Luam daim nplaub tshev "nkag mus" rau qee qhov ntawm koj lub khoos phis tawj, xws li/home/user/avr/input.

Kauj ruam 3: Kho Makefile

Yog tias koj sau koj tus kheej qhov program, tau txais daim ntawv los ntawm CD. Yog tias koj nyuam qhuav theej nws dua, ces koj twb muaj nws lawm. Qhib nws, thiab siv nrhiav/hloov los kho ob kab no:

86: DEBUG = ntsias -2… 204: AVRDUDE_PORT = com9 # tus programmer txuas nrog cov khoom siv(Cov lej ntawd yog kab lej, yog tias koj xav ua nws li ntawd) To

86: DEBUG = stabs… 204: AVRDUDE_PORT = /dev /ttyUSB0 # programmer txuas nrog cov khoom sivQhov ntawd tsis nyuaj heev, puas yog?

Kauj ruam 4: Sau/Rub tawm

Sau/Rub tawm
Sau/Rub tawm
Sau/Rub tawm
Sau/Rub tawm

Nws tsis tau nyuaj txog tam sim no, thiab cov kauj ruam no tsis txawv: Ua ntej, ntsaws rau hauv qhov hais kom ua module, ntawm USB, thiab xyuas kom nws nyob. Ntaus lub khawm pib dua. Tom qab ntawd mus rau koj lub computer thiab qhib lub davhlau ya nyob twg. Nkag mus rau cov npe uas koj qhov program/makefile nyob, thiab ntaus:

ua txhua qhov programTam sim no, mus rau koj tus tsim, thiab tshem tawm cov kab. Tom qab ntawd nias lub pob pib dua, thiab koj txoj haujlwm yuav pib! Zoo siab nrog koj!

Pom zoo: