Thread
:
Help! Programming question with triggers
View Single Post
#
6
17-03-2004, 18:48
Ryan M.
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Re: Help! Programming question with triggers
If they are on PWMs, do something like:
Code:
if(switch == 1){ pwm01 = pwm02 = 254; } else{ pwm01 = pwm02 = 127; }
Where pwm is the motor(s) and switch is the switch.
__________________
Ryan M.
View Public Profile
Find all posts by Ryan M.
Find CD-Media Photos by Ryan M.
Find CD-Media Papers by Ryan M.