Skip to content

Commit

Permalink
fixed stepangle typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchurch13 committed Jun 4, 2017
1 parent 1829a9a commit 85b3d8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Mechaduino/Mechaduino/Mechaduino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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

}

Expand Down
2 changes: 1 addition & 1 deletion Mechaduino/Mechaduino/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 85b3d8c

Please sign in to comment.