makerbot / ReplicatorG

An open-source gcode interpreter for driving RepRaps, Makerbots, and other similar CNC beasties
http://replicat.org
GNU General Public License v2.0
406 stars 226 forks source link

G3/G2 center doesn't seem to be computed correctly #57

Closed RickKimball closed 14 years ago

RickKimball commented 14 years ago

In src/replicatorg/app/GCodeParser.java when you pass an "I" and "J" value, the calculation for the center point seems to be wrong: center.x = current.x + iVal; center.y = current.y + jVal; should it be this? center.x = iVal; center.y = jVal;

makerbot commented 14 years ago

Hi Rick;

There's no "right" or "wrong" interpretation here; as far as I can tell different gcode interpreters handle the i/j parameters differently. The prevailing interpretation appears to be that i/j are relative to the start point, but apparently there are machines that use absolute points instead.

The real problem is that gcode isn't actually a standard. :/