GPSInput Causing Mag Field Errors

Hi there.

I’m currently using SITL to model an ArduCopter running with Gazebo, through MavProxy as the GCS.

I’m using MavProxy’s GPSInput module with a very basic python script to spoof gps. While the simulated UAV successfully gets a GPS lock from the spoofed GPS signals, doing so seems to cause PreArm failures from ArduPilot and I’m unable to arm the throttle and takeoff.

This is all I have changed in the params file:

GPS1_TYPE 14
GPS2_TYPE 0

I’ve already tried changing other params, like the various EK3_MAG_.... options I could find and the ARMING_DISABLE etc. options.

Does anyone know why this might be?