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

Board hangs on first write #1

Open
danmartinez78 opened this issue Oct 2, 2017 · 6 comments
Open

Board hangs on first write #1

danmartinez78 opened this issue Oct 2, 2017 · 6 comments

Comments

@danmartinez78
Copy link

I've tested with two linux systems. There seems to be a problem writing the initial values to the board. The ROS node opens the serial port successfully but the application stalls on writing the first command to the board.

@Murphy3220
Copy link
Owner

I have actually had the same problem when using Linux and I have yet to find the cause of the issue. Everything works fine in Windows but, like you mentioned, it hangs on Linux. I'm not sure if it is this code or something with the serial port in Linux because I have the same thing happen to another serial device. Perhaps its a permission issue.

@Murphy3220
Copy link
Owner

Make sure you have read/write privileges on the serial port in Linux. I did read that there is an issue with Arduino boards and the auto-reset...so maybe that has something to do with it.

@WenchaoLiu93
Copy link

Hey! Can you clarify what issue it is? Since ROS doesn't work on Windows, does it mean that the IMU can't be used with ROS?

@Murphy3220
Copy link
Owner

I'm not sure if it can be used with ROS. Ive only tested and used this AHRS system on windows and it works great. As far as the issue danmartinez78 is having, I believe it has to do with the read/write privileges in Linux or the arduino auto-reset...but I'm not sure which. Basically if you were to run this AHRS in Ubuntu, it connects to the IMU just fine but when it tries to write, say send the #o1 command, it freezes on the write. I'm not sure how to fix it and havnt been able to spend time trying to debug the issue but I'm sure some Linux guru could solve the issue pretty easily.

@WenchaoLiu93
Copy link

Thanks for your quick reply. I guess I will have to wait for someone to fix it then. Thanks for your contribution as well!

@Murphy3220
Copy link
Owner

No problem at all. There is definitely room for improvement. I'm an RF engineer by trade so coding isn't first on my skill set, so I'm sure my code could be cleaned up and improved.

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

3 participants