How do I get rid of this error message?

Hello,
I am currently following the SITL example to deploy my model to px4 but keep getting this error:
"The base rate of the Simulink model 0 millisecond is less than 1 millisecond. This is not supported by the PX4 Autopilot since the tick rate of NuttX OS is 1 millisecond. To fix this error, change sample times of blocks in the Simulink model which is causing the base rate to be 0millisecond."
Please, how do I resolve this? How do I locate blocks having 0 milliseconds? I have followed the solution given in a somewhat related post on this community but not working in this case.
Thank you.

답변 (1개)

Shaik
Shaik 2023년 5월 15일

1 개 추천

Hi,
The error message you're encountering suggests that the base rate of your Simulink model is set to 0 milliseconds, which is not compatible with the PX4 Autopilot since its tick rate is 1 millisecond. To resolve this issue, you need to locate the blocks in your Simulink model that have a sample time of 0 milliseconds and change them to a non-zero value.

댓글 수: 4

UASLAB
UASLAB 2023년 5월 15일
Hello @Shaik,
Thank you. Please, how do I locate the blocks having a sample time of 0 milliseconds? I am using Matlab 2022b.
Shaik
Shaik 2023년 5월 15일
In MATLAB 2022b, you can use the Model Advisor to locate blocks that have a sample time of 0 milliseconds in your Simulink model.
UASLAB
UASLAB 2023년 5월 16일
okay, thank you.
Hung
Hung 2024년 2월 21일
How to find block with sample time 0 milliseconds by Model Advisor?

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

제품

릴리스

R2022b

질문:

2023년 5월 15일

댓글:

2024년 2월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by