-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Correct the state addressing for Scalar and Rotate
Fixes #668
- Loading branch information
1 parent
cfd9a65
commit 9ef17d9
Showing
4 changed files
with
135 additions
and
22 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
61 changes: 61 additions & 0 deletions
61
.../tests/util/device_test/device_test_case/config/tcode_linear_and_vibrate_user_config.json
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,61 @@ | ||
{ | ||
"version": { | ||
"major": 3, | ||
"minor": 999 | ||
}, | ||
"user-configs": { | ||
"protocols": { | ||
"tcode-v03": { | ||
"communication": [{ | ||
"btle": { | ||
"names": [ | ||
"tcode-v03" | ||
], | ||
"services": { | ||
"0000eea0-0000-1000-8000-00805f9b34fb": { | ||
"tx": "0000ee01-0000-1000-8000-00805f9b34fb" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"configurations": [] | ||
} | ||
}, | ||
"devices": [ | ||
{ | ||
"identifier": { | ||
"protocol": "tcode-v03", | ||
"identifier": "tcode-v03", | ||
"address": "COM7" | ||
}, | ||
"config": { | ||
"name": "TCode v0.3 (Single Linear Axis + Single Vibe)", | ||
"features": [{ | ||
"description": "", | ||
"feature-type": "Position", | ||
"actuator": { | ||
"step-range": [0, 100], | ||
"step-limit": [0, 100], | ||
"messages": ["LinearCmd"] | ||
} | ||
}, { | ||
"description": "", | ||
"feature-type": "Vibrate", | ||
"actuator": { | ||
"step-range": [0, 99], | ||
"step-limit": [0, 99], | ||
"messages": ["ScalarCmd"] | ||
} | ||
} | ||
], | ||
"user-config": { | ||
"allow": false, | ||
"deny": false, | ||
"index": 0 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
buttplug/tests/util/device_test/device_test_case/test_tcode_linear_and_vibrate.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,45 @@ | ||
user_device_config_file: "tcode_linear_and_vibrate_user_config.json" | ||
devices: | ||
- identifier: | ||
name: "tcode-v03" | ||
address: "COM7" | ||
expected_name: "TCode v0.3 (Single Linear Axis + Single Vibe)" | ||
device_commands: | ||
- !Messages | ||
device_index: 0 | ||
messages: | ||
- !Linear | ||
- Index: 0 | ||
Position: 0.51 | ||
Duration: 200 | ||
- !Commands | ||
device_index: 0 | ||
commands: | ||
- !Write | ||
endpoint: tx | ||
data: [76, 48, 53, 48, 73, 50, 48, 48, 10] | ||
write_with_response: false | ||
- !Messages | ||
device_index: 0 | ||
messages: | ||
- !Vibrate | ||
- Index: 0 | ||
Speed: 1 | ||
- !Commands | ||
device_index: 0 | ||
commands: | ||
- !Write | ||
endpoint: tx | ||
data: [86, 48, 57, 57, 10] | ||
write_with_response: false | ||
- !Messages | ||
device_index: 0 | ||
messages: | ||
- !Stop | ||
- !Commands | ||
device_index: 0 | ||
commands: | ||
- !Write | ||
endpoint: tx | ||
data: [86, 48, 48, 48, 10] | ||
write_with_response: false |