correctly set the team number for tests
Without this, it's going to pick some random team number on some
computers and fail on others (depending on the network configuration).
Change-Id: I182ed50299170de737812eadee68ff418e6518e6
diff --git a/aos/common/controls/control_loop_test.h b/aos/common/controls/control_loop_test.h
index 13c4f0d..a1165a9 100644
--- a/aos/common/controls/control_loop_test.h
+++ b/aos/common/controls/control_loop_test.h
@@ -19,6 +19,9 @@
ControlLoopTest();
virtual ~ControlLoopTest();
+ void set_team_id(uint16_t team_id) { team_id_ = team_id; }
+ uint16_t team_id() const { return team_id_; }
+
// Sends out all of the required queue messages.
void SendMessages(bool enabled);
// Ticks time for a single control loop cycle.
@@ -37,6 +40,8 @@
static constexpr ::aos::time::Time kDSPacketTime =
::aos::time::Time::InMS(20);
+ uint16_t team_id_ = 971;
+
::aos::time::Time last_ds_time_ = ::aos::time::Time::InSeconds(0);
::aos::time::Time current_time_ = ::aos::time::Time::InSeconds(0);