Hardware in Loop Simulation with pixhawk board using Embedded Coder for Px4 toolboxes : The base rate of the Simulink model 0 millisecond is less than 1 millisecond
이전 댓글 표시
I am trying to do Hardware in Loop Simulation with pixhawk board using Embedded Coder for Px4 toolboxes. I am getting the following error in my Simulink model:
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.
How do I resolve the issue?
Thanks,
Sajith
댓글 수: 3
Osman Hökerek
2019년 12월 24일
I encountered this issue. I am trying hardware in the loop with simscape multibody. Did you solve this problem ?
Regards,
Yunjie Yang
2021년 3월 26일
Best Regards
Purav Panchal
2021년 7월 22일
I got the same error when simulating. Please have a look if there is a signal builder or some block which is having continuous time rate. Also in the configuration settings -- Code Generation -- Interface -- Uncheck the Continuous Time option if it is checked. This can help to solve the problem.
답변 (1개)
Arun Mathamkode
2021년 11월 11일
0 개 추천
I agree with Purav's suggestion. Please makesure that the base sampletime of your model is greater or equal to 1 millisecond.
카테고리
도움말 센터 및 File Exchange에서 PX4 Autopilots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!