MATLAB Answers


Connection issues during PX4 uorb topic data relay in External Mode

Asked by Sid
on 17 Jul 2019
I am using the embedded coder support package for PX4 and am working on a flight controller (developed in SIMULINK). I need to receive motion caputre data for testing and am using the inbuilt PX4 uorb blocks to receive data from our motion capture system. I relay the motion campture data on to the Pixhawk telem port through a RPi (using ROS). When I run my tests on External mode, the simulation automatically stops within a minute or so citing the following error:
Error occurred while executing External Mode MEX-file 'ext_comm':
ExtSetTargetPkt() call failed on CLOSE.
Ensure target is still running
My PX4 is still on and is functional when this error pops up. Has someone encountered similar issues?
Is there a better way to verify if SIMULINK is subscribing to the uorb topic? I am just worried that SIMULINK might stop subscribing to the topic mid air. Thank you.


Sign in to comment.

0 Answers