pull/2573/head
Comma Device 5 years ago
parent 2a40e38b13
commit b9b6ed2d52
  1. 1
      selfdrive/camerad/cameras/camera_qcom2.cc

@ -1007,6 +1007,7 @@ static void set_camera_exposure(CameraState *s, float grey_frac) {
// TODO: get stats from sensor? // TODO: get stats from sensor?
float target_grey = 0.3 - (s->analog_gain / 105.0); float target_grey = 0.3 - (s->analog_gain / 105.0);
float exposure_factor = 1 + 30 * pow((target_grey - grey_frac), 3); float exposure_factor = 1 + 30 * pow((target_grey - grey_frac), 3);
exposure_factor = std::max(exposure_factor, 0.55f);
if (s->camera_num != 1) { if (s->camera_num != 1) {
s->ef_filtered = (1 - EF_LOWPASS_K) * s->ef_filtered + EF_LOWPASS_K * exposure_factor; s->ef_filtered = (1 - EF_LOWPASS_K) * s->ef_filtered + EF_LOWPASS_K * exposure_factor;

Loading…
Cancel
Save