commit | b574fe42f1343b10291483c542db2cef93ae3fca | [log] [tgz] |
---|---|---|
author | Austin Schuh <austin.linux@gmail.com> | Fri Dec 06 23:51:47 2019 -0800 |
committer | Austin Schuh <austin.linux@gmail.com> | Sat Dec 07 11:11:42 2019 -0800 |
tree | 71a81337ab2b42e47d30e82e28e9ab82139b7d51 | |
parent | e309d2aa56903f863e05a8f40ca66781c242b98d [diff] [blame] |
Fix race in localizer_test The trajectory lock wasn't being grabbed, so the localizer thread wasn't running. This resulted in a test timeout. Make it more robust! Change-Id: If2fc227f394060e0ba2cbe55163f96ee14162b1b
diff --git a/frc971/control_loops/drivetrain/splinedrivetrain.cc b/frc971/control_loops/drivetrain/splinedrivetrain.cc index 1222ae0..c467e1f 100644 --- a/frc971/control_loops/drivetrain/splinedrivetrain.cc +++ b/frc971/control_loops/drivetrain/splinedrivetrain.cc
@@ -170,6 +170,8 @@ has_started_execution_ = false; } mutex_.Unlock(); + } else { + VLOG(1) << "Failed to acquire trajectory lock."; } }