Linear Interpolation for CNC or Graphics

Warning message

The Propeller Object Exchange system is decommissioned and replaced with a GitHub repository to house the same existing and future Propeller objects. As of 12/5/2019, this site is read-only. You can continue to browse and download objects from here for a limited time; however, please begin using the Parallax Propeller repository for future reference.
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: created: 2013-04-10 | updated: 2013-04-10

 

This code generates a linear interpolation motion profile as intended for a home-brew CNC machine. (CNC Codes G00 & G01)

I use Bresenham's algorithm calculates X,Y & Z steps to accurately approximate a straight line between two points in 3D Space.

I have not implemented a controlling feed rate so it is just a starting point.

 

Original File Upload
AttachmentSize
Package icon Int_Line.zip16.06 KB