Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Warning: DriverStation.getMatchTime() will be inaccurate for 2014 (http://www.chiefdelphi.com/forums/showthread.php?t=125495)

Joe Ross 30-01-2014 14:30

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.


All times are GMT -5. The time now is 02:34.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi