View Single Post
  #3   Spotlight this post!  
Unread 11-02-2011, 22:09
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: This Code worked, then it didn't

Quote:
Originally Posted by Robototes2412 View Post

Code:
--SNIP--
        //the thing that sets crap up
It appears that the robot read your comment and didn't like it!

JK
Quote:
Originally Posted by Robototes2412 View Post

Code:
        double time = Timer.getFPGATimestamp();
        while ((Timer.getFPGATimestamp() < time + 5.0f) && this.thePole.getLeftWays()) {
            System.out.println(';');
            this.armSwingyMotor.set(0.25);
        }
        this.armSwingyMotor.set(0);
    }
Is there a better way to do this?

If you use the loop but never reach the limit what happens to the rest of the robot code?

P.S. what "didn't" work?

Did the robot stop working? If so it appears that you tripped the watchdog.
Reply With Quote