Tsev > Xov xwm > Ntsiab lus

CMD_TRACK - Khiav Nkaus Rau Khoom Siv Graphics

Apr 27, 2019

Qhov kev hais kom ua no yuav pab kom lub tshuab khiav hluav taws xob qiv los mus nrhiav qhov kev sib txuas ntawm qhov

duab kwv nrog ib qho siv tau tus nqi xa. Tom qab ntawd, cov tshuab hluav taws xob yuav hloov tshiab

lub REG_TRACKER periodically nrog tus ncej tus nqi ntawm LCD cov vaj huam sib luag.

Co-processor engine tracks cov kwv graphics hauv kev hloov ua teb hom thiab kab khiav ncaj

hom:

 hom kev hloov qeeb mentshis - Khiav lub kaum sab xis ntawm qhov sib chwv thiab qhov chaw

ntawm cov kwv cov khoom siv los ntawm tus nqi tag. Tus nqi yog nyob rau hauv cov koog 1/65536 ntawm a

lub voj voos. 0 txhais tau hais tias lub kaum sab xis ncaj qha, 0x4000 sab laug, 0x8000, thiab

0xC000 txoj cai los ntawm qhov chaw.

 Hom kev tawm ntaiv - Yog tias parameter w yog siab tshaj h, teev tus txheeb ze

nrug ntawm kev taw tes mus rau lub dav ntawm cov kwv graphics uas sau los ntawm tag tus nqi.

Yog tias tus parameter w yog tsis siab tshaj h, Nres qhov txheeb ze ntawm kev sib chwv

taw tes rau qhov siab ntawm daim duab kwv uas tau teev los ntawm tus nqi. Tus nqi yog nyob rau hauv units

ntawm 1/65536 ntawm qhov dav lossis qhov siab ntawm qhov khoom kwv. Qhov ze ntawm kov

taw tes hais txog qhov kev ncua deb ntawm pixel sab saum toj ntawm pixel graphics

koom tes ntawm kev taw tes.

C daim ntawv prototype

tsis muaj dabtsis cmd_track (int16_t x,

int16_t y,

int16_t w,

int16_t h,

int16_t lossis);

Cov lus qhia

x

Rau linear tracker functionality, x-coordinate ntawm thaj chaw khiav saum toj-sab laug, hauv pixels.

Rau kev ua teb tig kev functionality, x-coordinate ntawm qhov chaw nruab nrab, hauv pixels.

y

Rau linear tracker functionality, y-coordinate ntawm thaj chaw khiav saum toj-sab laug, hauv pixels.

Rau kev ua teb tig kev ua haujlwm, y-coordinate ntawm qhov chaw nruab nrab, hauv pixels.

w

Dav ntawm thaj chaw khiav, hauv pixels.

h

Qhov siab tshaj ntawm thaj chaw khiav, hauv pixels.

Thov cim:

Ib tug w thiab h ntawm (1,1) txhais tau hais tias tus tracker yog tig, thiab ceeb toom ib qho

angle tus nqi hauv REG_TRACKER. Ib tug w thiab h ntawm (0,0) txwv tsis pub khiav

functionality ntawm lub tshuab pa roj carbon monoxide.

lossis

lossis ntawm cov khoom kwv yees coj los mus taug qab, 1-255

image

image

image

image

image

image