|
Re: Code to have speed of motors dependent on how hard you push the joystick
YOu can guarantee it by checking the values of the pwm outputs right before the PutData call at the end of Process_Data_From_Master_uP.
Since the PutData call is (essentially) when the data actually goes out to the robot, if the PWMs are the right value then, then you know that it isn't a code problem.
Are you testing the motors with a load on them? They might spin fast even at low power settings if there is no load.
|