From b03f8ddb2ec44e8bda81fa5c181446185f869959 Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Mon, 31 Jan 2022 22:01:31 -0800 Subject: [PATCH] [examples] fix incorrect variable in Arm Simulation Pref (#3980) --- .../src/main/cpp/examples/ArmSimulation/cpp/Robot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpilibcExamples/src/main/cpp/examples/ArmSimulation/cpp/Robot.cpp b/wpilibcExamples/src/main/cpp/examples/ArmSimulation/cpp/Robot.cpp index 49c3efc830..330ddc44fa 100644 --- a/wpilibcExamples/src/main/cpp/examples/ArmSimulation/cpp/Robot.cpp +++ b/wpilibcExamples/src/main/cpp/examples/ArmSimulation/cpp/Robot.cpp @@ -94,7 +94,7 @@ class Robot : public frc::TimedRobot { frc::Preferences::SetDouble(kArmPositionKey, armPosition.value()); } if (!frc::Preferences::ContainsKey(kArmPKey)) { - frc::Preferences::SetDouble(kArmPKey, armPosition.value()); + frc::Preferences::SetDouble(kArmPKey, kArmKp); } }