Add CYCPLUS BC2 shifter support - #3905
Open
cagnulein wants to merge 3 commits into
Open
Conversation
Implements support for the CYCPLUS BC2 Bluetooth shifter device following the same pattern as Zwift Click and Elite Square controllers. Features: - Uses Nordic UART Service for communication - Monitors 8-byte packets for shift up/down button states (bytes 6 and 7) - Triggers gear changes when button state transitions between pressed values - Integrates with bike gear control system - Enabled via zwift_play setting Files changed: - src/zwift_play/cycplusbc2.h: Header with Nordic UART UUIDs and class definition - src/zwift_play/cycplusbc2.cpp: Implementation with button state tracking - src/devices/bluetooth.h: Added cycplusbc2Device pointer - src/devices/bluetooth.cpp: Added device discovery and signal connections - src/qdomyos-zwift.pri: Added new source files to build The device name is "CYCPLUS BC2" and follows the reference implementation from https://github.com/jonasbark/swiftcontrol
Use static_cast to disambiguate the overloaded error signal from QLowEnergyService, following the same pattern used in zwiftclickremote.cpp
Include QLowEnergyConnectionParameters header for Android builds to fix incomplete type error when using connection parameters in serviceScanDone()
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements support for the CYCPLUS BC2 Bluetooth shifter device following the same pattern as Zwift Click and Elite Square controllers.
Features:
Files changed:
The device name is "CYCPLUS BC2" and follows the reference implementation from https://github.com/jonasbark/swiftcontrol