Renamed confusing variables and general cleanup
This commit is contained in:
parent
7eff1dbcc6
commit
a65f173e3c
4 changed files with 18 additions and 21 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ namespace Pinetime {
|
|||
|
||||
private:
|
||||
uint32_t nbSteps;
|
||||
int32_t deltaSteps = 0;
|
||||
uint32_t currentTripSteps = 0;
|
||||
int16_t x;
|
||||
int16_t y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue