Cytron UC00A Manual do Utilizador Página 18

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 29
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 17
ROBOT . HEAD to TOE
Product User’s Manual – SKPS
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved
16
For Type 1, there are 2 variables for each joystick which is axis X and axis Y. For example
user can move the joystick up, down for Y axis and left, right for X axis. For Y axis, when
users move the joystick up, the value will change from 128 to 0; when user move the joystick
down, the value will change from 128 to 255. For X axis, when users move the joystick right,
the value will change form 128 to 255; when user move the joystick left, the value will
change from 128 to 0. This axis is same for left joystick and right joystick on PS2 controller.
(a) Type 1
Let’s take an example on left joystick. Referring to the figure below, the left joystick is
moved a bit to the left and a bit to the up direction. So, the value of joy_lx and joy_ly will
changed, as in the figure joy_lx=70 and joy_ly=92.
joy_lx joy_rx
joy_ly joy_ry
Vista de página 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 28 29

Comentários a estes Manuais

Sem comentários