Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EBB Firmware: Add a native arc command #219

Open
EmbeddedMan opened this issue Oct 27, 2023 · 1 comment
Open

EBB Firmware: Add a native arc command #219

EmbeddedMan opened this issue Oct 27, 2023 · 1 comment

Comments

@EmbeddedMan
Copy link
Contributor

This will be for v3.0.0 firmware.

Exact syntax to be worked out, but a good starting point (thanks @oskay) is
CM, dest_x, dest_y, center_x, center_y, rate, direction
Where all of dest_x, dest_y, center_x and center_y are relative to the initial position and direction is 0 for CW and 1 for CCW.
This is basically an arc version of the existing SM (constant velocity) command.

@oskay
Copy link
Contributor

oskay commented Oct 27, 2023

Let's take the rate as StepFrequency, same as that from http://evil-mad.github.io/EggBot/ebb.html#HM

center_x and center_y should be capped at ±2^15 ( ±32,768). If center_i > 32768 set it to 32768 and if If center_i < -32768 set it to -32768.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants