JoyStick icon indicating copy to clipboard operation
JoyStick copied to clipboard

4 directions

Open ChopsKingsland opened this issue 4 years ago • 7 comments
trafficstars

Is there a way to eliminate NE, SE, SW & NW, so it is only N, E, S & W (& C)?

ChopsKingsland avatar Jan 02 '21 12:01 ChopsKingsland

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?

bobboteck avatar Jan 02 '21 14:01 bobboteck

I need this to control a Raspberry Pi car with tank steering

ChopsKingsland avatar Jan 03 '21 10:01 ChopsKingsland

Any more specifics of how it should work?

bobboteck avatar Jan 03 '21 21:01 bobboteck

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 \

ChopsKingsland avatar Jan 03 '21 21:01 ChopsKingsland

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.

bobboteck avatar Jan 08 '21 09:01 bobboteck

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

kethan1 avatar Mar 17 '21 22:03 kethan1

Any shortcuts in meantime?

k2xl avatar May 03 '22 01:05 k2xl