Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Enable Tilt Value Configuration via WebConfig #500

Merged

Conversation

smashBrosKanu
Copy link
Contributor

Overview

This pull request adds the ability to configure the Tilt value through WebConfig.

Background

Different characters may require unique Tilt values to perform their intended actions. Given this, it is desirable to allow users to set these values themselves.

Usage

Users can now freely set the Tilt value through the WebConfig settings interface.

Impact

This change affects the WebConfig UI and the logic that processes the Tilt value.

Testing

Manual testing was conducted in a local environment to ensure that the Tilt value could be accurately set.

Please review. Thank you!

@TheTrainGoes
Copy link
Contributor

Looks neat! I will check this out today when I have some time

'tilt-2-factor-left-x-label': 'Tilt 2 Factor Left X',
'tilt-2-factor-left-y-label': 'Tilt 2 Factor Left Y',
'tilt-2-factor-right-x-label': 'Tilt 2 Factor Right X',
'tilt-2-factor-right-y-label': 'Tilt 2 Factor Right Y',
Copy link
Contributor

Choose a reason for hiding this comment

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

You should be able to remove these keys if they are not translated, it should fallback to english.

'tilt-2-factor-left-x-label': 'Tilt 2 Factor Left X',
'tilt-2-factor-left-y-label': 'Tilt 2 Factor Left Y',
'tilt-2-factor-right-x-label': 'Tilt 2 Factor Right X',
'tilt-2-factor-right-y-label': 'Tilt 2 Factor Right Y',
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

optional int32 tiltRightAnalogRightPin = 12;

optional SOCDMode tiltSOCDMode = 13;
optional int32 factorTilt1LeftX = 3;
Copy link
Contributor

Choose a reason for hiding this comment

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

You should never change the tag numbers of existing protobuf fields, this breaks backwards compatibility. You can add as many new fields as you like, and you can change the order of the fields in a struct as long as the tag numbers of existing fields do not change.

arntsonl
arntsonl previously approved these changes Sep 15, 2023
Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

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

Looks good!

@arntsonl arntsonl merged commit 69a20ee into OpenStickCommunity:main Sep 15, 2023
2 checks passed
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.

None yet

5 participants