I did yesterday a compassmot on the newly received pixhawk with external GPS+Compass. I thought initially that everything went fine as the CLI screen gave me a 0% interference level as shown on this picture:
Afterwards, I launched Mission Planner and saw a very unstable Flight data HUD with the horizon dancing around as shown in this picture:
I did not understand immediately what was going wrong so I tried to reboot, to reconnect without success. Until I made the link with "compassmot".
I then checked my "Full parameters" list and found this BUG:
ALL of the three COMPASS_MOT values were corrupted "non numerical". As soon as I manually wrote them as zeros again, it solved my compass issue.
Then I went back to the proud screen capture I took to show my succesful 0% interference and noticed in the CLI output something weird as can be seen on the above corresponding picture:
->above a certain throttle level the compassmot procedure has modified the compass mot values to "nan", whatever that means. But certainly non numerical values!
By the way I have repeated the compassmot procedure twice with the same effect each time.
Is this a known issue or a new discovered bug ? And is this a Pixhawk related bug and/or a firmware related bug ?
Thx for any help,
Hugues
Replies
I'm also having some compassmot issues with firmware v3.1.3 and AMP 2.6 with external GPS/compass.
http://diydrones.com/forum/topics/number-4-motor-on-quad-running-sl...
Wondering if this has anything to do with the on board compass being off.
These are the offsets for the on board compass after calibration (external compass/GPS not plugged into the Pixhawk).
After calibration with the Pixhawk pointing North (0 degrees), Mission Planner shows the Yaw (deg) as 309.77 (off by about 50 degrees).
The problem with calibrating the on board compass turned out to be a problem with Mission Planner 1.2.99.
http://ardupilot.com/forum/viewtopic.php?f=47&t=7132&p=1539...
http://diydrones.com/forum/topics/arducopter-3-1-released?id=705844...
thx for the info, i did not see this. I will thus have to upgrade all my copters to 3.1.3 and degrade MP to previous 98 version (instead of current 99)
Any idea on when this will be fixed?
Is there another firmware version that works with Pixhawk. I have a new Pixhawk and want to make sure it is working OK.
I understood it was on the list of issues the DEV will correct. Wa can only hope it shall at the latest come in release 3.2.
But that's just a wish....
I changed motors on my quad and ran compassmot again. This time the results were 24%, even though the GPS is on a mast about 70mm above the props.
Man, that thing was all over the place in loiter.
I replaced the Pixhawk with an APM 2.6 and ran compassmot. The result was 2% and is pretty stable in loiter. I think my Pixhawk is defective.
Definitely some weird stuff with the Pixhawk and compassmot. Either NaN values or in the case of the different motors wrong values.
Results of compassmot with Pixhawk and APM on the same air frame after changing motors:
Pixhawk 24%
APM 2%