betaflight / config

Betaflight target definitions
GNU General Public License v3.0
24 stars 86 forks source link

Onboard ADC does not read voltage on BF4.5 on RushFPV AIO #492

Closed rsarwar87 closed 1 week ago

rsarwar87 commented 1 week ago

Describe the bug

Hi. I recently BT4.5 on both BetaFPV toothpeak and RushFPV AIO. The BetaFPV, the onboard ADC were able to detect the battery voltage and current draw correctly. However, even on factory settings, the rushFPV FC does not show any battery voltage and current; they are both zero. Rolling back to 4.4.3, I am able to recover the voltage and current readout, even on factory settings. I have taken a dump of both BF4.4 and 4.5, and I see no change in resource allocation. Onboard ADC is selected on both and resource allocations on both are:

resource ADC_BATT 1 C01 resource ADC_RSSI 1 NONE resource ADC_CURR 1 C03 resource ADC_EXT 1 NONE

I am able to use ESC sensor to get voltage, but the current readout is zero.

To Reproduce

Flash both BF4.4 and 4.5 on RushFPV AIO and only the former will have power readouts.

Expected behavior

onboard ADC should be able to read voltage settings.

Support ID

f0a09f52-b8ba-49e9-9d85-e5d7d50f8854

https://gist.github.com/rsarwar87/a0b926db62c505e498bbcc3c1f8a77b6

Flight controller

rushfpv-f7-45a-aio

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

rsarwar87 commented 1 week ago

aaa, posted too soon, a closer look at the diff between 4.4 (where onboard adc works) and my settings revealed that I am missing this settings:

dma ADC 3 1

it was None on 4.5. setting it to 1 seemed to have restored the functionality.

rsarwar87 commented 1 week ago

aaa, posted too soon, a closer look at the diff between 4.4 (where onboard adc works) and my settings revealed that I am missing this settings:

dma ADC 3 1

it was None on 4.5. setting it to 1 seemed to have restored the functionality.

haslinghuis commented 1 week ago

@rsarwar87 dma assignment was missing from the configuration.