Is there a simulink block for mavlink communication with Pixhawk?

2 views (last 30 days)
I am working on a project on Autopilot Quadcopter. We are using PixHawk as FMU and firmware is built in Simulink. The blocks in PSP (Pixhawk Pilot Support Package) are used. But we are facing problems in telemetry part. The protocol followed is mavlink. We need to send waypoints from QgroundControl to pixhawk as well as get informations back from it. We dont find any inbuilt simulink blocks for this. Kindly provide information regarding this.
  1 Comment
yohan diaz
yohan diaz on 19 Mar 2018
Hi Sukanya,
What version of CMake and Matlab did you use in your project? I'm having an error with validation, I suspect the problem is the CMake version.
Thanks in Advanced!

Sign in to comment.

Answers (1)

Aditya Joshi
Aditya Joshi on 31 Oct 2017
In case you or anyone else is still looking for this functionality, I released my code on File Exchange: https://in.mathworks.com/matlabcentral/fileexchange/64899-simulink-mavlink
You'll have to write the s-functions for waypoint related messages using the templates provided, but it should be straight-forward. Contact me if you face any issues. Hopefully, I can soon release Matlab functions to automatically write the s-functions for any given MAVLink message.
  1 Comment
Esteban Ortega
Esteban Ortega on 23 Nov 2018
Hi , I have a question ,with this code I will be able to send flight data to the pixhawk and make movement the drone from matlab ?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!