View Single Post
  #5   Spotlight this post!  
Unread 17-03-2004, 18:47
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Help! Programming question with triggers

Quote:
Originally Posted by KenWittlief
you dont need an if statement

just something like

relay_fwd01 = p1_trig01; in your code

when the switch is on the relay is on, when its off, the relay goes off
If you have a victor, try this:
Code:
pwm01=p1_sw_trig*127+127;