This commit is contained in:
Anders Sandstrom
2022-01-19 20:06:00 +01:00
parent 3f9eb4ea85
commit 972f29ec19
4 changed files with 25532 additions and 3726 deletions

View File

@@ -177,6 +177,8 @@ int grblConstruct(char *configStr)
// test some commands
printf("Test command:G0X10Y100\n");
ecmc_write_command_serial("G0X10Y100\n");
printf("Test command:G1X20Y200F20\n");
ecmc_write_command_serial("G1X20Y200F20\n");
//printf("Test command:$J=X10.0Y-1.5\n");
//ecmc_write_command_serial("$J=X10.0Y-1.5\0");
//printf("Test command:#\n");

View File

@@ -229,7 +229,10 @@ void *ecmc_dummy_thread(void *ptr) {
while (stepperInterruptEnable) {
for(int i=0; i < 30; i++) {
ecmc_grbl_main_rt_thread();
if(!stepperInterruptEnable) {
break;
}
ecmc_grbl_main_rt_thread();
}
printf("%s:%s:%d Positions(x,y,z)=%d,%d,%d..\n",__FILE__,__FUNCTION__,__LINE__,sys_position[X_AXIS], sys_position[Y_AXIS],sys_position[Z_AXIS] );
delay_ms(1);
@@ -439,6 +442,7 @@ void ecmc_grbl_main_rt_thread()
} else {
// Segment buffer empty. Shutdown.
printf("Segment buffer empty!!!!!!!!!!!!!!!!!!!!!");
st_go_idle();
#ifdef VARIABLE_SPINDLE
// Ensure pwm is set properly upon completion of rate-controlled motion.

View File

@@ -23,7 +23,7 @@
#define stepper_h
#ifndef SEGMENT_BUFFER_SIZE
#define SEGMENT_BUFFER_SIZE 6
#define SEGMENT_BUFFER_SIZE 32
#endif
// Initialize and setup the stepper motor subsystem

File diff suppressed because it is too large Load Diff