Quote:
Originally Posted by brennerator
Thats exactly what i was doing:
defualt code here
if (ztrigger pressed)
{
pwm13 = (pwm13-127)/2 + 127
pwm14 = (pwm14-127)/2 +127
and so on...
And this did not work. The robot went wild--if the joystick was shifted even slightly after ztrig was pressed robot would fly outta control.
|
You're doing absolutely the right thing. However, that's obviously not the code you actually tried (it won't compile properly without semicolons). Post the exact lines of code and we can see if we can find the problem.