"local position invalid", when GPS works

I can’t arm my drone for takeoff mode, getting:
“local position invalid”
GPS accuracy seems decent, Z is not very stable, still EKF2 does have some position estimate, what is it invalid?
what can be the problem in this case? this is a log from a stationary drone:
https://logs.px4.io/plot_app?log=193d4d8e-0ca7-41a3-b1a4-131e075bbac6

Ok, so this is on a Kakute H7 without magnetometer, right? I’m not quite sure if/how that is supposed to work.

Maybe @bresch can help.

I do have an external magnetometer, but somehow can’t get it to work, it shows up on I2C bus, but can’t start it:

nsh> i2cdetect
Scanning I2C bus: 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – – – – – – – 0e –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – 76 – – – – – – – – –
nsh> ist8310 -X start
ERROR [SPI_I2C] ist8310: no instance started (no device on bus?)

Interesting. Did the mag come with a GPS? With which one? I might have it and can try to reproduce.

I think that it’s a hardware issue, it started to work after I extended it’s cable, and then stopped working promptly after, without any big changes in the setup.
maybe too long wires for i2c? I have the module on ~20cm distance from the FC, to reduce interference.

20cm should be ok but 1m is usually not recommended for I2C.