Go to Post Build season is the best time of the year. Better than Christmas because the presents are cooler, and better than new years cause you get to stay up later. - burkey_turkey [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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
  #3   Spotlight this post!  
Unread 17-03-2014, 14:12
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Coding

Your teleop shooter is wrong, it should be like this

if(condition1)
shooter.set(speed)
else if(condition2)
shooter.set(otherspeed)
else
shooter.set(0)
endif

the way you have it up is

if(condition1)
shooter.set(speed)
else
shooter.set(0)
endif

if(condition2)
shooter.set(other)
else
shooter.set(0)
endif

If conditon1 is met, it will still be 0 because the second time around, its setting it to 0

Last edited by Arhowk : 17-03-2014 at 14:14.
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


All times are GMT -5. The time now is 10:46.

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