Skip to content

Dshot on iomcu #23974

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

Merged
merged 43 commits into from
Aug 14, 2023
Merged

Dshot on iomcu #23974

merged 43 commits into from
Aug 14, 2023

Conversation

andyp1per
Copy link
Contributor

@andyp1per andyp1per commented Jun 5, 2023

Based on top of #21569

Working 8 channel updates. Quite a lot more hairy than the previous PR with the new eventing model.

Tested on a 5" quad on channels 1-4 with ds300 - constant memory and no errors:
image

Did a full autotune on the quad without issue

@andyp1per andyp1per added the WIP label Jun 5, 2023
@andyp1per andyp1per force-pushed the pr-dshot-iomcu-8-channels branch from 7685229 to 2756d85 Compare June 8, 2023 15:49
@andyp1per andyp1per force-pushed the pr-dshot-iomcu-8-channels branch from 2756d85 to 42efc53 Compare June 8, 2023 18:17
@andyp1per andyp1per changed the title Dshot on all 8 iomcu channels Support dshot on all 8 iomcu channels Jun 8, 2023
@andyp1per andyp1per force-pushed the pr-dshot-iomcu-8-channels branch from 139d2c9 to 82b573e Compare June 9, 2023 21:11
@andyp1per
Copy link
Contributor Author

Locking mode 2 is much more efficient and reliable

@andyp1per andyp1per force-pushed the pr-dshot-iomcu-8-channels branch 2 times, most recently from b3f472a to 4761d6e Compare June 11, 2023 20:55
@rmackay9
Copy link
Contributor

delayed until next week's dev call.

Copy link
Contributor

@tridge tridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets change to 1MHz clock in both variants
I will test on my quadplane to the extent I can
I will also try to encourage testers on facebook
find a non-ST F1 board (maybe Holybro or CUAV 6X? one of mine is non-ST), make sure it works

@andyp1per andyp1per force-pushed the pr-dshot-iomcu-8-channels branch 3 times, most recently from e337c6f to 614379a Compare June 23, 2023 13:11
@andyp1per
Copy link
Contributor Author

1Mhz cannot be done on f103 without losing PPM. So as long as we are confident we have got all the f103 boards we can make this change. Not otherwise.

@andyp1per
Copy link
Contributor Author

Tested on Holybro Pixhawk6X

@andyp1per andyp1per requested a review from tridge June 23, 2023 13:16
@andyp1per andyp1per force-pushed the pr-dshot-iomcu-8-channels branch 2 times, most recently from 8f11ff8 to e87a71d Compare June 23, 2023 14:13
…ner for iomcu

add support for undef of STM32 lines and DMA_NOMAP
add support for F103 running at 24Mhz
add f103 variants of iofirmware
reduce memory usage in iomcu for new model
correct pwm output reporting
split iofirmware into config + mcu to allow f103 definition
don't enable non-existant timers on F103
correctly update outmode modes when requested
get ARM CPUID and display in startup banner
ensure correct rc input timing on 1Khz iofirmware
update for improved latency and mode setting
add cpuid/mcuid reporting
correct rc input timing on regular iofirmware
update to support increased system clock on f103 and dshot600
update to support reversed and reversible masks
@andyp1per andyp1per force-pushed the pr-dshot-iomcu-8-channels branch from 2a85a61 to dc2670c Compare August 14, 2023 07:48
@andyp1per andyp1per requested a review from tridge August 14, 2023 07:48
@tridge tridge added MergeOnCIPass WikiNeeded needs wiki update labels Aug 14, 2023
@andyp1per
Copy link
Contributor Author

Did a quick retest on a cube black with the review changes 👍

@tridge tridge merged commit 9fb2341 into ArduPilot:master Aug 14, 2023
@andyp1per andyp1per deleted the pr-dshot-iomcu-8-channels branch August 14, 2023 20:57
@andrefreitas97
Copy link

Is this already implemented on 4.4.0 stable?

@andyp1per
Copy link
Contributor Author

Is this already implemented on 4.4.0 stable?

No, 4.5 only

@andrefreitas97
Copy link

Is this already implemented on 4.4.0 stable?

No, 4.5 only

Oh ok! That should take some months right? :(

@rmackay9 rmackay9 mentioned this pull request Mar 26, 2024
92 tasks
@rmackay9
Copy link
Contributor

Just for the record, it looks like this PR has broken NeoPixel support on CubeOrangePlus in master and Copter-4.5.0. This is a big PR so I'm not too confident that I could get to the bottom of the issue.

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

Successfully merging this pull request may close these issues.

6 participants