Hello, I’m trying to connect px4 sitl with a mathematical model and I have 2 problems:
I would like to generate another target when I start px4, something like “make px4_sitl Model” and that instead of starting the simulators it would run my Model.py file. I don’t know exactly how this should be configured.
Now I’m running px4 without a simulator (make px4_sitl none) and I run my model.py separately and communication starts. Everything is working correctly but I can’t get the message from HIL_ACTUATORS_CONTROL. I get to read the initial HEARTBEAT and command long messages and send the HIL_SENSORS and HIL_STATE_QUATERNION messages but I can’t get the action messages.
Thank you very much, I just read it and I have corrected a problem with timestamp. Now PX4 starts communications with QGC but I still do not receive the message from the actuators
I have solved the communication problem with the system_time command which was not sent correctly.
I only have to solve the first problem.
I would like to generate another target when I start px4, something like “make px4_sitl Model ” and that instead of starting the simulators it would run my Model.py file. I don’t know exactly how this should be configured.