Pixhawk descending when switching to loiter of alt hold mode

HELLO MY F450 DRONE WITH PIXHAWK FLIGHT CONTROLLER IS DESCENDING DOWN WHEN I SWITCH TO LOITER OR ALT HOLD MODE. I AM USING M8N GPS AND COMPASS MODULE. THE MODULE IS WORKING FINE I HAVE TRIED IT EARLIER WITH APM 2.8 FLIGHT CONTROLLER. IN STABILIZE MODE IF FLYING SUPER STABLE AND WITH NO PROBLEM. I WOULD BE THANK FULL IF SOMEONE SOLVES MY PROBLEM AS SOON AS POSSIBLE. I AM ATTACHING LOGS OF MY FLIGHT. I HAVE FLASHED MY PIXHAWK WITH 3.6.9 FIRMWARE.

LOGS: https://drive.google.com/open?id=1XGTIQLJYfJlv4VSKQSr96M9xRxykoPCH

hi @Rudransh_Singh_Mahra
in your log file there is no any error about barometer , gps or compass.
but look at this


it seems that every time you enabled loiter or alt hold mode after a short time your flight mode changed to stabilize by radio and in stabilize descending is normal because FC is not controling altitude.
if you do it by yourself try enable loiter in more height or takeoff with loiter !
if not please check these items :

  • fight modes config
  • radio calibration
  • job of every radio switch

RC_In 3 (Throttle) is around 1250 along the flight. It should be at 1500 to maintain constant altitude in Altitude Hold or Loiter.

50

You have to adjust MOT_THST_HOVER before switching to loiter or altitude hold or move your throttle to middle when flying in this mode.

12

Just to confirm is my flight controller defective ? Because even at very low height the drone would stay still when i was using Apm 2.8 with 3.2 firmware version.With pixhawk its flying great too but the problem is still there when i switch to loiter or alt hold mode. I have recallibrated the radio also checked the flight modes. and checked all the aux switch separately. but the problem still there. So please help me again. I would be very greatfull.

I HAVE TRIED TO KEEP THE THROTTLE IN MIDDLE POSITION BUT STILL THE DRONE DESCENDS DOWN WHEN SWITCHING TO LOITER MODE OR ALT MODE. IS MY FLIGHT CONTROLLER DEFECTIVE ? PLEASE HELP AGAIN . I WOULD BE VERY GRATEFUL. THANKS AGAIN

Please check that your MOT_HOVER_LEARN is equal 2
It seems that your copter didnt learned hover throttle
Also please send a picture of your l2c port or hub
As my experience conflicting modules will force pixhawk to land

Yes I have checked that MOT_HOVER_LEARN is equal to 2. I am attaching the picture of my l2c port. Please help me more if you can. I really need help and want to fix this issue as soon as possible.

Photos : https://drive.google.com/folderview?id=1bCZ0GVGhLfqJEcSTFY4d6LB8mFp1TqlV

I can’t find your problem from your last log
Please arm copter and switch to loiter with at the least 8 satellite count and try to take off and fly till 5m altitude and try to hover it then send log file for analysis.
Tip :When you rise throttle stick more than 60% in loiter mode your copter will take off

Sure I will try that and send you the log file as soon as possible

Keeping the throttle in middle works loiter and altitude are working fine. but can it be possible to switch to loiter mode and make the drone hover at a place when the throttle is below middle position.

Keeping the throttle in middle works loiter and altitude are working fine. but can it be possible to switch to loiter mode and make the drone hover at a place when the throttle is below middle position.

No its no possible in loiter mode because if copter hover at low stick position you can only assend and how do you want to descend your copter ?

OKAY thanks a lot for your help you helped me a lot god bless you thanks again for your precious time