From 6593f4346ef5939dcce8f12c520e503eb96db26a Mon Sep 17 00:00:00 2001 From: Thad House Date: Mon, 24 Dec 2018 00:06:53 -0800 Subject: [PATCH] Default to DS attached to true in sim (#1500) Otherwise, it is required to be set manually, which isn't obvious. This is because the HighLevel DS classes check that the ds is attached before enabling --- hal/src/main/native/sim/mockdata/DriverStationData.cpp | 2 +- hal/src/main/native/sim/mockdata/DriverStationDataInternal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hal/src/main/native/sim/mockdata/DriverStationData.cpp b/hal/src/main/native/sim/mockdata/DriverStationData.cpp index 7ddb8cf2ae..d72d6b30e6 100644 --- a/hal/src/main/native/sim/mockdata/DriverStationData.cpp +++ b/hal/src/main/native/sim/mockdata/DriverStationData.cpp @@ -41,7 +41,7 @@ void DriverStationData::ResetData() { test.Reset(false); eStop.Reset(false); fmsAttached.Reset(false); - dsAttached.Reset(false); + dsAttached.Reset(true); allianceStationId.Reset(static_cast(0)); matchTime.Reset(0.0); diff --git a/hal/src/main/native/sim/mockdata/DriverStationDataInternal.h b/hal/src/main/native/sim/mockdata/DriverStationDataInternal.h index db3d23b9d2..f7eb132b8c 100644 --- a/hal/src/main/native/sim/mockdata/DriverStationDataInternal.h +++ b/hal/src/main/native/sim/mockdata/DriverStationDataInternal.h @@ -63,7 +63,7 @@ class DriverStationData { SimDataValue test{false}; SimDataValue eStop{false}; SimDataValue fmsAttached{false}; - SimDataValue dsAttached{false}; + SimDataValue dsAttached{true}; SimDataValue allianceStationId{static_cast(0)};