MATLAB getMATFilesFromPixhawk Function Fails to Retrieve SD Card Data from Pixhawk PID Controller Simulation
3 views (last 30 days)
Show older comments
I have been working on a PID controller for Pixhawk and encountered an issue when trying to retrieve MAT files from the SD card after optimizing and building the model in Simulink. Initially, I successfully logged signals to the SD card using the example px4-log and following the documentation. However, when applying the same steps to my PID controller project, I encountered an error when attempting to extract the MAT files using the getMATFilesFromPixhawk function. Despite running MATLAB as an administrator to avoid permission problems, the issue persists. I have tried various solutions without success. Do you have any ideas on how to resolve this?
0 Comments
Answers (1)
Arun Mathamkode
on 11 Jun 2024
Based on the error message you are seeing, I don't think this is an issue with permission. The function getMATFilesFromPixhawk uses the MAVLink NSH shell to access the file and send the contents over serial. First check if MAVLink is enabled on USB to enable NSH shell connectivity.
If MAVLink is enabled and you are still facing issue, check the serial connection to ensure its proper.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!