-
Re: Выбор джойстика. Практические рекомендации
хе-хе ... у нас есть специальный контроллер UIC1201CP под аналоговый оптический джойстик. Переделываем Сайтеки иногда под него.
Точность - 1024 позиции на 30 градусов по каждой из осей плюс 1460 позиций на оборот по оси вращения -более чем достаточно.
________________________________________________
The principles of operation
The optical sensor for joystick has an embedded matrix photo-receiver , on which the images of two light sources(LEDs.) are projected. The LEDs are mounted on the end of the handle of a joystick. While sloping the handle to the right or to the left the images are shifted along X-axis, while sloping forward or backward the images are shifted along Y-axis, when rotating the handle around its own axis –the images of the LEDs draw a arc around the middle of the segment connecting the two images. The LEDs are switched on in turns, so that each) frame with odd (uneven) number fixes the image of LED-”A”, and each ”even” frame-the image of LED-”B”. An image processing unit is built in the sensor, and this unit calculates the coordinates of the ”center of gravity” of the light spot of the image of each LED.
According to the received coordinates the angles of declinations of the handle from the central position are calculated on three axes of regulation. When calculating the coordinates of the bright spots on the image coordinate X is calculated in the numbers of pixel columns; Y is calculated in the numbers of pixel lines(rows). The diameter of the bright spot is 5-10 pixels, therefore the center of gravity of the spot is calculated according to the total set of the signals from the great number of pixels (from 30 to 100).Such mathematical approach helps to reduce the error of defining of the the center of the spot up to the value of 5-10% of the pixel size.
Крайний раз редактировалось Unique; 14.11.2007 в 18:16.
Ваши права
- Вы не можете создавать новые темы
- Вы не можете отвечать в темах
- Вы не можете прикреплять вложения
- Вы не можете редактировать свои сообщения
-
Правила форума