Yeah ok, that works. Can i limit the PWMs by saying something like...
Code:
'---------- PWM outputs Limited ------------------------------------------------------------------------------
'-------------------------------------------------------------------------------------------------------------
if relay2_fwd = 1 then next1:
PWM2 = 127
next1:
if relay2_fwd = 1 then next2:
PWM3 = 127
next2:
if relay2_fwd = 0 then next3:
PWM2 = p1_y
next3:
if relay2_fwd = 0 then next4:
PWM3 = p1_y
next 4:
I saw that in the default code for PWM limitations with limit switches. so i thought if i said whenever the High gear part of that relay is active.... that specific PWM is off
__________________
Team 79 Alumni '11- Present
Team 79 Driver '09, '10
Team 79 Senior CAD Designer '09, '10
Team 79 President '09
Team 79 Electrical Sub Team Leader '08, '09