Go to Post Congratulations to team 341, your work is nothing short of what I want to do when I grow up. - kjolana1124 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 10-02-2007, 20:43
fimmel's Avatar
fimmel fimmel is offline
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
fimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond reputefimmel has a reputation beyond repute
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
__________________



 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Servo Values to Degrees... How? mogunus Programming 16 11-04-2007 02:03
How do you get servo numbers into Angle Degrees Cow Bell Solo Programming 3 18-02-2007 12:16
engineering degrees sciguy125 Career 18 17-03-2006 23:44
Turn 90 Degrees Mike Math and Science 16 05-12-2004 22:22
Rotating Light - not rotating :-/ MrB Technical Discussion 17 08-02-2002 20:36


All times are GMT -5. The time now is 00:24.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi