AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

GPS fix jumping with MAVROS HITL

Open mikeisted opened this issue 8 years ago • 4 comments

Hi all,

The GPS fix reported by MAVROS in my HITL setup up jumps frequently.

I am investigating the use of UE4/AirSim to test a multi-drone autonomous system. FCU is Pixhawk cube, running PX4 stack and with Jetson TX2 companion computer. TX2 is running ROS, connected using a MAVROS node over UART.

OK, so everything is set up (using the free mountains landscape atm) and manual control via transmitter looks good. Autonomous flight control seems to work, but the GPS fix jumps randomly, of course throwing failsafes and making the simulator impossible to use.

Hooking up with QGroundcontrol seems to confirm that local body frame data is good (pose etc). but that the GPS seems to reset to the original (hardcoded) location. However, in simulated flight, visual action remains smooth and it would not be clear this is happening at all.

mikeisted avatar Nov 01 '18 11:11 mikeisted

Internal VSTF 7696

RVBldr avatar Nov 21 '18 17:11 RVBldr

Hi mike,

I faced the same issue and after looking around i found that this issue was not there in AirSim version 1.1 and it is present in version 1.2.0 and also in the pre-release of AirSim version 1.2.1.

I found a fix for this which works for version 1.2.0(not tested on v1.2.1), you may refer it at issue #1575

Hope this helps, Regards, Yash Kaushal

yashkaushal avatar Dec 07 '18 09:12 yashkaushal

hey @mikeisted can you try pulling in the latest airsim code and let us know if this was resolved or not?

madratman avatar Dec 19 '18 23:12 madratman

closing as this was fixed

madratman avatar Apr 04 '19 01:04 madratman