mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Remove obsolete timer functions and replace with std::chrono (#64)
Removed delayTicks(), delayMillis(), delaySeconds(), HAL_NO_WAIT, HAL_WAIT_FOREVER, niTimestamp32(), and niTimestamp64(). Replaced clock_gettime() and usleep() with std::chrono.
This commit is contained in:
committed by
Peter Johnson
parent
4af0bbddee
commit
fa8bb3fa91
@@ -172,7 +172,6 @@ void IterativeRobot::DisabledPeriodic() {
|
||||
printf("Default %s() method... Overload me!\n", __FUNCTION__);
|
||||
firstRun = false;
|
||||
}
|
||||
delayTicks(1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -187,7 +186,6 @@ void IterativeRobot::AutonomousPeriodic() {
|
||||
printf("Default %s() method... Overload me!\n", __FUNCTION__);
|
||||
firstRun = false;
|
||||
}
|
||||
delayTicks(1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -202,7 +200,6 @@ void IterativeRobot::TeleopPeriodic() {
|
||||
printf("Default %s() method... Overload me!\n", __FUNCTION__);
|
||||
firstRun = false;
|
||||
}
|
||||
delayTicks(1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -217,5 +214,4 @@ void IterativeRobot::TestPeriodic() {
|
||||
printf("Default %s() method... Overload me!\n", __FUNCTION__);
|
||||
firstRun = false;
|
||||
}
|
||||
delayTicks(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user