vedderb / vesc_express

The source code for the VESC Express
GNU General Public License v3.0
39 stars 31 forks source link

Improve drawing of rounded arc ends #24

Closed r3n33 closed 6 months ago

r3n33 commented 6 months ago

When drawing arcs with rounded ends, sometimes the rounded end would be off by a pixel.

Slightly adjusted the logic in the arc drawing extension and used floor when computing a floating point value for a pixel location.

r3n33 commented 6 months ago

I'd be happy to perform any test that may be desired.

vedderb commented 6 months ago

Nice work, that looks like a tricky problem to fix!

I'm not too familiar with the arc-function, it was invented by @laxsjo (maybe he can have a look).