fix homing scaling bug

master
gabrielburnworth 2020-03-06 11:20:50 -08:00 committed by Gabriel Burnworth
parent 147327310e
commit 011c1e6b82
3 changed files with 9 additions and 9 deletions

View File

@ -43,9 +43,9 @@ int F11Handler::execute(Command *command)
int stepNr;
long X = CurrentState::getInstance()->getX();
long Y = CurrentState::getInstance()->getY();
long Z = CurrentState::getInstance()->getZ();
double X = CurrentState::getInstance()->getX() / (float)ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_X);
double Y = CurrentState::getInstance()->getY() / (float)ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_Y);
double Z = CurrentState::getInstance()->getZ() / (float)ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_Z);
// Move to home position. Then 3 times move away and move to home again.
for (int stepNr = 0; stepNr < 7; stepNr++)

View File

@ -43,9 +43,9 @@ int F12Handler::execute(Command *command)
int stepNr;
long X = CurrentState::getInstance()->getX();
long Y = CurrentState::getInstance()->getY();
long Z = CurrentState::getInstance()->getZ();
double X = CurrentState::getInstance()->getX() / (float)ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_X);
double Y = CurrentState::getInstance()->getY() / (float)ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_Y);
double Z = CurrentState::getInstance()->getZ() / (float)ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_Z);
// Move to home position. Then 3 times move away and move to home again.
for (int stepNr = 0; stepNr < 7; stepNr++)

View File

@ -45,9 +45,9 @@ int F13Handler::execute(Command *command)
int stepNr;
long X = CurrentState::getInstance()->getX();
long Y = CurrentState::getInstance()->getY();
long Z = CurrentState::getInstance()->getZ();
double X = CurrentState::getInstance()->getX() / (float)ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_X);
double Y = CurrentState::getInstance()->getY() / (float)ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_Y);
double Z = CurrentState::getInstance()->getZ() / (float)ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_Z);
// Move to home position. Then 3 times move away and move to home again.
for (int stepNr = 0; stepNr < 7; stepNr++)