Hello, I'm searching if there is a way for interact and send commands to my quadcopter with MATLAB, instead of a Ground Control Station. I tried with MATMAV but seems not working. I also tried with MAVLink Support and also this seems not working for send command to my quadcopter. This is my code: dialect = mavlinkdialect('common.xml'); mavlink = mavlinkio(dialect); connect(mavlink, 'UDP', 'LocalPort', 14550); %% client = mavlinkclient(mavlink, 1, 1) % specify client (1 client = 1 drone) connectionList = listConnections(mavlink) clientsList = listClients(mavlink) topicsList = listTopics(mavlink) %% message_num = 400; cmdMsg = createcmd(dialect, 'int', message_num) cmdMsg num2enum(dialect,"MAV_CMD", message_num) %% sendudpmsg(mavlink, cmdMsg, '0.0.0.0', 14550) There are other approaches to send commands to quadcopter through MATLAB?
Kshitij Singh answered .
2025-11-20
sendmsg(mavlink, client);