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/y2017/wpilib_interface.cc b/y2017/wpilib_interface.cc
index 62743b9..84e779d 100644
--- a/y2017/wpilib_interface.cc
+++ b/y2017/wpilib_interface.cc
@@ -126,7 +126,7 @@
// Class to send position messages with sensor readings to our loops.
class SensorReader : public ::frc971::wpilib::SensorReader {
public:
- SensorReader(::aos::EventLoop *event_loop)
+ SensorReader(::aos::ShmEventLoop *event_loop)
: ::frc971::wpilib::SensorReader(event_loop),
auto_mode_sender_(
event_loop->MakeSender<::frc971::autonomous::AutonomousMode>(
@@ -323,7 +323,7 @@
class SolenoidWriter {
public:
- SolenoidWriter(::aos::EventLoop *event_loop)
+ SolenoidWriter(::aos::ShmEventLoop *event_loop)
: superstructure_output_fetcher_(
event_loop->MakeFetcher<superstructure::Output>(
"/superstructure")) {