diff --git a/Mechaduino/Mechaduino/Mechaduino.ino b/Mechaduino/Mechaduino/Mechaduino.ino index 78e0e27..f1ea7be 100644 --- a/Mechaduino/Mechaduino/Mechaduino.ino +++ b/Mechaduino/Mechaduino/Mechaduino.ino @@ -87,7 +87,7 @@ void loop() // main loop serialCheck(); //must have this execute in loop for serial commands to function - //r=0.1125*step_count; //Don't use this anymore. Step interrupts enabled above by "configureStepDir()", adjust step size in parameters.cpp + //r=0.1125*step_count; //Don't use this anymore. Step interrupts enabled above by "configureStepDir()", adjust step size ("stepangle")in parameters.cpp } diff --git a/Mechaduino/Mechaduino/Parameters.cpp b/Mechaduino/Mechaduino/Parameters.cpp index 63a8fb0..a048497 100644 --- a/Mechaduino/Mechaduino/Parameters.cpp +++ b/Mechaduino/Mechaduino/Parameters.cpp @@ -35,7 +35,7 @@ volatile float vLPFb = (1.0-vLPFa)* Fs * 0.16666667; const int spr = 200; // 200 steps per revolution -- for 400 step/rev, you should only need to edit this value const float aps = 360.0/ spr; // angle per step int cpr = 16384; // counts per rev -const float stepangle = aps/32.0; // for step/dir interrupt: aps/16 is the equivalent of 32 microsteps +const float stepangle = aps/32.0; // for step/dir interrupt: aps/32 is the equivalent of 1/32 microsteps volatile float PA = aps; // Phase advance...aps = 1.8 for 200 steps per rev, 0.9 for 400