changeset 1:47e1b1039d7b

Automated Vimcurial commmit
author VilyaemKenyaz
date Fri, 08 Sep 2023 07:12:34 -0400
parents 36b2402700ad
children 1b0ebe86b44c
files .harelet.c.swp README.md harelet.c
diffstat 3 files changed, 107 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
Binary file .harelet.c.swp has changed
--- a/README.md	Fri Sep 08 06:45:03 2023 -0400
+++ b/README.md	Fri Sep 08 07:12:34 2023 -0400
@@ -1,2 +1,7 @@
 #harelet 
-CNC CAD program for milling machines
\ No newline at end of file
+CNC CAD program for milling machines
+You may export RAW gcode or Superhare machines
+To configure some settings edit the definitions in 
+the source code and recompile easily by executing the 
+compile script. By default the units are imperial.
+
--- a/harelet.c	Fri Sep 08 06:45:03 2023 -0400
+++ b/harelet.c	Fri Sep 08 07:12:34 2023 -0400
@@ -1,1 +1,101 @@
-//CNC CAD program for milling machines
+/*********************************************
+ * Description - Harelet is a CAD and compiler program for CNC milling machines
+ * Author - William King
+ * Date - Sep 08 2023
+ * *******************************************/
+
+#include <stdio.h> 
+#include <stdlib.h>
+#include "basedfilelib.h"
+
+#define DEEPNESS 5
+#define MAXPOINT 4096
+
+
+typedef struct{
+	unsigned int X,Y,down;
+}point;
+
+points[MAXPOINT];
+
+unsigned int X,Y,step,down,numpoints;
+char action;
+
+/*********************************************
+ * Description - Renders the screen
+ * Author - William King
+ * Date - Sep 08 2023
+ * *******************************************/
+void Render(){
+
+	for(int i = 0;i != MAXPOINT;i++){
+		DocTop();
+		//Move X
+		for(int j = 0;j != points[i].X;j++){
+
+			printf("");
+
+		}
+
+		//Move Y
+		for(int k = 0;k != points[i].Y;k++){
+
+			puts("");
+
+
+		}
+
+		puts("X");
+
+
+	}
+
+
+}
+
+/*********************************************
+ * Description - This function compiles instructions for CNC machines.
+ * Author - William King
+ * Date - Sep 08 2023
+ * *******************************************/
+void Compile(){
+	char * filename;
+	int choice;
+
+	puts("Select your format\n1. RAW GCODE\n2. Superhare INO");
+	scanf("%d",&choice);
+
+
+	puts("Enter the filename");
+	scanf("%s",filename);
+
+	if(choice == 1){
+
+	}
+	else{
+
+
+	}
+
+	puts("Finished Compiling");
+
+}
+
+
+/*********************************************
+ * Description - Main function
+ * Author - William King
+ * Date - Sep 08 2023
+ * *******************************************/
+void main(int argc, char* argv[]){
+	scanf("%c",&action);
+	switch(action){
+		case 'a':		numpoints++;
+					break;
+case: 
+					break;
+default:
+					break;
+	}
+	exit(0);
+}