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-19 18:14:15 +0300
committerGitHub <noreply@github.com>2020-02-19 18:14:15 +0300
commit8cf435ca2cb7269d565dd01258a23268e689afa0 (patch)
tree679e162c81b3fcb06ac4a5a5e3abae2ce300850b
parentd46e3bbf10338b1baaf4e37552151e060f2d3c0a (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 e4e1394..151ee69 100644
--- a/README.md
+++ b/README.md
@@ -127,7 +127,7 @@ The `zero[3]` array provides the angles of all three servos corresponding to the
Current servo position (in degrees, 0°-90°) is supposed to be stored in the `uint8_t pos[3]` array. When calling `update_servo_timers()`, the timers are updated according to the array. The right image above corresponds to the `pos[i]=zero[i]+range[i]` for all three `i=0,1,2`.
-All the movements are planned as constant speed. To give an example, let us suppose that we want to move the left servo only. All we need to do is:
+All the movements are planned as constant speed. There are four auxiliary arrays for the movement planner: `pos_beg[3], pos_end[3], time_start[3]` and `duration[3]`. Let us suppose that we want to move the left servo only. All we need to do is:
* copy `pos[0]` to `pos_beg[0]`, it marks the starting point of the movement;
* set `pos_end[0]` to the desired position (still in degrees);
* set `time_start[0]` to the current timestamp (milliseconds since the boot);