-
Notifications
You must be signed in to change notification settings - Fork 260
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
feat: Enable Tilt Value Configuration via WebConfig #500
Conversation
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', |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
…inese and Portuguese
proto/config.proto
Outdated
optional int32 tiltRightAnalogRightPin = 12; | ||
|
||
optional SOCDMode tiltSOCDMode = 13; | ||
optional int32 factorTilt1LeftX = 3; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
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!