hoverboard-robotics / hoverboard-driver

ROS hardware driver for UART-controlled hoverboard
MIT License
96 stars 52 forks source link

Error during communications. #3

Closed elector102 closed 4 years ago

elector102 commented 4 years ago

First, it is a great project! and congrats! a great job!. I ham having problems while I am trying to read the serial communication, using your node, one thing that I realize is that this node has a different version of hbprotocol, I am using this repo that have the version hbprotocol @ 6f9d1bd, and your repo uses that version: bipropellant @ 38f9384. it could cause some issues? in advantage! thank you very much.

elector102 commented 4 years ago

I am sure that tI am doing something wrong, if I try to make it work like original, I have this line. That when I tried to compile, it fails. it is because it is an Arduino library and the compiler can't found it(catkin)

alex-makarov commented 4 years ago

Hey @elector102 , I believe when you clone the repo with subfolders

git clone --recurse-submodules git@github.com:alex-makarov/hoverboard-driver.git

you should get the right version of the protocol cloned with it.

elector102 commented 4 years ago

Yes, I am doing that, exactly how do you say: Screenshot from 2020-03-31 09-37-54

And when I tried to compile I have the following: Screenshot from 2020-03-31 09-38-45

that is weird because it is asking for an Arduino library.

alex-makarov commented 4 years ago

@elector102 You are right, the submodule was pointing to the wrong commit. Fixed it, please pull and rebuild.

elector102 commented 4 years ago

Thanks, now it works!! sorry for the delay, I burned some boards in the middle, haha. Clearly, I am doing something wrong, I am loading this firmware to the board and trying to connect to any of the serial port(left sensor board and right sensor board). but I don't have any responses, Just in case, I am only downloading the firmware and flashing the hoverboard, without any modification. where is the default serial port of this board, and the speed is at 115200? sorry for this questions.

alex-makarov commented 4 years ago

Hey @elector102 , if I remember correctly I'm using the default config with the only setting:

  • define CONTROL_TYPE USART2_CONTROLLED

elector102 commented 4 years ago

Great! thanks, @alex-makarov ! yea, you need to upload the firmware using an environment variable during the compilation to select the serial communication. I hope in the future collaborate with your project.