Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ssloy/penny.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Sokolov <ssloy@users.noreply.github.com>2020-02-20 10:37:36 +0300
committerGitHub <noreply@github.com>2020-02-20 10:37:36 +0300
commit9122f551f2908c2e2ac9832c8a0b0fac091195f9 (patch)
treecbdb4b8dbb28608c2d7176a78b85483fe3e87c84
parent59155e71b3eb12e7f7d528df75f1484aa03ba38e (diff)
Update README.md
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 5ee6d45..5a1b891 100644
--- a/README.md
+++ b/README.md
@@ -161,7 +161,7 @@ const int8_t advance_sequence[4][3] = {{-1, -1, 1}, {-1, -1, -1}, { 1, 1, -1},
```
This array tells us that the goal position of the servo `i` at the step `step` is `zero[i] + range[i]*advance_sequence[step][i]`.
Then the following code makes Penny to go forward indefinitely:
-```
+```c
uint8_t step = steps_per_sequence-1; // at the initialization stage the (previous) movement is considered to be complete, thus the next movement will be planned starting from the step 0
while (1) {
if (is_movement_finished()) {