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

UAVCAN ESCs: add support for reversing motor direction #17497

Open
rmackay9 opened this issue May 20, 2021 · 5 comments
Open

UAVCAN ESCs: add support for reversing motor direction #17497

rmackay9 opened this issue May 20, 2021 · 5 comments

Comments

@rmackay9
Copy link
Contributor

We should add support for reversing the direction of UAVCAN ESCs. See to-do in the code here.

This was first raised as a request as part of the Rover-4.1.0 beta testing (discussion)

@jmachuca77
Copy link
Contributor

I have this working already.... code needs cleanup though
#15459

@iq-fred
Copy link

iq-fred commented Jul 19, 2023

This is a feature I am interested in adding. I added support for it on my own fork over here , and that seems to be working well enough during my testing with Rover, but I see now that there is an existing pull request as well.

I'm happy to work on pushing forward this feature, but I'm new to contributing to ArduPilot, so I had some questions:

  • Is the preferred approach for me to make a new pull request from my fork pulling in my changes, or should I try to update the existing PR? It has been a couple of years since there was any movement on it at this point, so I'm not sure if its worth resurrecting that or just starting fresh.
  • This question may be better off as its own issue, but I noticed on that previous PR and in the DShot documentation that Copter does not support reversible ESCs. I initially tested this in Rover which does support reversible ESCs, but I also tested in Copter out of curiosity and it did seem that it didn't really like negative throttles, the results were not as clean as on Rover. I would like to eventually be able to extend the use of reversible ESCs over DroneCAN to Copter. Can you give me any information on what would need to be done for Copter to support reverse thrust and reversible ESCs? Do you have any idea of what would happen if I tried to use a reversible ESC with DShot or DroneCAN in Copter's current state?

@rmackay9
Copy link
Contributor Author

Hi @iq-fred,

A new PR is probably best.

I think it would be best to first get the support for reversible DroneCAN motors in and the move onto a separate change to allow Copter to make use of them. So the first stage would be driver changes and testing to ensure that Rover and Plane is improved and Copter (and perhaps other vehicles) are simply not affected.

Thanks!

@iq-fred
Copy link

iq-fred commented Jul 20, 2023

That sounds good, I'll focus on getting a pull request ready for changes to help out Rover and Plane first. Thanks!

@iq-fred
Copy link

iq-fred commented Jul 24, 2023

I've added a pull request to try and address this issue: #24386

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

No branches or pull requests

4 participants