fixed the inches->mm conversion bug and some general cleanup

This commit is contained in:
Simen Svale Skogsrud
2010-07-03 00:23:28 +02:00
parent f93d0e8132
commit d0f64d8f65
3 changed files with 4 additions and 8 deletions

View File

@ -32,6 +32,8 @@
#include "errno.h"
#include "serial_protocol.h"
#define MM_PER_INCH (25.4)
#define NEXT_ACTION_DEFAULT 0
#define NEXT_ACTION_DWELL 1
#define NEXT_ACTION_GO_HOME 2
@ -96,7 +98,7 @@ void gc_init() {
}
inline float to_millimeters(double value) {
return(gc.inches_mode ? (value * INCHES_PER_MM) : value);
return(gc.inches_mode ? (value * MM_PER_INCH) : value);
}
// Find the angle in radians of deviance from the positive y axis. negative angles to the left of y-axis,