Add basic support for nodes
This adds the infrastructure and configuration language to describe a
multinode world. This only checks that if there are multiple nodes
setup, everything is both configured for multiple nodes, and that we are
listening and sending data on the correct node per the configuration.
Change-Id: I658ba05620337a210d677c43e5eb840e05f96051
diff --git a/frc971/wpilib/sensor_reader.cc b/frc971/wpilib/sensor_reader.cc
index d4ea66e..5bcb84a 100644
--- a/frc971/wpilib/sensor_reader.cc
+++ b/frc971/wpilib/sensor_reader.cc
@@ -15,10 +15,9 @@
namespace frc971 {
namespace wpilib {
-SensorReader::SensorReader(::aos::EventLoop *event_loop)
+SensorReader::SensorReader(::aos::ShmEventLoop *event_loop)
: event_loop_(event_loop),
- robot_state_sender_(
- event_loop_->MakeSender<::aos::RobotState>("/aos")),
+ robot_state_sender_(event_loop_->MakeSender<::aos::RobotState>("/aos")),
my_pid_(getpid()) {
// Set some defaults. We don't tend to exceed these, so old robots should
// just work with them.