Acquiring Hardware Data from ArduPilot onto SIMULINK

Hey, 


I'm trying to implement my own set of autopilot blocks and filters in Simulink to create an autopilot system using the ArduPilot Mega hardware. I've acquired the APM hardware and am looking for ways to acquire the Sensor data (Gyro, Accelerometer,  Pressure, GPS, etc) directly onto my computer. The plan is to import this data into SIMULINK and process it to send back servo deflection data via XBees to the APM board.

 

Could anyone help me 1) acquire this data onto the computer via the USB (for now.)

2) Translate the raw data into sensible state values like p,q,r, x,y,z locations, etc.

 

 

Would appreciate the sensor data sheets also. 

I'm beginning to understand SIMULINK and the Arduino coding only recently, but I love the documentation so far. Thanks for your help. :)

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

Join diydrones

Email me when people reply –

Replies

  • i am looking for a similar help. I tried using http://www.mathworks.com/matlabcentral/fileexchange/39037-apm2-simu... but got the compiling error, "The call to realtime_make_rtw_hook, during the after_make hook generated the following error: The build failed with the following message: "C:/MATLAB/Targets/R2012a/arduino-1.0/hardware/tools/avr/bin/avr-gcc" -I"C ..after checking and rechecking everything. Do you wanna give it a try and see what happens. It was built for APM 2.0, that could be an issue but i am not sure. Please let me know if it works out. Good Luck . 

  • Still no reply? (I'm also interested but don't know enough yet to help you out)

     

This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…