フィルターのクリア

PX4 HITL simulation timing synch (lockstep) issue

5 ビュー (過去 30 日間)
Syed Waqar
Syed Waqar 2024 年 5 月 9 日
回答済み: Ankur Bose 2024 年 5 月 10 日
I am trying to run PX4 HITL simulation with my custom drone dynamics using simscape multi body simulation. The issue is that the simscape simulation is quite slow and the controller I deployed on Pixhawk 6x is running on a normal speed (in HITL mode). Although it should run in hand shaking mode with the simulation. Meaning it should not run the controller loop unless it has received new data from the simscape simulation (lockstep). This is causing a lot of trouble particularly when I try to read sensors data in the px4 controller, because it is noisy and very rough estimation. Can you please help me synch both simulations.
The only difference is that instead of using the provided UAV dynamics simualtion I am running my own simulation using multbody simscape simuation for my done. The deployed controller is same as provided.

採用された回答

Ankur Bose
Ankur Bose 2024 年 5 月 10 日
PX4 HITL simulations are not lockstep. Since lockstep simulations are not real time, making HITL simulations lockstep would defeat the purpose of HITL. Hence PX4 HITL simulations are not designed to be lockstep. Only PX4 SITL simulations run in lockstep mode

その他の回答 (0 件)

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by