ArduPilot / ardupilot

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

UAVCAN ESCs: add support for reversing motor direction #17497

Open rmackay9 opened 3 years ago

rmackay9 commented 3 years ago

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 commented 3 years ago

I have this working already.... code needs cleanup though https://github.com/ArduPilot/ardupilot/pull/15459

iq-fred commented 1 year ago

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:

rmackay9 commented 1 year ago

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 commented 1 year ago

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

iq-fred commented 1 year ago

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