From a4a046f935f2534350915944664b58bd2f2f6c2b Mon Sep 17 00:00:00 2001 From: Jochen Kiemes Date: Sat, 21 Sep 2024 19:50:27 +0200 Subject: [PATCH] modify README: new section after Star History --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3da4f09c..d55df851 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ FastAccelStepper offers the following features: [![Star History Chart](https://api.star-history.com/svg?repos=gin66/FastAccelStepper&type=Date)](https://star-history.com/#gin66/FastAccelStepper&Date) -General behaviour: +## General behaviour of Moves * The desired end position to move to is set by calls to moveTo() and move() * The desired end position is in case of moveTo() given as absolute position * For move() the delta is added to the latest desired end position @@ -93,7 +93,7 @@ General behaviour: - Assume counting up turns stepper clockwise, and counting down, anti-clockwise. - Current position is -2.000.000.000, move to 2.000.000.000. - Apparently the position has to count up, and count should run clockwise. - - Implementation is done via difference of 32bit signed numbers, which can overflow (being legal). + - Implementation is done via difference of 32bit signed numbers, which can overflow (being legit). - The calculation is then: 2.000.000.000 - (-2.000.000.000) = 4.000.000.000 - But 4.000.000.000 interpreted as signed 32bit is -294.967.296 => count down, turn anti-clockwise