results in the torch being off. By clearing the cachedZoomParameters when calling updateConfiguration(), this piece of code results in the torch turned on (as intended).
Thanks for finding this issue @garnele007 ! Actually I realised we don't need to cache the zoom parameters. We should directly use the camera.parameters.
The cachedZoomParameters don't get invalidated when updating the configuration. That's why running this code:
results in the torch being off. By clearing the cachedZoomParameters when calling
updateConfiguration()
, this piece of code results in the torch turned on (as intended).