try this its the code i use to run my claw modified for your application
Code:
pwm07=127;
pwm08=127;
if (p3_sw_top)
{ pwm07 = 90;
pwm08 = 90; }
else if (p3_sw_trig)
{ pwm07 = 175;
pwm08 = 175;}
__________________
If saftey is first and i put FIRST ahead of everything, then i must be the safest guy in the world.
Team 521 Alumni -- Team 1740 Mentor-- Go Go 1740!
Sometimes I think I've been doing this too long and other times I think I haven't done this enough... but all the times I'm sure I'm crazy
Photonics, It's Your Future