Hey
For a little background; I have an analogue joystick connected to two ADCs (one each for x and y axis) which in turn (thought some process) are connected to two DACs (one each for left and right motors).
I have thought of two ways which in theory will work but in practice they didn't. The most successful calculated the % of the x and y axis and then combined them differently to achieve values for the left motors and y motors.
Has anyone any ideas/theories how to translate the readings from the joystick to values for the DACs?
Apparently it can be done using the cos and sin rules but I can’t think how.
Any ideas?
Sorry if I haven't given enough information.
Thanks
For a little background; I have an analogue joystick connected to two ADCs (one each for x and y axis) which in turn (thought some process) are connected to two DACs (one each for left and right motors).
I have thought of two ways which in theory will work but in practice they didn't. The most successful calculated the % of the x and y axis and then combined them differently to achieve values for the left motors and y motors.
Has anyone any ideas/theories how to translate the readings from the joystick to values for the DACs?
Apparently it can be done using the cos and sin rules but I can’t think how.
Any ideas?
Sorry if I haven't given enough information.
Thanks