samuelpowell / Spinnaker.jl

A Julia interface to the FLIR/PointGrey Spinnaker SDK
MIT License
15 stars 7 forks source link

Optional suppression of clamp warning during set! #56

Closed IanButterworth closed 4 years ago

IanButterworth commented 4 years ago

Non-critical. It can be useful to set limits to values outside of the allowable range, to return the range that is allowed.

i.e.

> autoExposureLimits = autoexposure_limits!(cam, (0, 1e9))
┌ Warning: Requested value (1.0e9) is greater than maximum (42312.6220703125), value will be clamped.
└ @ Spinnaker ~/.julia/packages/Spinnaker/f22YA/src/Nodes.jl:129

This PR allows suppression of warning for that case:

> autoExposureLimits = autoexposure_limits!(cam, (0, 1e9), clampwarn = false)
IanButterworth commented 4 years ago

It'd be nice to merge this, if you agree @samuelpowell