Loiter and altitude hold mode does not work

I am using “3.6.0-FIRMWARE_VERSION_TYPE_DEV” on Intel RTF drone. Both loiter and altitude mode does not work. When I set one of them, the drone goes down directly and crashes on the land. BTW, the simulator has the same behaviour. I have also tried the Mavproxy command and I got the same result.

Post logs please. People can’t help otherwise.