Skip to content

MavlinkCheckBoxBitMask: fix bitmask value formatting - #3723

Open
tatsuy wants to merge 1 commit into
ArduPilot:masterfrom
tatsuy:pr-bitmask-ui
Open

MavlinkCheckBoxBitMask: fix bitmask value formatting#3723
tatsuy wants to merge 1 commit into
ArduPilot:masterfrom
tatsuy:pr-bitmask-ui

Conversation

@tatsuy

@tatsuy tatsuy commented May 14, 2026

Copy link
Copy Markdown
Contributor

Fiexed #3696.
This is primarily a Mission Planner Set Bitmask UI issue.

Adding a small bit to a bitmask value greater than 10,000,000 makes this phenomenon easier to reproduce.

The bitmask popup previously built the selected value through a float and returned it via Value.ToString(). For larger bitmask values the displayed parameter value could be rounded before being written back to the parameter cell.

[Before]
SIM_CAN_SRV_MSK
Servo 25 -> 16777220
Servo 3 + Servo 25 -> 16777220

[After - This PR]
SIM_CAN_SRV_MSK 16777216
Servo 25 -> 16777216
Servo 3 + Servo 25 -> 16777220

@tatsuy

tatsuy commented May 29, 2026

Copy link
Copy Markdown
Contributor Author

@meee1 Could you look at this if you have time?
We can reproduce this easily using SITL and real FC.
image

image

Problems occur with certain parameters, such as FLTMODE_GCSBLOCK and CAN_D1_UC_SRV_BM.

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.

1 participant