PX4 toolbox in Simulink:when performing SITL with Jmavsim error code -10

조회 수: 3 (최근 30일)
I designed my own controller with the PX4 toolbox in simulink. I'm trying to perform SITL with Jmavsim but when I run it on the terminal shell it's written:
extmodeEvent error: code -10
This error is reported several times. What is the problem and how can I fix it?

채택된 답변

Ankur Bose
Ankur Bose 2023년 8월 18일
This error indicates there might be data drop while sending data between Host Target and Simulink in External Mode. But External Mode simulation should continue to run. Are you seeing issues with External Mode?
If the External mode is running, log the signals in Signal data inspector to see the amount of data drop. If it is within your satisfacyory limits, you can ignore thsi error. Otherwise, you can increase the sample time of the model to eliminate the error
  댓글 수: 1
Salvatore Matteo Mennea
Salvatore Matteo Mennea 2023년 8월 18일
Yes I'm usign external mode. When this error displays the simulation continue to run on jmavisim. The problem is that the drone keeps still. Evenif my controller is sending the control action so the PWM are sent to the "To actuator block", the drone does not move.
I have this warnings:
I can i fix this problem?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by