Skip to content

Commit

Permalink
PID Panel Fix (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellmlin authored Jan 15, 2024
1 parent 8480717 commit bdecb38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foxglove/extensions/pid-panel/src/PIDPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bdecb38

Please sign in to comment.