by LROBBINS » 24 Jan 2017, 13:30
No, if going backwards and turning right, the rear of the chair goes to the LEFT, but the front of the chair goes to the RIGHT. If going forwards and turning right, the rear of the chair goes to the LEFT, but the front of the chair goes to the RIGHT. THIS IS THE CORRECT WAY FOR A CHAIR TO BEHAVE. If you change the algorithm so that it doesn't do this, if you hold right stick and change from going forward to going backwards, the chair will reverse its turning direction - that's bad, bad, bad.
Go sit in any marketed power chair and feel what it does - AND DO THINK ABOUT WHERE YOUR NOSE IS MOVING - is it moving further to the right with right stick both going forwards and going backwards? If so, that is correct. Your design should do the same thing. Remember, a joystick is not pointing in a given direction, the way a car's steering wheel does things. It is saying - "turn further to the right at rate x, or turn further to the left at rate x". The angle you end up at actually involves an integration of "steering" over time; it's very different from an automobile (and more like the ailerons of an airplane).