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

send_vibrate_cmd(float) only works with single-motor devices #11

Open
Baguettedood opened this issue Aug 23, 2020 · 0 comments
Open

send_vibrate_cmd(float) only works with single-motor devices #11

Baguettedood opened this issue Aug 23, 2020 · 0 comments

Comments

@Baguettedood
Copy link

Baguettedood commented Aug 23, 2020

Devices with multiple motors will not vibrate as expected when using send_vibrate_cmd(float). Instead, only the first motor of that device will vibrate.

Steps to reproduce:

  1. Connect a device with multiple motors (e.g. Lovense Edge)
  2. Perform send_vibrate_cmd(1.0) on that device.
  3. The first motor will vibrate while the second does not.

Expected behavior:

All motors will vibrate with the same intensity.

It appears to be because Line 255 of buttplug/client/client.py only sets the speed of the motor at index 0 and does not consider devices with multiple motors.

Workaround: Multiplying a list by the number of motors:
e.g.

vibratorCount = dev.allowed_messages["VibrateCmd"].feature_count
intensity = [1.0] * vibratorCount
await dev.send_vibrate_cmd(intensity)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant