View Single Post
  #29   Spotlight this post!  
Unread 20-04-2009, 23:27
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: "Java, Sun SPOT and the FIRST Robotics Competition"

Quote:
Originally Posted by virtuald View Post
So I don't know if you've noticed this or not, but how much realtime stuff did most people's code actually do this year?
Correct me if I'm wrong, but I believe that updating the speeds of the motors on the robot 50 times a second while processing images using the rest of the CPU time would qualify. When I've tried to get code I've written under Linux to execute a loop 50 times a second without the timing being off by a fairly large percentage while using all of the available CPU resources, I've had trouble and found the best way to get the loop to execute every 20 ms is to use less CPU resources. Maybe I was doing it wrong, but that's been my experience.