Following the instructions here I was able to get a HITL simulation running in JMavSim in PX4 v1.13.0. However, when I updated to v1.14.0-rc1 (using this commit from the main branch: ecbc5b83a0012b7ca2ca8bb79a694718d70799c5), the RC commands seemed to make it to JMavSim’s console and QGroundControl (could arm, kill and say “takeoff detected” when throttling up), but the drone itself does not move (pic below).
Looking at the logfile, I can see that the RC inputs were received (thrust), as well as pitch and roll changes from direct arrow key inputs to JMavSim. I can also see that the motor outputs were apparently sent (non-zero values in motor output graph - see below), but the drone still didn’t move.
I suspect this has something to do with the new actuator mapping in v1.14.0 (described here) but I can’t figure out what the exact issue is/what I need to modify to make it work. I have read and followed the upgrade instructions and actuator configuration and as such can get the motors spinning on a physical Holybro x500 drone, but just not the HITL one.
I am using the Generic Quadrotor x airframe because I can confirm a correct mapping with the physical x500 (need to use PWM MAIN inputs which are not available with the HIL Quadcopter X).
I suspect this issue may be related to the corresponding Gazebo one here.
Any help is much appreciated! Thanks in advance!