Merge changes Iafa2de9e,I4e7ac183
* changes:
Update how beambreak is done
Add flatbuffer for roller current
diff --git a/frc971/wpilib/wpilib_robot_base.h b/frc971/wpilib/wpilib_robot_base.h
index bcde100..6b9e5c5 100644
--- a/frc971/wpilib/wpilib_robot_base.h
+++ b/frc971/wpilib/wpilib_robot_base.h
@@ -20,8 +20,14 @@
::std::vector<::std::thread> threads;
for (size_t i = 1; i < loops_.size(); ++i) {
- threads.emplace_back([this, i]() { loops_[i]->Run(); });
+ threads.emplace_back([this, i]() {
+ LOG(INFO) << "Starting " << loops_[i]->name() << " with priority "
+ << loops_[i]->runtime_realtime_priority();
+ loops_[i]->Run();
+ });
}
+ LOG(INFO) << "Starting " << loops_[0]->name() << " with priority "
+ << loops_[0]->runtime_realtime_priority();
// Save some memory and run the last one in the main thread.
loops_[0]->Run();