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-07 14:28:52
|
Le Mardi 7 Février 2006 13:38, Laurent Pinchart a écrit :
> > Feb 7 13:16:26 linux kernel: usbcore: deregistering driver usbvideo
> > Feb 7 13:16:33 linux kernel: uvcvideo: Found UVC 1.00 device <unnamed>
> > (046d:08c2)
> > Feb 7 13:16:33 linux kernel: usbcore: registered new driver usbvideo
> > Feb 7 13:16:33 linux kernel: USB Video Class driver (v0.1.0)
> > Feb 7 13:16:57 linux kernel: uvcvideo: Failed to query (132) UVC control
> > 1 (unit 9) : 1.
> > Feb 7 13:16:57 linux syslog-ng[3019]: STATS: dropped 0
> > Feb 7 13:17:00 linux kernel: uvcvideo: Failed to query (132) UVC control
> > 1 (unit 9) : 1.
>
> Are you sure you're not having trouble with querying
> V4L2_CID_PANTILT_RELATIVE ? The failure in the kernel log seems to indicate
> that you're querying V4L2_CID_PANTILT_RELATIVE twice.
>
> Anyway, the following patch might help.
>
> Laurent Pinchart
>
> Index: uvcvideo.c
> ===================================================================
> --- uvcvideo.c (revision 18)
> +++ uvcvideo.c (working copy)
> @@ -477,8 +477,7 @@
> .type = V4L2_CTRL_TYPE_INTEGER,
> .unit = UVC_GUID_LOGITECH_MOTOR,
> .flags = UVC_CONTROL_SET_CUR | UVC_CONTROL_GET_MIN
> - | UVC_CONTROL_GET_MAX | UVC_CONTROL_GET_RES
> - | UVC_CONTROL_GET_DEF,
> + | UVC_CONTROL_GET_MAX |
> UVC_CONTROL_GET_DEF, },
> {
> .v4l2 = V4L2_CID_PANTILT_RESET,
> _______________________________________________
> Linux-uvc-devel mailing list
> Lin...@li...
> http://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Laurent,
Sure a lot of trouble in my understanding.
maybe i have ask twice to be sure to get one in the log :)
The pantilt reset now work fine , but the pan tilt relative, not really like i
need :)
as i did not really understand, how the signed value are in the 4 char array,
i have try to set up one union like that :
union pantilt {
struct {
short pan;
short tilt;
} s16;
int value;
} pantilt;
so i expect s16.pan reffer to the signed value of pan and
s16.tilt to the tilt value.
as a result the sign of relative goes right, tilt and pan is not mixed and i
can scan min to max or max to min , but difficukt to stop the scan between :(
I will try your patch soon
regards
--
Michel Xhaard
http://mxhaard.free.fr
|