void StepperControlAxis::setDirectionAway() {
	if (motorHomeIsUp) {
		setDirectionDown();
	} else {
		setDirectionUp();
	}
}
void StepperControlAxis::setDirectionAxis() {

       if  (((!coordHomeAxis && coordCurrentPoint < coordDestinationPoint) || (coordHomeAxis &&  motorHomeIsUp)) ^ motorMotorInv) {
		setDirectionUp();
        } else {
		setDirectionDown();
        }
}
void StepperControlAxis::setDirectionHome() {
	if (motorHomeIsUp) {
		setDirectionUp();
		setMovementUp();
	} else {
		setDirectionDown();
		setMovementDown();
	}
}