Pre-arm checks on flight controlers operating from ships and cars

I have noticed that there seem to be very few people taking off and landing drones on ships or cars.I have tested power on ships and land vehicles, but I cannot pass the self check, What is the solution? The unstable undulations on the ship mainly caused the accelerometer self test to fail,The metal shell of a car can also cause magnetic compass interference.

You need to enable boat mode, it skips some steps on startup.

https://ardupilot.org/copter/docs/boat-mode.html

Well, thank you very much.