8 years, 11 months ago.

Would you consider a pull request to add a new function or two?

Hi Chris,

I'm writing a mp3i::turn( int radius, int theta) function to receive my JoyStick output, which implements these theta input values:

/media/uploads/NeuroDuck/joystick-directions_diagram.gif

and radius values 1-8.

It also accepts 9 for an outermost donut, which I used to be treating specially, but now treat the same as 1-8. 0 is used as a noise bulls-eye to accommodate the junk data at the center of the JoyStick, and I map it to m3pi::stop().

To simplify my function's code for left- vs. right-turns, I'm passing a computed motor# to m3pi::motor(), so I had to change that function from private to public.

Once I have it working well, would you consider a pull request for this function?

Thanks much for your efforts to date,

Cliff

Question relating to:

Library for the m3pi robot. This works with a Pololu 3pi robot with the Serial Slave firmware, and exposes and API. m3pi, robot
Be the first to answer this question.