|
Re: motor wiring
I'm terribly sorry about the mentoring situation, but if they won't agree (which they should, no questions) there is an easy way around it which will solve the problem pretty well.
In the drive, where you're having code like
pwm03 = p1_y;
if that causes the motor to go backwards and you can't switch the leads (which is the best way to do it), you can effectively do the same thing by saying
pwm03 = 255 - p1_y;
which will map pulling the joystick back to the "forward" pwm ranges and vice versa. Neutral is still neutral of course.
This will be almost the same as switching it. Good luck with your mentor issues. Where are you and what regionals are you going to?
Ari.
|