Go to Post ....FIRST helped me realize how much i enjoy engineering, so that i NEED to do well in my classes if i want to reach my goals. - the_short1 [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
  #1   Spotlight this post!  
Unread 18-03-2011, 13:25
SoulSaber1's Avatar
SoulSaber1 SoulSaber1 is offline
Registered User
AKA: Drew Parker
FRC #3011 (RoboWarriors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Wiesbaden
Posts: 8
SoulSaber1 is an unknown quantity at this point
Bit of coding help

So, for autonamous we are using a modified line tracker code, with certain cases for different scenarios. After this loop we want the robot to go backwards, but we can't seem to make it happen.

Code:
case 7: //ALL SENSORS ON *OR* MAYBE AT CROSS
                        if (time > stopTime)
                        {
                            atCross = true;
                            speed = 0;
                            gripper.set(false);         //Closes gripper
                            gripper2.set(true);         // "     "
                            while (backCount < 5)
                            {
                                backCount++;
                                drive.arcadeDrive(-.5,0);
                            }
                        }
Any ideas?
__________________
"I don't care about what anything was DESIGNED to do, I care about what it CAN do." -Gene Kranz

"This lifestyle is DIY or GTFO" - lucid
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 11: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