I have been trying to control my rover with a python script using pymavlink. I have raspberry pi 3 acting as a bridge between the pixhawk and my PC as described here.
This is the script I run on my PC:
from pymavlink import mavutil
mavutil.set_dialect("ardupilotmega")
autopilot = mavutil.mavlink_connection('udpin:192.168.1.88:14550')
wait_heartbeat(autopilot)
mavlink = mavutil.mavlink
autopilot.set_mode_manual()
autopilot.mav.command_long_send(autopilot.target_system, autopilot.target_component,
mavlink.MAVLINK_MSG_ID_RC_CHANNELS_OVERRIDE, 255,
0, 0, 0, 0, 0, 0, 0)
From the console output of the raspberry pi, running mavproxy, I get the following output:
Got MAVLink msg: COMMAND_ACK {command : 176, result : 0}
MANUAL> Mode MANUAL
Got MAVLink msg: COMMAND_ACK {command : 70, result : 3}
My script was able to change modes but unable to control the rover. The problem is probably in mav message. I would be grateful for any help.