View Single Post
  #5   Spotlight this post!  
Unread 15-07-2008, 10:52
gallo26's Avatar
gallo26 gallo26 is offline
Team 79 Alumni
AKA: Bryan Gallo
FRC #0079 (Team KRUNCH)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Largo, Florida
Posts: 113
gallo26 is a name known to allgallo26 is a name known to allgallo26 is a name known to allgallo26 is a name known to allgallo26 is a name known to allgallo26 is a name known to all
Send a message via AIM to gallo26
Re: 2002 FRC Controller...

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