Quote:
Originally Posted by usbcd36
Simplest way to do that is subtract the value you assign to the PWM outputs from 254:
|
Guys,
usbcd36 has it right. The correct value is 254.
Quote:
Originally Posted by divergentdave
Actually you should subtract from 255...
|
You explained that by using a pwm value of 255 as an example. However, valid pwm signals are in the range 0-254, with 127 being neutral.
Quote:
Originally Posted by Roger
//The (256- ) part reverses one side's motors so no reverse wiring is needed!
|
256 is just plain wrong.
Of course, 254 is only the right value to subtract from in theory. With the Victor's observed "neutral bias", though, it might actually work better to choose 132 as the mirror point instead of 127, and subtract from 264 instead (making sure to limit the result to 254 after the subtraction).