From 40f9a87e7027394fd786984ad0d0f03dfe3140a6 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 23 May 2026 17:37:38 -0700 Subject: [PATCH] [xrp] Fix motor support (#8916) The protocol layer got out of sync with the rename to throttle. --- simulation/halsim_xrp/src/main/native/cpp/XRP.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simulation/halsim_xrp/src/main/native/cpp/XRP.cpp b/simulation/halsim_xrp/src/main/native/cpp/XRP.cpp index 9dbe119426..17befb327a 100644 --- a/simulation/halsim_xrp/src/main/native/cpp/XRP.cpp +++ b/simulation/halsim_xrp/src/main/native/cpp/XRP.cpp @@ -144,9 +144,9 @@ void XRP::HandleMotorSimValueChanged(const wpi::util::json& data) { deviceId = 3; } - auto dutyCycle = motorData->lookup("is_number()) { - m_motor_outputs[deviceId] = dutyCycle->get_number(); + auto throttle = motorData->lookup("is_number()) { + m_motor_outputs[deviceId] = throttle->get_number(); } }