comparison harelet.c @ 1:47e1b1039d7b

Automated Vimcurial commmit
author VilyaemKenyaz
date Fri, 08 Sep 2023 07:12:34 -0400
parents 36b2402700ad
children 1b0ebe86b44c
comparison
equal deleted inserted replaced
0:36b2402700ad 1:47e1b1039d7b
1 //CNC CAD program for milling machines 1 /*********************************************
2 * Description - Harelet is a CAD and compiler program for CNC milling machines
3 * Author - William King
4 * Date - Sep 08 2023
5 * *******************************************/
6
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include "basedfilelib.h"
10
11 #define DEEPNESS 5
12 #define MAXPOINT 4096
13
14
15 typedef struct{
16 unsigned int X,Y,down;
17 }point;
18
19 points[MAXPOINT];
20
21 unsigned int X,Y,step,down,numpoints;
22 char action;
23
24 /*********************************************
25 * Description - Renders the screen
26 * Author - William King
27 * Date - Sep 08 2023
28 * *******************************************/
29 void Render(){
30
31 for(int i = 0;i != MAXPOINT;i++){
32 DocTop();
33 //Move X
34 for(int j = 0;j != points[i].X;j++){
35
36 printf("");
37
38 }
39
40 //Move Y
41 for(int k = 0;k != points[i].Y;k++){
42
43 puts("");
44
45
46 }
47
48 puts("X");
49
50
51 }
52
53
54 }
55
56 /*********************************************
57 * Description - This function compiles instructions for CNC machines.
58 * Author - William King
59 * Date - Sep 08 2023
60 * *******************************************/
61 void Compile(){
62 char * filename;
63 int choice;
64
65 puts("Select your format\n1. RAW GCODE\n2. Superhare INO");
66 scanf("%d",&choice);
67
68
69 puts("Enter the filename");
70 scanf("%s",filename);
71
72 if(choice == 1){
73
74 }
75 else{
76
77
78 }
79
80 puts("Finished Compiling");
81
82 }
83
84
85 /*********************************************
86 * Description - Main function
87 * Author - William King
88 * Date - Sep 08 2023
89 * *******************************************/
90 void main(int argc, char* argv[]){
91 scanf("%c",&action);
92 switch(action){
93 case 'a': numpoints++;
94 break;
95 case:
96 break;
97 default:
98 break;
99 }
100 exit(0);
101 }