Go to Post ...if most of the money comes from sponsors, I have a bit of a problem letting them [the students] charge off a cliff with it. - TimCraig [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 08-03-2009, 08:58
awad1992 awad1992 is offline
Registered User
FRC #1946
 
Join Date: Dec 2008
Location: israel
Posts: 3
awad1992 is an unknown quantity at this point
help with c++ code

hello!
im from team 1946 in israel i just want to ask if we can do more than one (else if) in the same code

in other words , is it correct ?

if(!limitswitch1->Get())
jaguar1->Set(0.0);
Wait(0.05);
jaguar1->Set(0.5);
Wait(0.5);
jaguar1->Set(0.0);
else if (!limitswitch2->Get())
jaguar1->Set(0.0);
Wait(0.05);
jaguar1->Set(-0.5);
Wait(0.5);
jaguar1->Set(0.0);
else if (!limitswitch3 & leftStick->GetRawButton(10)
jaguar1->Set(0.0);
else jaguar1->Set(leftStick->GetZ() );

thanks
Reply With Quote
 


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
HELP WITH CODE!!! :( nick_champ_2 Technical Discussion 6 16-01-2009 01:57
Help with Hybrid code ShotgunNinja Programming 1 15-02-2008 13:42
Help with VB code Setsanto Programming 8 08-02-2007 16:04
Help with code b-rant Programming 1 05-04-2006 13:52
hey need some help with writing a code please help me here magical hands Programming 9 01-01-2004 21:46


All times are GMT -5. The time now is 13:37.

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