Error when run "Run quadcopter plant in normal simulation" in "Px4DemoHo​stTargetWi​thSimulink​Plant" example.

6 次查看(过去 30 天)
Matlab simulink dislay the inform as follow:
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 tell me how to fix this error

回答(1 个)

Arun Mathamkode
Arun Mathamkode 2024-4-2
As the error clearly says the base sample time of the model you use is 0 and that cannot be supported in Nuttx. You need to make sure that the sample time you set in model is more than 1ms and integer multiple of 1ms. You can see if any of the source blocks in your modle is set to 0 sample time. More details on how to view sample time information.

Community Treasure Hunt

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

Start Hunting!

Translated by