Gerber plots: Add initial G01 command to the header,

to ensure linear interpolation mode.
To avoid issues, an interpolation mode must be set before first D01 command.

From master branch.
This commit is contained in:
jean-pierre charras 2020-02-03 17:40:08 +01:00
parent dabd80fe4c
commit 3af1e75084
1 changed files with 4 additions and 0 deletions

View File

@ -217,6 +217,10 @@ bool GERBER_PLOTTER::StartPlot()
// Be sure the usual dark polarity is selected:
fputs( "%LPD*%\n", outputFile );
// Set initial interpolation mode: always G01 (linear):
fputs( "G01*\n", outputFile );
// Set aperture list starting point:
fputs( "G04 APERTURE LIST*\n", outputFile );
return true;