@EliotBR My code was extremely similar to yours, just using a different port. However, even after switching to 14660, I’m still having issues with sensors not updating. Just in case though, here’s a version of my code that doesn’t seem to work:
from pymavlink import mavutil
import time
if __name__ == "__main__":
# --out udpout:192.168.2.1:14660 in http://192.168.2.2:2770/mavproxy list
master = mavutil.mavlink_connection('udpin:0.0.0.0:14660')
master.wait_heartbeat()
for i in range(800):
#in real code this is sending in a separate thread
master.mav.heartbeat_send(
6, #MAVTYPE =
8, #MAVAUTOPILOT
128, # MAV_MODE =
0,0) #MAVSTATE =
att = master.recv_match(type='ATTITUDE',blocking=True).to_dict()
print(att['roll'],att['pitch'],att['yaw'])
time.sleep(.2)
According to http://192.168.2.2:2770/system, my companion computer software is version 0.0.17, and my ArduSub version is 3.5.4. I see here that the current version of the companion computer and ArduSub are 0.0.29 and 4.0.3, but I don’t see a button on http://192.168.2.2:2770/system which tells me to update the software, and given that I can’t seem to connect to wifi, I looked at this tutorial which says that ROVs purchased after June 2017 shouldn’t need to update. Given that, I’m not sure if you still think that software version could be an issue. If so, should I manually rewrite the SD card as described in the link?