Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Handy/Stoker #277

Open
wompi72 opened this issue Oct 26, 2024 · 0 comments
Open

Problem with Handy/Stoker #277

wompi72 opened this issue Oct 26, 2024 · 0 comments
Labels

Comments

@wompi72
Copy link

wompi72 commented Oct 26, 2024

Describe the bug
I want to control the Handy with a script. As the Handy doesn't seem to have a oscillate function, I try to make it work with the linear command.

As far as I understand the command, it should work like this:

    let duration = 500;
    let offset = 0.2;
    device.linear([[duration, 0 + offset], [duration, 1 - offset]]);

But this throws an error in Intiface:
image
It seems that the duration and position Values are swapped.


So I tried to to swap those values, like this:

    device.linear([[duration, 0 + offset], [duration, 1 - offset,]]);

Which throws an error in the console:

Uncaught (in promise) Error: {"ButtplugDeviceError":{"DeviceFeatureCountMismatch":[1,2]}}
    F https://cdn.jsdelivr.net/npm/[email protected]/dist/web/buttplug.min.js:32
    N https://cdn.jsdelivr.net/npm/[email protected]/dist/web/buttplug.min.js:32
    FromError https://cdn.jsdelivr.net/npm/[email protected]/dist/web/buttplug.min.js:32
    ParseIncomingMessages https://cdn.jsdelivr.net/npm/[email protected]/dist/web/buttplug.min.js:38
    parseMessages https://cdn.jsdelivr.net/npm/[email protected]/dist/web/buttplug.min.js:44
    emit https://cdn.jsdelivr.net/npm/[email protected]/dist/web/buttplug.min.js:7
    parseIncomingMessage https://cdn.jsdelivr.net/npm/[email protected]/dist/web/buttplug.min.js:44
    connect https://cdn.jsdelivr.net/npm/[email protected]/dist/web/buttplug.min.js:44

Expected behavior
The data is send correctly and the Handy moves.

@wompi72 wompi72 added the bug label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant