gbionics / gbionics/walking-controllers

Analog stick issue with iCubGenova04 joypad

Open
#91 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
162
Forks
51
PR merge metrics
No merged PRs in 30d

Description

There was the problem of the joypad sending unexpected rotational motion commands to the WalkingModule as soon as we started the controller, even when the analog stick was not touched. This persisted even after restarting the joypad modul.

We thought possibly it was related to deadband issue. But with a bit of debugging with prints from the joypad module, we noticed that the iCubGenova04 joypad sends non-zero values for the y axis of the left analog even if no one is touching the analog. From time to time the sent value is far away from zero (like bigger than 1). This seems to be the source of the occasional turning on the spot. The non-zero values are resetted to zero only when we press the stick.

https://user-images.githubusercontent.com/41757826/131138271-55e126a4-4c15-422f-97d2-67df49acef1f.mp4

So as a workaround for testing walking controller, we tried connecting another joytstick following the tutorial for pairing bluetooth devices with icub-head (in general Linux OS) is provided in https://icub-tech-iit.github.io/documentation/icub_operating_systems/icubos/bluetooth/.

We ran `bluetoothctl`.

There was already Joypad device SteelSeries with address 28::9A::4B::08::EC::67 (iCubGenova04 joypad) registered as a trusted/paired device.
We did a scan of the devices using scan on.
We registered the iCubGenova09 Joypad with address 28::9A::4B::08::E1::1B as a trusted device as well. This was done by running commands,

scan off
trust 28::9A::4B::08::E1::1B
connect 28::9A::4B::08::E1::1B

After, doing so we were able to run walking with iCubGenova09 joypad.

We need to remember to remove the pairing of iCubGenova09 after demo.

cc @prashanthr05 @isorrentino @S-Dafarra @Yeshasvitvs @DanielePucci

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.