diff options
author | Dmitry V. Sokolov <ssloy@users.noreply.github.com> | 2020-02-20 10:37:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 10:37:36 +0300 |
commit | 9122f551f2908c2e2ac9832c8a0b0fac091195f9 (patch) | |
tree | cbdb4b8dbb28608c2d7176a78b85483fe3e87c84 | |
parent | 59155e71b3eb12e7f7d528df75f1484aa03ba38e (diff) |
Update README.md
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()) { |