Obtain msg from Pixhawk
이전 댓글 표시
I want to read messages from Pixhawk and send commands to Pixhawk with Simulink or MATLAB.
Some information: Pixhawk 4, MATLAB r2023b, Holybro telemetry radio.
I attach a telemetry radio on a local computer and attach a telemetry radio on Pixhawk. Here are some screenshots of my simulink model. In this case, I want to read attitude measurements. However, it shows that the values of roll, pitch and yaw are always zero, even if I rotate Pixhawk.


I also tried to play with ports with MATLAB. But I have not figured out how to receive a complete frame of msg. Here are some screenshot of my script and results. I think the length of "data" in the workspace should be 280 at most according to https://mavlink.io/en/guide/serialization.html (maybe I did not understand that correctly).

Thanks in advance.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 PX4 Autopilots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!