Fix compiler errors with platformio
parent
c865325fbc
commit
b50887d279
|
@ -31,7 +31,7 @@ int G28Handler::execute(Command *command)
|
||||||
stepsPerMm[0] = ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_X);
|
stepsPerMm[0] = ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_X);
|
||||||
stepsPerMm[1] = ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_Y);
|
stepsPerMm[1] = ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_Y);
|
||||||
|
|
||||||
long sourcePoint[2] = {0.0, 0.0};
|
double sourcePoint[2] = {0.0, 0.0};
|
||||||
sourcePoint[0] = CurrentState::getInstance()->getX();
|
sourcePoint[0] = CurrentState::getInstance()->getX();
|
||||||
sourcePoint[1] = CurrentState::getInstance()->getY();
|
sourcePoint[1] = CurrentState::getInstance()->getY();
|
||||||
|
|
||||||
|
|
|
@ -996,7 +996,7 @@ int Movement::calibrateAxis(int axis)
|
||||||
float *encoderStepDecay;
|
float *encoderStepDecay;
|
||||||
bool *encoderEnabled;
|
bool *encoderEnabled;
|
||||||
int *axisStatus;
|
int *axisStatus;
|
||||||
long *axisStepsPerMm;
|
double *axisStepsPerMm;
|
||||||
|
|
||||||
// Prepare for movement
|
// Prepare for movement
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ private:
|
||||||
bool endStInv2[3] = { false, false, false };
|
bool endStInv2[3] = { false, false, false };
|
||||||
bool endStEnbl[3] = { false, false, false };
|
bool endStEnbl[3] = { false, false, false };
|
||||||
long timeOut[3] = { 0, 0, 0 };
|
long timeOut[3] = { 0, 0, 0 };
|
||||||
long stepsPerMm[3] = { 1.0, 1.0, 1.0 };
|
double stepsPerMm[3] = { 1.0, 1.0, 1.0 };
|
||||||
|
|
||||||
float motorConsMissedSteps[3] = { 0, 0, 0 };
|
float motorConsMissedSteps[3] = { 0, 0, 0 };
|
||||||
int motorConsMissedStepsPrev[3] = { 0, 0, 0 };
|
int motorConsMissedStepsPrev[3] = { 0, 0, 0 };
|
||||||
|
|
Loading…
Reference in New Issue