From bdecb385dba41955d20f80469e320447860c521c Mon Sep 17 00:00:00 2001 From: Maxwell Lin <28914712+maxwellmlin@users.noreply.github.com> Date: Mon, 15 Jan 2024 10:35:42 -0500 Subject: [PATCH] PID Panel Fix (#501) --- foxglove/extensions/pid-panel/src/PIDPanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foxglove/extensions/pid-panel/src/PIDPanel.tsx b/foxglove/extensions/pid-panel/src/PIDPanel.tsx index 8946ab656..01ce8ce55 100644 --- a/foxglove/extensions/pid-panel/src/PIDPanel.tsx +++ b/foxglove/extensions/pid-panel/src/PIDPanel.tsx @@ -292,7 +292,7 @@ function PIDPanel({ context }: { context: PanelExtensionContext }): JSX.Element }, }, }} - value={inEditMode ? state.editedGains[Number(axis)]![gainType] : gain} // Display the true gain value if not in edit mode + value={inEditMode ? undefined : gain} // Display the true gain value if not in edit mode onFocus={() => { // Add the current gain to editedGains when entering edit mode updateEditedGains(state.pid[state.loop]![Number(axis)]![gainType]!, Number(axis), gainType);