From 5d7d6352886d05d3d4aeda6d2bece2baf0894472 Mon Sep 17 00:00:00 2001 From: Damien LaRocque Date: Tue, 15 Jan 2019 23:03:44 -0400 Subject: [PATCH] Change getting-started.md with trajectory control Trajectory Control commands weren't fully detailed. --- docs/getting-started.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 39f86488..1a346bd8 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -261,6 +261,7 @@ You can also directly control the current of the motor, which is proportional to ### Trajectory control +Set `axis.controller.config.control_mode = CTRL_MODE_TRAJECTORY_CONTROL`.
This mode lets you smoothly accelerate, coast, and decelerate the axis from one position to another. With raw position control, the controller simply tries to go to the setpoint as quickly as possible. Using a trajectory lets you tune the feedback gains more aggressively to reject disturbance, while keeping smooth motion. ![Taptraj](TrapTrajPosVel.PNG)
@@ -295,7 +296,7 @@ Use the `move_to_pos` function to move to an absolute position: ### Circular position control -To enable Circular position control, set 'axis.controller.config.setpoints_in_cpr = True' +To enable Circular position control, set `axis.controller.config.setpoints_in_cpr = True` This mode is useful for continuos incremental position movement. For example a robot rolling indefinitely, or an extruder motor or conveyor belt moving with controlled increments indefinitely. In the regular position mode, the `pos_setpoint` would grow to a very large value and would lose precision due to floating point rounding.