Communicating APM with MATLAB

Dear all,

I would like to communicate my APM2 with MATLAB using USB.

Basically, I would like to send the raw data of the accelerometer, gyros, and the magnetometer to MATLAB for advanced processing.

What is the right code to write on the APM as well as on MATLAB for the communication to work as perfect as possible with the minimal packets loss, if none at all ?!

I really need your help to get this done as soon as possible!

Thanks.

EDIT:  Oct 31st, 2015

SOLUTION is here,

http://diydrones.com/forum/topics/matmav-matlab-interface-to-monitor-and-command-pixhawk

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi everyone !!

    It's been ages since I worked with APM. Currently I use Pixhawk/PX4 in my research work, and I use PX4 Firmware, not Ardupilot firmware. I have just finished writing and testing a Matlab interface called MatMav 1.0 that allows one to monitor/command Pixhawk/PX4 loaded with PX4 Firmware. I will share a test version, not the full one, on my MATLAB, profile in FileExchange. I will pos the link here too, once uploaded.

    Here are some videos during the development stage of MatMav 1.0

    video1

    video2

    video3

    Cheers,

    Mohamed

    PX4/Firmware
    PX4 Autopilot Software. Contribute to PX4/Firmware development by creating an account on GitHub.
  • Hi, can I also have the code osbihat@hotma

  • Hi all,

    I am doing some polish to the code and then I will post it on Mathworks File exchange. I will put a link here.

  • I would like to take a look as well, could I?

    elemcab.mc@gmail.com

  • Can i have some code?

    lwcworld123@naver.com

  • Can you please send me the code on hoony01524@nate.com

  • Hi Zahana, I am working on a similar project which involves accessing the IMU data in real-time and processing it in Matlab. I am very interested in how you have done it. Do you mind send me your work to my email? My email is bluesyhfang@gmail.com. Thank you very much.

  • Can you please send me the code on ganeshbk@hotmail.com

  • Dear Mohammad Zahana

    I am also looking for the ways to communicate with matlab with my APM 2,6

    I want you to help me if is possible

    my email adress is mfzavareh@gmail.com

  • Can i have the code? Email Address: omega2625@gmail.com

    Thank You,

This reply was deleted.

Activity

DIY Robocars via Twitter
Oct 23
DIY Robocars via Twitter
RT @_JonMyer: 🏎 We need your help in naming my #AWS DeepRacer Underground Track 🏎 @davidfsmith's track is going to be referred to as 𝗔𝗪𝗦 𝗗…
Oct 22
DIY Robocars via Twitter
RT @gclue_akira: 仕事もおわったし、電脳化にとらい #マリオカートハック https://t.co/4IU90hCLgm
Oct 22
DIY Robocars via Twitter
This is the hashtag to follow all the people in Japan who are hacking the new Nintendo Mario Kart with the real AR… https://twitter.com/i/web/status/1319281354664677376
Oct 22
DIY Robocars via Twitter
RT @gclue_akira: @chr1sa @diyrobocars jupyter mario https://t.co/P0oHdjlCRq
Oct 22
DIY Robocars via Twitter
RT @_JonMyer: 🚨Our 1st AWS DeepRacer Community Race is Underway on http://twitch.tv/aws 🚨 Join us to find out which member of your commu…
Oct 20
DIY Robocars via Twitter
Oct 19
DIY Robocars via Twitter
RT @BackyardRobotcs: After an admittedly long wait, the new Tinymovr R3.3 motor controller is now available https://tinymovr.com 🥳
Oct 19
DIY Robocars via Twitter
RT @_JonMyer: 🏎 1 hr left before the #AWS #DeepRacer Community 🏎 Top 5 Race tomorrow LIVE on Twitch 1st Place = $50 Amazon GC or AWS Credit…
Oct 19
DIY Robocars via Twitter
Oct 16
DIY Robocars via Twitter
Oct 15
DIY Robocars via Twitter
Oct 14
DIY Robocars via Twitter
RT @davidfsmith: Race virtually with The AWS DeepRacer Community Race and then join us on the track to see how your times compare on the ph…
Oct 14
DIY Robocars via Twitter
Oct 14
Hiroki Tanaka liked Hiroki Tanaka's profile
Oct 13
DIY Robocars via Twitter
RT @breadcentric: It's now!
Oct 13
More…