Error when run "Run quadcopter plant in normal simulation" in "Px4DemoHostTargetWithSimulinkPlant" example.
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
0 commentaires
Réponses (1)
Arun Mathamkode
le 2 Avr 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.
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!