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

GCSViews: ConfigRawParams: look up param type for bitmask helper #3189

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

IamPete1
Copy link
Member

Currently the bitmask helper assumes int32, this means the sign bit in smaller masks cannot be set. INS_HNTCH_HMNCS is a example of a int8 param.

Currently the 8th bit will set the value to 128:
image

This is out of range for a int8, so when you write and read back you get a constrained down value of 127 which is a completely different bitmask.

image

With this patch when setting the 8th bit:

image

We now get -128 which is the correct in range value for the int8 param type.

@meee1 meee1 merged commit bad4370 into ArduPilot:master Oct 2, 2023
7 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

2 participants