I have the BlueROV2 and want to manipulate data of depth sensor using Raspberry Pi in Real Time when the ROV is working.
I had read about MAVLink protocol here:
But I don’t find how to read the data, the text to make something with this in a program in Python Or C++.
So, I found this web page:
I installed and saw that to the header manipulate I need to select the message from here:
But, I don know which of they include that, I need to read the depth sensor. Then I found this:
And I found this:
where the values are:
while the funtions of the code are:
mavlink_msg_attitude_pack(1, 200, &msg, microsSinceEpoch(), 1.2, 1.7, 3.14, 0.01, 0.02, 0.03);
mavlink_msg_sys_status_pack(1, 200, &msg, 0, 0, 0, 500, 11000, -1, -1, 0, 0, 0, 0, 0, 0);
I need to be capable of read data in a program file first, after I will need to start to controll it to make that the BlueROV2 follow paths no needing an operator.