EFeru / hoverboard-firmware-hack-FOC

With Field Oriented Control (FOC)
GNU General Public License v3.0
1.15k stars 953 forks source link

4wd rover - PWM input #292

Closed JAR4x4 closed 2 years ago

JAR4x4 commented 2 years ago

Hi, I'm building a rover with an additional aoutopilot. I need to control the four wheels individually as the autopilot will take care of the tank style skid steering.

Is individual PWM control supported by the firmware?

Alex

Candas1 commented 2 years ago

Hi,

It's available in the last update on my fork, I am still testing but will commit soon. Maybe you can help testing it. You have to use TANK_STEERING parameter. Why not using USART instead of PWM ? PWM is really sensitive to noise

JAR4x4 commented 2 years ago

@Candas1 , thanks for your reply!

I will test your fork in the weekend if i manage to assemble my test platform.

The ardupilot autopilot outputs PWM for each channel. I dont know how I can implement USART...

Candas1 commented 2 years ago

Is it motor pwm or servo pwm?

JAR4x4 commented 2 years ago

RC servo / ESC PWM

Candas1 commented 2 years ago

👍

Candas1 commented 2 years ago

Hi, it's now also available in this repository