View Single Post
  #1   Spotlight this post!  
Unread 30-01-2014, 14:30
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Warning: DriverStation.getMatchTime() will be inaccurate for 2014

In both C++ and Java, DriverStation.getMatchTime() makes an assumption that Autonomous is 15 seconds, and will return the wrong time this year, now that autonomous is only 10 seconds. This assumption is documented in the header for the method

Code:
     * This returns the time since the enable signal sent from the Driver Station
     * At the beginning of autonomous, the time is reset to 0.0 seconds
     * At the beginning of teleop, the time is reset to +15.0 seconds
Bugs have been filed for C++ and Java:
http://firstforge.wpi.edu/sf/go/artf1712
http://firstforge.wpi.edu/sf/go/artf1716

Thanks Michael from 281 for finding the issue and reporting the bug.

Last edited by Joe Ross : 30-01-2014 at 16:06.