PoC wired mode over UVC, add logs over websockets, needs cleanup

This commit is contained in:
Lorow
2024-10-19 14:24:50 +02:00
parent b578bf3d2c
commit 23bb930255
16 changed files with 548 additions and 131 deletions

View File

@@ -51,40 +51,6 @@ void CameraManager::setupCameraPinout()
#if ETVR_EYE_TRACKER_USB_API
xclk_freq_hz = USB_DEFAULT_XCLK_FREQ_HZ;
#endif
// config = {
// .pin_pwdn = CAM_PIN_PWDN,
// .pin_reset = CAM_PIN_RESET,
// .pin_xclk = CAM_PIN_XCLK,
// .pin_sccb_sda = CAM_PIN_SIOD,
// .pin_sccb_scl = CAM_PIN_SIOC,
// .pin_d7 = CAM_PIN_D7,
// .pin_d6 = CAM_PIN_D6,
// .pin_d5 = CAM_PIN_D5,
// .pin_d4 = CAM_PIN_D4,
// .pin_d3 = CAM_PIN_D3,
// .pin_d2 = CAM_PIN_D2,
// .pin_d1 = CAM_PIN_D1,
// .pin_d0 = CAM_PIN_D0,
// .pin_vsync = CAM_PIN_VSYNC,
// .pin_href = CAM_PIN_HREF,
// .pin_pclk = CAM_PIN_PCLK,
// // XCLK 20MHz or 10MHz for OV2640 double FPS (Experimental)
// .xclk_freq_hz = 20000000,
// .ledc_timer = LEDC_TIMER_0,
// .ledc_channel = LEDC_CHANNEL_0,
// .pixel_format = PIXFORMAT_RGB565, // YUV422,GRAYSCALE,RGB565,JPEG
// .frame_size = FRAMESIZE_QVGA, // QQVGA-UXGA, For ESP32, do not use sizes above QVGA when not JPEG. The performance of the ESP32-S series has improved a lot, but JPEG mode always gives better frame rates.
// .jpeg_quality = 12, // 0-63, for OV series camera sensors, lower number means higher quality
// .fb_count = 1, // When jpeg mode is used, if fb_count more than one, the driver will work in continuous mode.
// .fb_location = CAMERA_FB_IN_PSRAM,
// .grab_mode = CAMERA_GRAB_WHEN_EMPTY,
// };
// todo fix pinout in sdkconfig lmao
config = {
.pin_pwdn = -1, // CAM_PIN_PWDN,
@@ -118,37 +84,6 @@ void CameraManager::setupCameraPinout()
.fb_count = 2, // 3 // When jpeg mode is used, if fb_count more than one, the driver will work in continuous mode.
.fb_location = CAMERA_FB_IN_PSRAM, // maybe it cannot put them fully in psram?
.grab_mode = CAMERA_GRAB_WHEN_EMPTY, // CAMERA_GRAB_LATEST
// .pin_pwdn = CONFIG_PWDN_GPIO_NUM,
// .pin_reset = CONFIG_RESET_GPIO_NUM,
// .pin_xclk = CONFIG_XCLK_GPIO_NUM,
// .pin_sccb_sda = CONFIG_SIOD_GPIO_NUM,
// .pin_sccb_scl = CONFIG_SIOC_GPIO_NUM,
// .pin_d7 = CONFIG_Y2_GPIO_NUM,
// .pin_d6 = CONFIG_Y3_GPIO_NUM,
// .pin_d5 = CONFIG_Y4_GPIO_NUM,
// .pin_d4 = CONFIG_Y5_GPIO_NUM,
// .pin_d3 = CONFIG_Y6_GPIO_NUM,
// .pin_d2 = CONFIG_Y7_GPIO_NUM,
// .pin_d1 = CONFIG_Y8_GPIO_NUM,
// .pin_d0 = CONFIG_Y9_GPIO_NUM,
// .pin_vsync = CONFIG_VSYNC_GPIO_NUM,
// .pin_href = CONFIG_HREF_GPIO_NUM,
// .pin_pclk = CONFIG_PCLK_GPIO_NUM,
// .xclk_freq_hz = xclk_freq_hz,
// .ledc_timer = LEDC_TIMER_0,
// .ledc_channel = LEDC_CHANNEL_0,
// .pixel_format = PIXFORMAT_JPEG,
// .frame_size = FRAMESIZE_240X240,
// .jpeg_quality = 7,
// .fb_count = 3,
// .fb_location = CAMERA_FB_IN_PSRAM,
// .grab_mode = CAMERA_GRAB_LATEST,
};
}