Lock a regulator at its current value #96

Open
opened 2025-07-08 18:01:10 +00:00 by Vectornaut · 0 comments
Member

When a regulator is in measurement mode, there should be an easy way to set it as a constraint at its current measured value.

Implementation ideas

This control could be combined with an indicator that shows whether or not a regulator is set. For example, there could be a lock toggle that works as follows:

  • Typing in the value field of a measurement-mode regulator sets the regulator as a constraint (like it currently does, as of pull request #91) and switches the lock toggle to the locked state.
  • Clicking the lock toggle of a measurement-mode regulator sets the regulator as a constraint, at its current measured value, and switches the lock toggle to the locked state.
  • Clicking the lock toggle of a constraint-mode regulator puts the regulator in measurement mode and switches the lock toggle to the unlocked state.
When a regulator is in measurement mode, there should be an easy way to set it as a constraint at its current measured value. ### Implementation ideas This control could be combined with an indicator that shows whether or not a regulator is set. For example, there could be a *lock* toggle that works as follows: - Typing in the value field of a measurement-mode regulator sets the regulator as a constraint (like it currently does, as of pull request #91) and switches the lock toggle to the locked state. - Clicking the lock toggle of a measurement-mode regulator sets the regulator as a constraint, at its current measured value, and switches the lock toggle to the locked state. - Clicking the lock toggle of a constraint-mode regulator puts the regulator in measurement mode and switches the lock toggle to the unlocked state.
Vectornaut added the
enhancement
label 2025-07-08 18:01:11 +00:00
Sign in to join this conversation.
No description provided.