Skip to content

Low level access #159

Closed Answered by gin66
PitMaker asked this question in Q&A
Feb 24, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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:

  • ticks = time in multiple of 1/TICKS_PER_S = 1/16MHz = 0.0625us
  • minimum value for ticks * steps = MIN_CMD_TICKS = 8000 = 500us
  • maximum value for ticks = 65535 = ~4095 us

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:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@PitMaker
Comment options

@gin66
Comment options

Answer selected by PitMaker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants