makenai / node-uvc-control

Control UVC compliant USB webcams from node
80 stars 28 forks source link

Example : dwExposureTimeAbsolute is not working #60

Open cho45 opened 5 years ago

cho45 commented 5 years ago

https://github.com/makenai/node-uvc-control/blob/master/lib/controls.js#L92

Because the Type of EXPOSURE_TIME_ABSOLUTE_CONTROL(CT_EXPOSURE_TIME_ABSOLUTE_CONTROL = 0x04 ) is PU for some reason, if you try to change CT_EXPOSURE_TIME_ABSOLUTE_CONTROL, the gain of PU (PU_GAIN_CONTROL = 0x04) will be changed.

AS-IS: Gain of PU is changed. TO-BE: Exposure_Time_Absolute is changed.

joelpurra commented 4 years ago

I can confirm that it should be CT, by looking at 4.2.2.1.4 Exposure Time (Absolute) Control (page 83 or 98) in UVC 1.5 Class specification.pdf.

See also Table A- 12 Camera Terminal Control Selectors (page 159 or 174).

joelpurra commented 4 years ago

See #64.