-
Hi,
Is ticks the duration of the movement? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you go low level, then there is no acceleration/deceleration available from the lib. So the main question is: Do you get from the Unreal engine the absolute position to move to ? Perhaps this could be a possible starting point. If not, you still may loose synchronicity between robot and unreal engine character pose. In the above struct the meaning is:
Each command either generates a PAUSE of 500...4095us length (if steps = 0), or generate (steps) steps with a time distance between two steps defined by ticks. Examples:
The max value of ticks has the consequence: if the stepper needs to run slower than ~250 steps/s, then pause commands need to be added to the queue. If you anyway have an update rate of 60 frames/s, then best to not create commands longer than 16ms (using large values of steps). If the robot should not move between two frames, need to add five pauses to the queue. One problem you may encounter is, that 60 frames/s will not be in sync with the time base of the esp32. Example: If the robot should not move for e.g. one minute and for every frame you just add five pauses to the queue, then there may be two cases happening: If the esp32 is slightly faster than the frames, the stepper will run out of commands. In case the esp32 is slightly slower, then the stepper queue will be full. General advise:
|
Beta Was this translation helpful? Give feedback.
If you go low level, then there is no acceleration/deceleration available from the lib. So the main question is: Do you get from the Unreal engine the absolute position to move to ? Perhaps this could be a possible starting point. If not, you still may loose synchronicity between robot and unreal engine character pose.
In the above struct the meaning is:
Each command either generates a PAUSE of 500...4095us length (if steps = 0), or generate (steps) steps with a time distance between two steps defined by ticks. Examples: