Fixed a number of bugs caused by using abs() on floats and long ints. Added support for selectively inverting bits of the stepping port. Debugged, optimized and cleaned up timing code for the step-pulses.
This commit is contained in:
@@ -54,7 +54,7 @@ double theta(double x, double y)
|
||||
|
||||
// Find the quadrant of the coordinate
|
||||
int quadrant_of_the_circle(int32_t x, int32_t y) {
|
||||
if (abs(x)<abs(y)){
|
||||
if (labs(x)<labs(y)){
|
||||
if (y>0) {
|
||||
return(0);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user