ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
10.75k stars 17.2k forks source link

DShot support missing on the BeagleBoard series PRUs #15210

Open Bas-moz opened 4 years ago

Bas-moz commented 4 years ago

IF YOU DON'T REMOVE THESE FOUR LINES, THEN YOUR REQUEST WILL BE CLOSED AUTOMATICALLY Questions and user problems should be directed at the forum (http://discuss.ardupilot.org) Please do a careful search before opening this, there are already a lot of feature requests If there was a previous discussion in the forum, link to it

Feature request

Is your feature request related to a problem? Please describe. The ESC I was using was having some initialization issues with the standard PWM implementation for the BeagleBone Blue PRU. I had to connect it after the board had been booted. This is a nuisance and DShot is nicer anyway :).

Describe the solution you'd like I'd prefer to use DShot, I have patches for implementing DShot output that work on the BeagleBone Blue PRU and should work on others in the family as well. I will upload them once I've tested them more thoroughly as they're in a pretty rough state right now. I'll do most of the work here, I'd just like to make sure the code is available to the community and possibly uplifted into the repo if it's of sufficient quality.

Describe alternatives you've considered As said, the alternative was to connect the ESC and the BeagleBone Blue after the board had started. I found this solution on the forums as I heard of some other people dealing with this, but this solution is much nicer!

Platform [x] All [ ] AntennaTracker [ ] Copter [ ] Plane [ ] Rover [ ] Submarine

Bas-moz commented 4 years ago

https://gist.github.com/Bas-moz/8d2f8f8d43a2109e178b5c4904551cc0 is a patch that works for me (and has had a couple of successful flights). Although it needs some cleaning up.