Hivemapper / hdc_firmware

The firmware that runs the OpenDashcam
https://github.com/hivemapper/odc
Apache License 2.0
0 stars 3 forks source link

USB Stick Writing Fix (Configurable FPS) #193

Closed jayalberts closed 6 months ago

jayalberts commented 9 months ago

Evan to add suggestion

Current Issue

Acceptance Criteria

Additional Notes

evanmoss commented 9 months ago

@HariHive Here is a simple approach to reduce write throughput to USB by 50%

bool skippedLastFrameForUSB = false;

if (!skippedLastFrameForUSB) {
  skippedLastFrameForUSB = true;
} else {
  // do write to usb
  // ...

  // reset  marker
  skippedLastFrameForUSB = false;
}
jayalberts commented 8 months ago

got build file yesterday from Alexei, started testing.

try to do USB 5 FPS and hivemapping 10 FPS? See if it will work.

jayalberts commented 8 months ago

dropping every other image didn't help with FPS (~2). Tried every 5th and FPS was closer to 10.

Writing speed of USB matter. Validate with JT's USB.

Next step: more testing and validate with metrics.

jayalberts commented 7 months ago

there was big regression with this so it got pulled out for 3.7. We will revisit for next iteration. Requires another round of validation.

jayalberts commented 7 months ago

masaya has test written for this

jayalberts commented 6 months ago

archive this as duplicate of https://github.com/Hivemapper/camera_bridge/issues/9