Skip to content

Problem with Handy/Stoker #277

@wompi72

Description

@wompi72

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/buttplug@3.2.2/dist/web/buttplug.min.js:32
    N https://cdn.jsdelivr.net/npm/buttplug@3.2.2/dist/web/buttplug.min.js:32
    FromError https://cdn.jsdelivr.net/npm/buttplug@3.2.2/dist/web/buttplug.min.js:32
    ParseIncomingMessages https://cdn.jsdelivr.net/npm/buttplug@3.2.2/dist/web/buttplug.min.js:38
    parseMessages https://cdn.jsdelivr.net/npm/buttplug@3.2.2/dist/web/buttplug.min.js:44
    emit https://cdn.jsdelivr.net/npm/buttplug@3.2.2/dist/web/buttplug.min.js:7
    parseIncomingMessage https://cdn.jsdelivr.net/npm/buttplug@3.2.2/dist/web/buttplug.min.js:44
    connect https://cdn.jsdelivr.net/npm/buttplug@3.2.2/dist/web/buttplug.min.js:44

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions