← Back to team overview

kicad-developers team mailing list archive

HPGL

 

Hello,

some errors in common_plotHPGL_functions.cpp:

Line 481-481 in FlashPadCircle:

    fprintf( outputFile, "PA %.0f,%.0fd;CI %.0f;\n",
             pos_dev.x, pos_dev.y, rsize );

The "d" is wrong, generates a HPGL syntax error for circles.

Line 402-402 in Arc:

cmap.x = (int) ( centre.x + ( radius * cos( RAD2DEG( StAngle / 10.0 ) ) ) ); cmap.y = (int) ( centre.y - ( radius * sin( RAD2DEG( StAngle / 10.0 ) ) ) );

RAD2DEG is wrong, it must be DEG2RAD. The angle should be restricted to -180/+179 degrees.

Regards, Andreas


Follow ups