vedderb / bldc

The VESC motor control firmware
2.2k stars 1.36k forks source link

Position contol in ppm mode #205

Closed Teslafly closed 2 years ago

Teslafly commented 4 years ago

Couple Battlebots friends are asking for position control based on a ppm input.

Going to take a stab at implementing this.

ppm mapping would map pulse width to rotation angle.

Teslafly commented 4 years ago

turns out they want the encoder not to be syncronous to the motor, but after a gearbox. so this is more of a new "servo" app.

I think that you are really going to need the encoder for smooth operation of the motor, so likely the encoder input will need to be an analog input unless a second encoder working over the throttle/rx/tx/etc pins can be done easily.

josephduchesne commented 4 years ago

I'm also interested 👍