Fix compiler errors with platformio

pio
Connor Rigby 2019-12-18 06:26:17 -08:00
parent c865325fbc
commit b50887d279
No known key found for this signature in database
GPG Key ID: 29A88B24B70456E0
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ int G28Handler::execute(Command *command)
stepsPerMm[0] = ParameterList::getInstance()->getValue(MOVEMENT_STEP_PER_MM_X);
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[1] = CurrentState::getInstance()->getY();

View File

@ -996,7 +996,7 @@ int Movement::calibrateAxis(int axis)
float *encoderStepDecay;
bool *encoderEnabled;
int *axisStatus;
long *axisStepsPerMm;
double *axisStepsPerMm;
// Prepare for movement

View File

@ -126,7 +126,7 @@ private:
bool endStInv2[3] = { false, false, false };
bool endStEnbl[3] = { false, false, false };
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 };
int motorConsMissedStepsPrev[3] = { 0, 0, 0 };