commit | 70ae5939e18ddf1f744a4793f8b50a1b6686c38a | [log] [tgz] |
---|---|---|
author | Austin Schuh <austin.linux@gmail.com> | Sun Nov 27 19:09:25 2016 -0800 |
committer | Austin Schuh <austin.linux@gmail.com> | Sun Nov 27 19:10:17 2016 -0800 |
tree | a1796e2a73c41a3fc28ac672c08977452aef29b0 | |
parent | ce8c6cd75a0d58991b915e14bdf6b6964eb6ba22 [diff] |
Fixed timing violation on the gyro reading thread. Change-Id: I3e61dfc1c75b0b68f1f058900eacd44e417cc7ee
diff --git a/frc971/wpilib/gyro_sender.cc b/frc971/wpilib/gyro_sender.cc index 82e9775..8cfdc39 100644 --- a/frc971/wpilib/gyro_sender.cc +++ b/frc971/wpilib/gyro_sender.cc
@@ -45,6 +45,8 @@ // How many timesteps the next reading represents. int number_readings = 0; + ::aos::SetCurrentThreadRealtimePriority(33); + while (run_) { number_readings += phased_loop.SleepUntilNext();