From 524f3bf3998b025e559f502a23368ee3772c9593 Mon Sep 17 00:00:00 2001 From: Comma Device Date: Fri, 23 Feb 2024 20:03:32 -0600 Subject: [PATCH] 20hz --- system/camerad/cameras/camera_common.cc | 2 +- system/camerad/sensors/os04c10_registers.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/system/camerad/cameras/camera_common.cc b/system/camerad/cameras/camera_common.cc index 55c01c10d0..6b5b26b82b 100644 --- a/system/camerad/cameras/camera_common.cc +++ b/system/camerad/cameras/camera_common.cc @@ -40,7 +40,7 @@ public: } void queue(cl_command_queue q, VisionBuf cam_buff, cl_mem cam_buf_cl, cl_mem buf_cl, int width, int height, cl_event *debayer_event, bool todump) { - if (todump) { + if (todump && false) { uint8_t *cam_buf = (uint8_t *)cam_buff.addr; printf("queueing buf %zu \n", cam_buff.len); FILE *dump_raw_file = fopen("/tmp/os.raw", "wb"); diff --git a/system/camerad/sensors/os04c10_registers.h b/system/camerad/sensors/os04c10_registers.h index 9bc7963589..0efe8fee90 100644 --- a/system/camerad/sensors/os04c10_registers.h +++ b/system/camerad/sensors/os04c10_registers.h @@ -269,9 +269,9 @@ const struct i2c_random_wr_payload init_array_os04c10[] = { */ // HTS - {0x380c, 0x04}, {0x380d, 0x4c}, + {0x380c, 0x05}, {0x380d, 0xf8}, // VTS - {0x380e, 0x12}, {0x380f, 0x30}, + {0x380e, 0x0c}, {0x380f, 0xee}, {0x3820, 0xB0}, {0x3821, 0x00},