diff options
| author | Stephanie <eng.steph@gmail.com> | 2021-10-23 17:41:10 (GMT) |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2021-12-30 20:51:43 (GMT) |
| commit | a65f173e3c63730c7db3c29bf44e538773971dc7 (patch) | |
| tree | ed56c9fc3871fed78ad7c01ff160541a8763d35b /src/components/motion/MotionController.cpp | |
| parent | 7eff1dbcc631c41e05b372e993383be3554f348c (diff) | |
Renamed confusing variables and general cleanup
Diffstat (limited to 'src/components/motion/MotionController.cpp')
| -rw-r--r-- | src/components/motion/MotionController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/motion/MotionController.cpp b/src/components/motion/MotionController.cpp index 59114f4..f2b36ad 100644 --- a/src/components/motion/MotionController.cpp +++ b/src/components/motion/MotionController.cpp @@ -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; |
