comparison harelet.c @ 15:ef57eb9ec02b

Automated Vimcurial commmit
author VilyaemKenyaz
date Tue, 12 Sep 2023 08:41:30 -0400
parents 8b5ff478ec66
children 43dcb67b173d
comparison
equal deleted inserted replaced
14:8b5ff478ec66 15:ef57eb9ec02b
107 strcat(file,UNITS); 107 strcat(file,UNITS);
108 strcat(file,"G0 X0 Y0 Z0\n"); 108 strcat(file,"G0 X0 Y0 Z0\n");
109 //Meat of instructions 109 //Meat of instructions
110 for(int i = 0;i != numpoints;i++){ 110 for(int i = 0;i != numpoints;i++){
111 //Compose 111 //Compose
112 char instruction[32]; 112 char instruction[64];
113 strcat(instruction,"G0 X "); 113 strcat(instruction,"G0 X ");
114 //Convert X to string 114 //Convert X to string
115 sprintf(buffer,"%d",points[i].X); 115 sprintf(buffer,"%d",points[i].X);
116 strcat(instruction,buffer); 116 strcat(instruction,buffer);
117 strcat(instruction," Y "); 117 strcat(instruction," Y ");
139 139
140 } 140 }
141 141
142 puts("Finished Compiling GCODE"); 142 puts("Finished Compiling GCODE");
143 getchar(); 143 getchar();
144 scanf("Check above for problems");
144 145
145 } 146 }
146 147
147 148
148 /********************************************* 149 /*********************************************