Go to Post Meh, wear safety glasses. - Mike Schreiber [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
  #1   Spotlight this post!  
Unread 16-02-2008, 19:41
theprogrammer theprogrammer is offline
Registered User
FRC #1982
 
Join Date: Feb 2008
Location: Shawnee
Posts: 4
theprogrammer is an unknown quantity at this point
IR button coding rules

im currently working on our hybrid code and im not sure if this is legal

else if(rc_dig_in08 ==1 )
{
pwm05 = 255;
if(rc_dig_in09==1&&rc_dig_in10==1)
{
while(counter1<=15)
{
pwm03 = 200;
}
pwm03 = 127;
while(counter2<=10)
{
pwm01 = 255;
pwm02 = 0;
}
the buttons are supposed to do the same thing every time. All I really need teh button to do is to move the motor connected to pwm05, should i reposition the rest of the code so that its legal or am i fine as it is?
The only thing the button actually needs to do is activate the pwm05 motor, the rest of it triggers from both of our digital pressure switches returning positive.
Thanks in advance

Last edited by theprogrammer : 17-02-2008 at 12:42. Reason: further explanation
 


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
Infrared button rules duhoverdrive Programming 1 26-01-2008 14:26
C coding ExarKun666 General Forum 12 21-12-2007 14:13
Photoswitch coding magical hands Programming 0 17-01-2006 21:20
coding a potentiometer incognito_NICK Programming 5 14-02-2005 15:56
Coding conventions Anthony Kesich Programming 20 08-01-2004 10:50


All times are GMT -5. The time now is 20:25.

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