mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilibc] Remove incorrect timer rollover (#2523)
If the 64 bit FPGA timer rolls over, a 32 bit value is added for the rollover, an artifact of when it was a 32 bit timer. The 64 bit microsecond timer won't rollover for 500k years so remove the check for simplicity. Fixes #2504
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */
|
||||
/* Copyright (c) 2008-2020 FIRST. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
@@ -25,8 +25,6 @@ double GetTime() { return frc2::GetTime().to<double>(); }
|
||||
|
||||
using namespace frc;
|
||||
|
||||
const double Timer::kRolloverTime = frc2::Timer::kRolloverTime.to<double>();
|
||||
|
||||
Timer::Timer() { Reset(); }
|
||||
|
||||
double Timer::Get() const { return m_timer.Get().to<double>(); }
|
||||
|
||||
Reference in New Issue
Block a user