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.
This commit is contained in:
jean-pierre charras 2020-02-03 17:40:08 +01:00
parent 89dfee9ebe
commit 465ffff162
1 changed files with 4 additions and 0 deletions

View File

@ -234,6 +234,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;