JoyStick
JoyStick copied to clipboard
4 directions
Is there a way to eliminate NE, SE, SW & NW, so it is only N, E, S & W (& C)?
Hi @ChopsKingsland, no currently there is no possibility, you could alternatively use the cursor position with GetPosX, GetPosY or with GetX, GetY and rebuild the information you need in your code. Could I know what your specific need is and how you would like to use it?
I need this to control a Raspberry Pi car with tank steering
Any more specifics of how it should work?
Any more specifics of how it should work?
It can only go forwards, backwards, left & right; not diagonally...
A bit like this: (C for centre/stop)
\ F / L| C |R / B \
Ok @ChopsKingsland I understand your request, I think it can be done, but I don't know how to give you a timetable for the realization, in the meantime I mark it as an activity to do. I will definitely add a new method to give directions in the way you indicated.
Being able to move in only 4 directions is great for a simple robot, but if you are building a more complicated robot and you want it to move in any direction, take a look at this question: https://robotics.stackexchange.com/q/2011/28178
Any shortcuts in meantime?