Skip to content

User interface for managing mismatched liquid calibration COMs#42

Merged
sanworks merged 11 commits intosanworks:developfrom
ogeesan:feature/liquid-com-buttons
Nov 21, 2025
Merged

User interface for managing mismatched liquid calibration COMs#42
sanworks merged 11 commits intosanworks:developfrom
ogeesan:feature/liquid-com-buttons

Conversation

@ogeesan
Copy link
Contributor

@ogeesan ogeesan commented Nov 2, 2025

Current Behaviour:
Liquid calibration files specify which COM port they were last used with.
During startup, a Command Window warning is issued if the currently booting Bpod's COM does not match the COM in the liquid calibration file that was loaded.

Desired Behaviour:
Instead of a warning into the Command Window, detection of the COM discrepancy should raise a UI that allows user to either ignore the discrepancy (with the intent of recalibrating the system) or:

  • For single machine setups: over-write the COM field of the existing liquid calibration file with the current COM.
  • For multi machine setups: "import" a calibration file from a different machine into the current machine's Config/.

This PR implements the desired behaviour.

Copy link
Owner

@sanworks sanworks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi George,

Is it necessary to convert Linux COM ports to windows style? I checked with git grep and it looks like getCurrentCOM is called in many places throughout BpodLib, and its output is exposed to user user (e.g. saving the COM port with settings or calibration data). This would be confusing to users on Linux, who only know the machine by its Linux port name.

Thanks!
Josh

@ogeesan
Copy link
Contributor Author

ogeesan commented Nov 6, 2025

Hey Josh! No it isn't necessary to convert the COM. The original reason that I made it convert everything to "COM" is that I thought it would be easier to search for machine identities. This actually isn't true, so there's no good reason to keep it that way.

It's simple change for this, however the tests have to be updated to handle the Linux case. I'll have this done within a day or two.

@ogeesan ogeesan requested a review from sanworks November 15, 2025 12:40
@sanworks sanworks merged commit 41da296 into sanworks:develop Nov 21, 2025
2 checks passed
@sanworks
Copy link
Owner

Hi George,

I merged this, but then discovered a pair of bugs:

  • In a clean setup where /Bpod Local/ does not exist, the default liquid calibration file is copied but a COM port field is not added, so the new handling GUIs are never triggered. This is true for single and multi-setup.

  • In a run with the multi-setup, the GUI listed the COM port it claims it couldn't detect (screenshot attached).

COM mismatch GUI issue

Thanks,
Josh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants