Skip to content

fix(Target Test): Correctly display Accel and Gyro - #656

Open
pastaq wants to merge 1 commit into
mainfrom
pastaq/imu_test_fix
Open

fix(Target Test): Correctly display Accel and Gyro#656
pastaq wants to merge 1 commit into
mainfrom
pastaq/imu_test_fix

Conversation

@pastaq

@pastaq pastaq commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

After Capability::Accelerometer and Capability::Gyroscope were added, and as a temproary workaround, we started blanket converting all gyroscope data back to Gamepad::Accelerometer and Gamepad::Gyro to not break targets. As a consequence, the capability map for the unified target never detects the adjusted capability since the source device never advertised it to the composite device.

Add additional workaround to convert the reported capabilities to the one that is supported in target devices.

After Capability::Accelerometer and Capability::Gyroscope were added, and as a temproary workaround, we started blanket converting all gyroscope data back to Gamepad::Accelerometer and Gamepad::Gyro to not break targets. As a consequence, the capability map for the unified target never detects the adjusted capability since the source device never advertised it to the composite device.

Add additional workaround to convert the reported capabilities to the one that is supported in target devices.
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