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

  • Hello guys,

    I am sorry it's been a long time since I did this. I don't remember exactly how I did it !!

    But I will try to find the code and respond back.

    • thank you

      • 3D Robotics

        Mission Planner supports MATLab export:

        3702404759?profile=original

        • Thanks Chris. That was intended to be in real-time, to test some kalman filtering, and it was done. I am aware of the offline export of data flash logs.

          Thank you.

    • Please send it to me also.

      Thanks

      Maybe on of the guy's, how already has the code.

  • Hi,

     

    I request your advice about the issues below:

    1) I want to import all sensor data of apm board (gps, magnetometer...) to matlab/simulink and send trajectory data(a set of 3 axis coordinates of target nodes in order)
    2) I want to get speed transfer function of motors real time in order to get PID parameters via matlab/simulink(i know that we can tune PID parameters via mission planner soft. but i want to learn about this method)

     

    Which method is useful for the purposes above:

    -mission planner soft-matlab connection via serial port

    -apm 2.6 and arduimo ide connection via xbee-usb and then arduino ide and matlab connection via serial port. Thank you.

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

    Thank You,

  • Problem's solved

This reply was deleted.

Activity