Gerber plotter: modify G02 and G03 commands.
They are now in a specific block and no longer combined with an other command. (combining these commands with an other command (D01 or D02) is deprecated) Fixes #3677 | https://gitlab.com/kicad/code/kicad/issues/3677
This commit is contained in:
parent
879ec7d8e6
commit
24cd80ef3e
|
@ -529,9 +529,9 @@ void GERBER_PLOTTER::Arc( const wxPoint& aCenter, double aStAngle, double aEndAn
|
||||||
fprintf( outputFile, "G75*\n" ); // Multiquadrant (360 degrees) mode
|
fprintf( outputFile, "G75*\n" ); // Multiquadrant (360 degrees) mode
|
||||||
|
|
||||||
if( aStAngle < aEndAngle )
|
if( aStAngle < aEndAngle )
|
||||||
fprintf( outputFile, "G03" );
|
fprintf( outputFile, "G03*\n" ); // Active circular interpolation, CCW
|
||||||
else
|
else
|
||||||
fprintf( outputFile, "G02" );
|
fprintf( outputFile, "G02*\n" ); // Active circular interpolation, CW
|
||||||
|
|
||||||
fprintf( outputFile, "X%dY%dI%dJ%dD01*\n",
|
fprintf( outputFile, "X%dY%dI%dJ%dD01*\n",
|
||||||
KiROUND( devEnd.x ), KiROUND( devEnd.y ),
|
KiROUND( devEnd.x ), KiROUND( devEnd.y ),
|
||||||
|
|
Loading…
Reference in New Issue