|
Re: Reversing controls?
Quote:
|
Originally Posted by Calvin
Ok we shipped the robot, and now our team decided that they want to redefine which side of the robot is the front. I don't have anything to test this.. but would this work:
pwm01 = ((-1 * p2_y) + 255);
pwm02 = ((-1 * p1_y) + 255);
|
I usually do:
pwm01 = 254 - p2y;
et cetera...
255 is usually a reserved value for these types of speed controllers.
Regards,
__________________
Mike Betts
Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013
As easy as 355/113...
|