betaflight / betaflight

Open Source Flight Controller Firmware
GNU General Public License v3.0
8.62k stars 3.04k forks source link

Problem with Blackbox on CineApe25 #13770

Closed Denethor85 closed 3 months ago

Denethor85 commented 4 months ago

Describe the bug

The moment I go to read the files created by BlackBox into my DarwinFPV CineApe25 I find only partial data and holes. I have tried various SD Cards but this does not seem to solve it.

Recording device: SD Card Recording speed: 1/2 (2khz) Betaflight 4.5

To Reproduce

Record a blackbox and analyze it.

Expected behavior

Blackbox complete and usable

Support ID

Id: "57e43d7a-9e75-4c4e-85c5-809a66a5f772"

Flight controller

DARWINF411

Other components

No response

How are the different components wired up (including port information)

No response

Add any other context about the problem that you think might be relevant here

No response

Denethor85 commented 4 months ago

Immagine

haslinghuis commented 4 months ago

DARWINF411 is sharing SPI between OSD and SDCard. This impedes writing to flash while updating OSD.

Denethor85 commented 4 months ago

Thank you very much for the reply, does this happen even if I am not using the OSD chip as I am using digital Walksnail on it? If it only happens using analog osd is there any way to bypass it and take advantage of the black box resources?

P.s. I seem to remember this not happening to me with Betaflight 4.3 and 4.4 though or am I wrong?

Thank you very much

haslinghuis commented 4 months ago

Try (only change one - and test)

It might work with 4.3 as the scheduler was less strict. With WS the MAX7456 is not used.

Denethor85 commented 4 months ago

Thank you very much I will do the tests you requested and update you on the results as soon as I can.... In the meantime, I will take the opportunity to ask you:

Try (only change one - and test)

  • 4.5.1-dev

What change has been made to 4.5.1-dev? How high can I set the blackbox frequency to? Currently it only seems to work with 250hz which is the lowest frequency that can be set

  • lowering PID rate to 4K.

This parameter is already set to 4K

  • Enabling dshot_bitbang.

I will try enabling it and see if there is any difference.

It might work with 4.3 as the scheduler was less strict.

With WS the MAX7456 is not used. So if I understand correctly not being used the MAX7456 chip doesn't change anything at the blackbox if I have digital OSD on or off right?

Thanks

P.s. I noticed that compared to 4.3 and the dump that darwinfpv provides in 4.5 the i2c1_clockspeed_khz parameter changes from 800 to the current 400. Can this parameter affect anything regarding blackbox? (Although I doubt it)....

haslinghuis commented 4 months ago

I2C is not involved here. 4.5.1 contains https://github.com/betaflight/betaflight/pull/13713 optimizing OSD and a fix for motor configuration https://github.com/betaflight/betaflight/pull/13634

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within a week.

Denethor85 commented 3 months ago

I2C is not involved here. 4.5.1 contains https://github.com/betaflight/betaflight/pull/13713 optimizing OSD and a fix for motor configuration https://github.com/betaflight/betaflight/pull/13634

Sorry for the delay in replying but I've been busy and haven't added any more news about the tests I've done... I hope this can be of help to people who have the same problem.Even though I haven't updated to Betaflight 4.5.1 yet, enabling Dshot BitBang worked for me as per your advice. After making that modification I was finally able to start using the Blackbox normally up to 1/2 4khz.

Thanks

haslinghuis commented 3 months ago

Thanks for the update.