Borrar filtros
Borrar filtros

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

6 visualizaciones (últimos 30 días)
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

Respuestas (1)

Arun Mathamkode
Arun Mathamkode el 2 de Abr. de 2024
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.


Más información sobre Simulation en Help Center y File Exchange.


Community Treasure Hunt

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

Start Hunting!

Translated by