When creating parameters from the features read from the camera, all float values are set to their maximum instead of the current values.
The maximum_value and minimum_value in this line should be swapped.
|
initial_value = std::max(maximum_value, std::min(initial_value, minimum_value)); |