Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 6 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:
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