hzeller / rpt2paste

Convert KiCAD rpt files to G-Code to dispense solder paste
24 stars 6 forks source link

integrate board-relative homing #1

Open jerkey opened 10 years ago

jerkey commented 10 years ago

a kicad board may be anywhere in the coordinate system, so the absolute positions of the board and its parts might not correspond to a corner or anything at all. rpt2paste should use the board's origin as a relative origin for all output generation. (giving the rpt2paste user an option to specify a board origin is a seperate issue, which will allow the user to auto-home her machine and still paste a properly placed board)

parsing the first paragraph of the .RPT file provides the boards' relative origin: $BOARD unit INCH upper_left_corner 1.851381 0.749606 lower_right_corner 6.375417 3.685400 $EndBOARD