camerad: update os04 blc settings (#34065)

* not 64

* capped

---------

Co-authored-by: Comma Device <device@comma.ai>
This commit is contained in:
ZwX1616 2024-11-19 16:09:26 -08:00 committed by GitHub
parent bf21e10d81
commit c9a3a1a018
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@ OS04C10::OS04C10() {
exposure_time_max = 2352;
analog_gain_min_idx = 0x0;
analog_gain_rec_idx = 0x0; // 1x
analog_gain_max_idx = 0x36;
analog_gain_max_idx = 0x28;
analog_gain_cost_delta = -1;
analog_gain_cost_low = 0.4;
analog_gain_cost_high = 6.4;
@ -63,7 +63,7 @@ OS04C10::OS04C10() {
max_ev = exposure_time_max * dc_gain_factor * sensor_analog_gains[analog_gain_max_idx];
target_grey_factor = 0.01;
black_level = 64;
black_level = 48;
color_correct_matrix = {
0x000000c2, 0x00000fe0, 0x00000fde,
0x00000fa7, 0x000000d9, 0x00001000,

View File

@ -4,9 +4,9 @@
#define BIT_DEPTH 12
#define PV_MAX10 1023
#define PV_MAX12 4096
#define PV_MAX12 4095
#define PV_MAX16 65536 // gamma curve is calibrated to 16bit
#define BLACK_LVL 64
#define BLACK_LVL 48
#define VIGNETTE_RSZ 2.2545f
float combine_dual_pvs(float lv, float sv, int expo_time) {

View File

@ -291,7 +291,7 @@ const struct i2c_random_wr_payload init_array_os04c10[] = {
{0x3cae, 0x00},
{0x4000, 0xf3},
{0x4001, 0x60},
{0x4003, 0x80},
{0x4003, 0x40},
{0x4300, 0xff},
{0x4302, 0x0f},
{0x4305, 0x83},