hoverboard-robotics / hoverboard-driver

ROS hardware driver for UART-controlled hoverboard
MIT License
98 stars 54 forks source link

Wheels surging in speed #29

Open edkalarchian opened 8 months ago

edkalarchian commented 8 months ago

Good day everyone - I love your work on the hoverboards, thanks for your efforts! I am using Ubuntu 18.04 and ROS Melodic. The firmware is successfully uploaded to the hoverboard and I can control it via PS4 controller. The hoverboard was known good as we used to ride it. This device has the one mainboard and two sensor boards.

My issue is the wheels surge when trying to drive forward (or backwards) their speed increases and decreases and will eventually sound the onboard alarm. I believe I have the wiring correct to the motors and hall sensors. Additionally when I let go of the controller button, the rotations stop but the wheels will roll front and back many times, I feel its hunting for its 'point of stop', they will eventually stop. My cmd_vel shows steady control reliably and the wheel velocity readings show surges as I confirm physically. Also my odometry seems fine when reflected in RVIZ. I am using the launch file youve included in this repo with the port modified to my setup and with joy and teleop_twist_joy packages included. To me this seems like my robot needs some tuning and Im hoping you can point me towards where I might begin, unless this is something youve come across before and have a different suggestion.

I appreciate any info you can offer. Thank You! Ed