gregkrsak / gcode

This project outputs G-code that is used to control a 4-axis hot wire cutter, employed to cut a wing / airfoil from a physical block of foam. Effectively, it is a slicer for a particular arrangement of raw-coordinate data files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DIY Airfoils you say? Put numbers in, get G-code out!

C CMake

This project outputs G-code that is used to control a 4-axis hot wire cutter, employed to cut a wing / airfoil from a physical block of foam. Effectively, it is a slicer for a particular arrangement of raw-coordinate data files.

I wrote this for a family member who was, at the time, working in airfoil design. The code is designed to be cross-platform (Windows, OS X, and Linux).

Quick Rundown

Eight input files are provided to the program; each input file is formatted in the following manner:

   <integer:total_values_to_follow>
   <float:value1>
   <float:value2>
   <...>
   <float:valueN>

So that an input file may look like:

   3
   -1.000000
   0.989000
   1.200000

Where "3" is the number of values to follow, with the three following values on separate lines.

Each input file is named to correspond with a technical section of the wing / airfoil (Root & Tip; Upper & Lower halves; X & Y coordinates). The input file names are, at this time, constant and should not be changed. In other words, all of the input files must be present and reasonably formatted for the program to function.

Input files:

"ROOTUPPERX", "ROOTUPPERY", "ROOTLOWERX", "ROOTLOWERY", "TIPUPPERX", "TIPUPPERY", "TIPLOWERX", "TIPLOWERY"

Output file:

"OUTPUT.txt"

About

This project outputs G-code that is used to control a 4-axis hot wire cutter, employed to cut a wing / airfoil from a physical block of foam. Effectively, it is a slicer for a particular arrangement of raw-coordinate data files.

License:GNU General Public License v2.0


Languages

Language:C 99.6%Language:CMake 0.4%