[wpilibc] Remove unused SetPriority() call from Ultrasonic (#4123)

This commit is contained in:
Tyler Veness
2022-03-24 07:24:12 -07:00
committed by GitHub
parent ba0dccaae4
commit 126e3de91a
2 changed files with 0 additions and 8 deletions

View File

@@ -120,11 +120,6 @@ void Ultrasonic::SetAutomaticMode(bool enabling) {
}
m_thread = std::thread(&Ultrasonic::UltrasonicChecker);
// TODO: Currently, lvuser does not have permissions to set task priorities.
// Until that is the case, uncommenting this will break user code that calls
// Ultrasonic::SetAutomicMode().
// m_task.SetPriority(kPriority);
} else {
// Wait for background task to stop running
if (m_thread.joinable()) {

View File

@@ -167,9 +167,6 @@ class Ultrasonic : public wpi::Sendable,
// Time (sec) for the ping trigger pulse.
static constexpr double kPingTime = 10 * 1e-6;
// Priority that the ultrasonic round robin task runs.
static constexpr int kPriority = 64;
// Max time (ms) between readings.
static constexpr auto kMaxUltrasonicTime = 0.1_s;
static constexpr auto kSpeedOfSound = 1130_fps;