필터 지우기
필터 지우기

send mavlink message to px4 by udp

조회 수: 6 (최근 30일)
seongheon kim
seongheon kim 2021년 1월 17일
답변: Amrtanshu Raj 2021년 2월 1일
i want to do offboard control by using matlab to control px4.
im trying to send command (mavlink message) to px4 by udp .
for example , i give the thrust command like the picture. but nothing happened for px4. (i run px4 software in the loop with gazebo on my desktop)
do i need to do something before giving a command? or is that not the way to give command to px4??
sorry for my poor english.
i will be appriciated with any kind of clues for this, thank you !!
  댓글 수: 2
Ankur Bose
Ankur Bose 2021년 1월 19일
MAVLink provides the Path Planning Protocol that enables the offboard control of the drone. Did you take a look at that?
seongheon kim
seongheon kim 2021년 1월 19일
thank you for the answers!
I just have looked at that but I couldnt find that they support Matlab.
also I know that px4 support python and c++ for offboard control. but they are not what i wanted
I want to control px4 with Matlab .. I wonder if there is another way
thank you so much :)

댓글을 달려면 로그인하십시오.

답변 (1개)

Amrtanshu Raj
Amrtanshu Raj 2021년 2월 1일
Hi,
As mentioned by @Ankur Bose you can use the Path Planning Protocol to send a TRAJECTORY_REPRESNTATION_WAYPOINTS message to control the px4 in offboard mode. The MAVLink is independent of the language use to generate the message.
Hope this helps !!

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by