How can I access pitch and roll data from the BlueROV2? I want to input this into my own control algorithm.
How can I pass a control signal to an external device connected via USB to the onboard Raspberry Pi?
I am completing a research project using the BlueROV2 and haven’t done anything like this before, I would greatly appreciate some guidance on where to begin.
Hi @jack7 -
This thread discusses how you might send the data you’re after.
This guide covers using Node-RED with BlueOS, and while it is focused mostly on inputs, you could focus on the serial output to a USB device - what sort of payload are you planning to control?
Hi @jack7 -
NodeRed is a lot easier than dealing with the code, at least for most people! I’m not sure you can reference the device by the ID in python as you can in Node-RED.
That said, asking chatGPT or google Gemini may help you get python talking to the port at the serial/by-id address - a good sanity check would be using the /dev/ttyACM0 or /dev/ttyUSB#, although this may change when the system is restarted or device plugged into a different port.
Hi @csargent -
Very interesting - so you are sending the UDP message motor speed to the vehicle, and then using a BlueOS Serial Bridge to route the message to your desired serial port?
Cool!