Skip to content

Commit 23005fb

Browse files
committed
fix moveXY for SCS Addressing a problem that shortens travel time.
1 parent 76785fb commit 23005fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Stackchan_servo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void StackchanSERVO::moveXY(int x, int y, uint32_t millis_for_move) {
254254
int y_pos = _last_degree_y + increase_degree_y * quadraticEaseInOut(f);
255255
_sc.WritePos(AXIS_X + 1, convertSCS0009Pos(x_pos + _init_param.servo[AXIS_X].offset), division_time);
256256
_sc.WritePos(AXIS_Y + 1, convertSCS0009Pos(y_pos + _init_param.servo[AXIS_Y].offset), division_time);
257-
//vTaskDelay(division_time);
257+
vTaskDelay(division_time);
258258
}
259259
_isMoving = false;
260260
} else if (_servo_type == ServoType::DYN_XL330) {

0 commit comments

Comments
 (0)