Thread
:
Rotating Servo HS322 over 90 degrees
View Single Post
#
4
10-02-2007, 20:43
fimmel
Founding Mentor, Team 2370
AKA: Forest Immel
FRC #2370 (iBots 2370)
Team Role: Mentor
Join Date: Dec 2005
Rookie Year: 2005
Location: Castleton, Vermont
Posts: 325
Re: Rotating Servo HS322 over 90 degrees
you have 2 if statements you need an else statement
here is an example:
Code:
if (p1_sw_trig ==1) { pwm11 = 255; } if else (p1_sw_top == 1) { pwm11 = 0; } else { }
hope that works.....im sorta new to programming
/forest
__________________
fimmel
View Public Profile
Find all posts by fimmel
Find CD-Media Photos by fimmel
Find CD-Media Papers by fimmel