Renamed confusing variables and general cleanup

This commit is contained in:
Stephanie
2021-10-23 13:41:10 -04:00
committed by JF
parent 7eff1dbcc6
commit a65f173e3c
4 changed files with 18 additions and 21 deletions

View File

@@ -14,7 +14,7 @@ void MotionController::Update(int16_t x, int16_t y, int16_t z, uint32_t nbSteps)
this->x = x;
this->y = y;
this->z = z;
deltaSteps = nbSteps - this->nbSteps;
int32_t deltaSteps = nbSteps - this->nbSteps;
this->nbSteps = nbSteps;
if(deltaSteps > 0){
currentTripSteps += deltaSteps;