When trying to arm my pixhawk with my RC controller, I get an error “Arm: Waiting for Nav Checks”.
From looking at the code this could be due to AHRS not being healthy because of an underlying EKF issue.
I’ve enabled EKF logging with LOG_REPLAY but both EKF1 and EKF2 are logging null values which seems to indicate that the EKFs haven’t started (confirmed on Mission Planner HUD where the EKF seems to be off).
Simultaneously the yaw calculated by the pixhawk behaves strangely: I rotate the copter from pointing East to pointing West, the yaw then displays 271 degrees but instead of stabilizing at 271 the yaw increases gradually to 309 over a period of 30 seconds all this while the copter is sitting still on the floor, see yaw graph below:
A couple of things that might be linked to that problem:
I have some metal in the frame that distorts the magnetic field but this has been taken care of by setting the soft iron parameters,
pixhawk setup is flipped (AHRS_ORIENTATION=8)
external compass is rotated by -45 degrees (COMPASS_ORIENT = 7)
strangely AHRS_EKF_TYPE shows up as 2 in Mission Planner but its value is “1” in the logs (I have double checked this with several reboots)
Our group are facing the same problem with yours now. Have you solved that problem?
We tested every pixhawk board we have and all of them are having yaw drifting problem just as what you have shown in the fig. We thought about adding a external compass but it seems that it didn’t help in your case.
yes I solved it. Try to search “compass” in the full parameter list of Mission Planner or APM planner and increase the weight of compass in yaw. That would help with the drift problem, and if you want to have a short response time try to get into the code of EKF and tune the gain of yaw error.