diff options
author | Dmitry V. Sokolov <ssloy@users.noreply.github.com> | 2020-02-19 18:14:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 18:14:15 +0300 |
commit | 8cf435ca2cb7269d565dd01258a23268e689afa0 (patch) | |
tree | 679e162c81b3fcb06ac4a5a5e3abae2ce300850b | |
parent | d46e3bbf10338b1baaf4e37552151e060f2d3c0a (diff) |
Update README.md
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |