Quote:
|
Originally Posted by gnormhurst
Just a guess:
If the motors are wired so that positive pwm values make both wheels turn the same direction, then I think the LEFT_DIR and RIGHT_DIR values need to be the same. By changing both of them, they are still different, and you haven't really changed anything. There are four combinations to try!
|
LEFT_DIR and RIGHT_DIR are used to determine if 254 is forward or 0 is forward. See the end of pid() in pid.c. The PWM value internally is stored as a signed int.