USB Sensors mess with each other, ROS Ubuntu Mate
Hi,
Im working with an autonomous sailboat with a raspberry pi 3 that uses these sensors:
Gill Ultrasonic Windsensor
MTi-G xsesnsor (gyro and gps data)
Im having an issue related to the c++ program that connects my software to the wind sensor. The problem is that the wind sensor will connect to usb1 staticly (using serial) in which it will be pure luck that this is the correct usb as it is dynamically assigned when inserted. The xsensor on the other hand will find itself with the driver I got from ROS git rep. Problem occurs when the wind sensor driver will try to use the same USBx as the xsens driver, resulting in the xsens crashing.
Is there a way to physically assign say, USB0 to always be the bottom right usb on the raspberry pi? and if so how?
I've tried to google this alot without any good results.
I'm using Ubuntu mate for ROS by the way.