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

Shorten dshot pulse width #20379

Merged
merged 2 commits into from
Mar 30, 2022
Merged

Conversation

andyp1per
Copy link
Collaborator

@andyp1per andyp1per commented Mar 25, 2022

It is possible to construct valid dshot and neopixel packets using fewer DMA beats. This allows more accurate frequency resolution because a lower frequency is required and the prescaler needed to divide up the system clock frequency can be higher. In testing this allowed ArduCopter to successfully drive BlueJay 0.14 ESCs from an omnibusf4pro-bdshot whereas with the current code the frequency difference is too large and the BlueJay firmware does not recognize the dshot signal.

This shortens the dshot pulse to 8 ticks with 3/8 for 0 and 6/8 for 1
This shortens the neopixel pulse to 11 ticks with 4/11 for 0 and 9/11 for 1

This appears to allow BlueJay ESCs to work with ArduPilot which are quite timing sensitive

@andyp1per
Copy link
Collaborator Author

Flight tested on a 3" miniquad (Tekko32 ESCs). Arming tested on a 7" (T-Motor F55 Pro II). Neopixel tested on a 7". All worked fine.

@tridge tridge merged commit 23f8a00 into ArduPilot:master Mar 30, 2022
@rmackay9
Copy link
Contributor

@andyp1per, did you say that you wanted this included in 4.2 as well?

@andyp1per andyp1per deleted the pr-dshot-pulse-width branch March 30, 2022 07:14
@andyp1per
Copy link
Collaborator Author

@rmackay9 yes - but only once its had a few more people flying it

@tridge tridge added this to merged in Plane 4.2 Apr 28, 2022
@rmackay9 rmackay9 added this to Pending in Copter 4.2 Apr 28, 2022
@rmackay9 rmackay9 moved this from Pending to 4.2.0-rc2 in Copter 4.2 Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Copter 4.2
4.2.0-rc2
Development

Successfully merging this pull request may close these issues.

None yet

5 participants