Ask Your Question

Revision history [back]

Not clear what you mean by writing signal on X and Y pin of joystick. You can directly use the pwm signal from arduino to control the velocity of the motors. I think you are generating the velocity commands using odometery information in ROS. So you just need to implement a PID controller in arduino using the error in the required velocity and actual velocity (from odometry) that will try to achieve the required velocity.