Compass Calibration not working perfectly

I am using pymavlink to do the compass calibration it is working fine only when i once just connect to mission planner and disconnect if i do calibration with my code it is able to detect the compass progress but i directly connect to my drone with my code calibration is working but compass progress is not showing again if i just connect and disconnect with mission planner it is working i think mission planner is starting something i am not how to findout that can anyone help me

Probably because PX4 waits for a heartbeat from your pymavlink setup before it is sending anything.

See this answer and the others in the topic, or this one and it’s topic.

Thank you for the reply @Safranek42 it is getting heartbeat and able to do the calibration after calibration it is sending report but not contiinously sending the progress but progress is coming once we connect to mission planner and disconnect and directly connect to my code and i found the what mission planner is fetching after connecting and just now solved the issue

  • Connecting to the drone
  • Requesting streams (EXTENDED_STATUS, POSITION, EXTRA1, EXTRA2, EXTRA3, RAW_SENSORS, RC_CHANNELS)
  • Requesting autopilot capabilities
  • Sending a DO_SEND_BANNER command
  • Fetching the parameter file using MAVFtp
1 Like

If you are using Mission planner then you’re probably using Ardupilot and not PX4 - right?

If so, you should ask the question on the ArduPilot discussion boards.