Skip to content

Remove calibration check when asserting availability of 6-pos switch positions#1368

Merged
pfeerick merged 1 commit intomainfrom
switch-6pos-check
Jan 11, 2022
Merged

Remove calibration check when asserting availability of 6-pos switch positions#1368
pfeerick merged 1 commit intomainfrom
switch-6pos-check

Conversation

@raphaelcoeffic
Copy link
Member

@raphaelcoeffic raphaelcoeffic commented Jan 7, 2022

Description

Currently, if your 6POS is not calibrated correctly, you cannot select anything but the first position in switch select drop-downs, because isSwitchAvailable() verifies that the 6POS has the number of calibrated positions before letting you choose these positions, which is an issue in simulation, as you cannot really calibrate the 6POS properly.

Further, I think it might be confusing to not be able to select a switch position just because the calibration is off.

Proposed change

This PR removes the check for calibrated positions.

@pfeerick
Copy link
Member

pfeerick commented Jan 7, 2022

LGTM. I don't see a valid reason for the calibration state of the MULTIPOS to remove the positions from that switch. (i.e. such as 6POS). It by defintition has six discrete positions, even if the calibration is screwed (meaning the real issue is it needs calibrating properly). It would be like saying for the 3POS switches that a position is missing, when it is declared as a 3POS switch!

@pfeerick pfeerick added the enhancement ✨ New feature or request label Jan 7, 2022
@pfeerick pfeerick added this to the 2.6 milestone Jan 7, 2022
Copy link
Member

@pfeerick pfeerick left a comment

Choose a reason for hiding this comment

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

LGTM. This means even if you have a calibrated 6POS you can at least pick the options. Obviously they won't work properly until you calibrate, but can't fix that problem!

@pfeerick pfeerick merged commit 71b0e72 into main Jan 11, 2022
@pfeerick pfeerick deleted the switch-6pos-check branch January 11, 2022 12:46
pfeerick pushed a commit that referenced this pull request Jan 11, 2022
…positions (#1368)

Thus allowing it to show on radio when calibration is invalid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement ✨ New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants