Thread: Java Autonomous
View Single Post
  #3   Spotlight this post!  
Unread 11-02-2012, 14:37
Chris27's Avatar
Chris27 Chris27 is offline
Registered User
AKA: Chris Freeman
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Mountain View
Posts: 196
Chris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant future
Re: Java Autonomous

For one, your going about overriding autonomousContinuous() incorrectly. This is a function that will be executed at a fixed interval. I forgot what the exact interval is, but it is around ~50ms. It makes no sense to call Timer.delay or any function that blocks (i.e. waits for a long time for the function to return before moving on) inside autonomousContinuous() as this function should return quickly (no longer then the interval time).
Reply With Quote