Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend from 4 ADC channels to 6 (Matek H743 and others) #9180

Merged
merged 2 commits into from
Aug 6, 2023

Conversation

sensei-hacker
Copy link
Collaborator

Some newer boards, such as the Matek H743, have 6 adc channels. ADC 6 is marked as the external current sensor pin on the Matek. This PR expands the current support for 4 ADC to 6. I made no changes to how it works, just added adc5 and adc6 where we already had adc1, 2, 3, and 4.

Tested by Ichi on the INAV Discord.

@DzikuVx DzikuVx added this to the 7.0 milestone Jul 18, 2023
@ichiemo
Copy link

ichiemo commented Jul 18, 2023

ichi from the INAV Discord here and I tested this on my Matek H743 Wing V3 FC with the Matek Hall Current sensor 150A wired to the CU2 pad of the FC. This worked as expected and allowed the remapping of the current_adc_channel from channel 2 to channel 6 to be able to use the external/second current sensor pad on the FC.

This should also allow remapping the vbat_adc_channel to channel 5 to be able to use the external/second voltage sensor pad on the FC as well.

@mmosca mmosca merged commit db816ab into iNavFlight:master Aug 6, 2023
@DzikuVx DzikuVx mentioned this pull request Feb 2, 2024
@Sdhall102
Copy link

Vbat_adc_channel assignment works, but scaling is not working after reassignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants