Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Correct motorbunny rotation feature
Porting the following changes from C#: buttplugio/buttplug-csharp@1421284 buttplugio/buttplug-csharp@f7db350
- Loading branch information
1 parent
58431ee
commit b8c157e
Showing
5 changed files
with
109 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
74 changes: 74 additions & 0 deletions
74
buttplug/tests/util/device_test/device_test_case/test_motorbunny_protocol.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
devices: | ||
- identifier: | ||
name: "MB Controller" | ||
expected_name: "Motorbunny Classic" | ||
device_commands: | ||
- !Messages | ||
device_index: 0 | ||
messages: | ||
- !Vibrate | ||
- Index: 0 | ||
Speed: 0.5 | ||
- !Commands | ||
device_index: 0 | ||
commands: | ||
- !Write | ||
endpoint: tx | ||
data: [0xff, 0x80, 0x14, 0x80, 0x14, 0x80, 0x14, 0x80, 0x14, 0x80, 0x14, 0x80, 0x14, 0x80, 0x14, 0x0c, 0xec] | ||
write_with_response: false | ||
- !Messages | ||
device_index: 0 | ||
messages: | ||
- !Vibrate | ||
- Index: 0 | ||
Speed: 0.75 | ||
- !Commands | ||
device_index: 0 | ||
commands: | ||
- !Write | ||
endpoint: tx | ||
data: [0xff, 0xC0, 0x14, 0xC0, 0x14, 0xC0, 0x14, 0xC0, 0x14, 0xC0, 0x14, 0xC0, 0x14, 0xC0, 0x14, 0xcc, 0xec] | ||
write_with_response: false | ||
- !Messages | ||
device_index: 0 | ||
messages: | ||
- !Rotate | ||
- Index: 0 | ||
Speed: 0.5 | ||
Clockwise: true | ||
- !Commands | ||
device_index: 0 | ||
commands: | ||
- !Write | ||
endpoint: tx | ||
data: [0xfa, 0x2a, 0x80, 0x2a, 0x80, 0x2a, 0x80, 0x2a, 0x80, 0x2a, 0x80, 0x2a, 0x80, 0x2a, 0x80, 0xa6, 0xec] | ||
write_with_response: false | ||
- !Messages | ||
device_index: 0 | ||
messages: | ||
- !Rotate | ||
- Index: 0 | ||
Speed: 0.75 | ||
Clockwise: false | ||
- !Commands | ||
device_index: 0 | ||
commands: | ||
- !Write | ||
endpoint: tx | ||
data: [0xfa, 0x29, 0xC0, 0x29, 0xC0, 0x29, 0xC0, 0x29, 0xC0, 0x29, 0xC0, 0x29, 0xC0, 0x29, 0xC0, 0x5F, 0xec] | ||
write_with_response: false | ||
- !Messages | ||
device_index: 0 | ||
messages: | ||
- !Stop | ||
- !Commands | ||
device_index: 0 | ||
commands: | ||
- !Write | ||
endpoint: tx | ||
data: [ 0xf0, 0x00, 0x00, 0x00, 0x00, 0xec ] | ||
write_with_response: false | ||
- !Write | ||
endpoint: tx | ||
data: [ 0xa0, 0x00, 0x00, 0x00, 0x00, 0xec ] | ||
write_with_response: false |