fix homing scaling bug
parent
147327310e
commit
011c1e6b82
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue