View Single Post
  #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