Re: [Linux-uvc-devel] [SVN] Added preliminary pan/tilt support for Quickcam Orbit MP
Linux UVC driver and tools
Brought to you by:
pinchartl
|
From: michel X. <mx...@ma...> - 2006-02-06 21:11:00
|
Le Lundi 6 Février 2006 17:23, Laurent Pinchart a écrit : > Hi everybody, > > thanks to Logitech that sent a Quickcam Orbit MP, you can find a > preliminary pan/tilt support in the latest SVN release. Preliminary means > that pan/tilt works as expected, but the interface will change in the near > future as I rewrite the UVC controls handling code. > > As this is a brand new feature, you probably won't find any application > supporting it yet. For those of you who would like to play with pan/tilt, > here's the API. > > Pan/tilt is currently implemented with the following controls (refer to the > V4L2 API for details regarding how to use VIDIOC_S_CTRL) : > > - V4L2_CID_PANTILT_RELATIVE (V4L2_CID_PRIVATE_BASE+7) commands the pan/tilt > motion. The argument is a 4 bytes array formatted as a 32 bits number. > > Offset Field Size Value Description > --------------------------------------------------------------------------- >-- 0 wPanRelative 2 Signed Number Pan relative rotation > 2 wTiltRelative 2 SignedNumber Tilt relative rotation > > > - V4L2_CID_PANTILT_RESET (V4L2_CID_PRIVATE_BASE+8) resets pan/tilt to their > default value. The argument is a bit field formatted as a 32 bits number. > > Offset Field Size Value Description > --------------------------------------------------------------------------- >-- 0 bReset 1 Number D0: 0 No action > 1 Reset Pan position > D1: 0 No action > 1 Reset Tilt position > D2..D7: Not used (set to 0) > > The interface *will* change in a future release, but in the meantime you > can start implementing a motion-tracking algorithm :-) > > Laurent Pinchart > _______________________________________________ > Linux-uvc-devel mailing list > Lin...@li... > http://lists.berlios.de/mailman/listinfo/linux-uvc-devel Laurent, Just trying to set the feature in uvcview but with some problems so a question : is - V4L2_CID_PANTILT_RESET mean the two motors are reset to a middle value ? Hope there are electronic switch in the webcam at the moment the webcam switch to max min without middle point :)) regards -- Michel Xhaard http://mxhaard.free.fr |