Skip to content

Added interface to allow loading of user acceleration table: setAccelTable()#31

Open
crashkopf wants to merge 1 commit into
clearwater:masterfrom
crashkopf:acceltable
Open

Added interface to allow loading of user acceleration table: setAccelTable()#31
crashkopf wants to merge 1 commit into
clearwater:masterfrom
crashkopf:acceltable

Conversation

@crashkopf

Copy link
Copy Markdown

I wrote a patch to install a user-configured acceleration table.

Example usage:

#include <SwitecX25.h>
SwitecX25 motor1(STEPS,4,5,6,7);
SwitecX25::AccelTable myAccelTable[] = {
  {5, 12000},
  {10, 6000},
  {20, 3000}
};

void setup(void)
{
  motor1.setAccelTable(myAccelTable);
  motor1.zero();
}

petrows added a commit to petrows/SwitecX25 that referenced this pull request Nov 15, 2025
petrows added a commit to petrows/SwitecX25 that referenced this pull request Nov 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant