Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't calibrate BN-880's magnometer (HMC5883) #4856

Closed
goodnerdboy opened this issue Jun 19, 2019 · 12 comments

Comments

Projects
None yet
2 participants
@goodnerdboy
Copy link

commented Jun 19, 2019

Current Behavior

Mag's icon stays red and the calibration doesn't feed the calibration's parameters

Steps to Reproduce

  1. Install BN-880 on Foxeer F722dual
  2. Setup ports, configuration, etc
  3. As the auto mode of mag doesn't work, force it to HMC5883
  4. try to calibrate

Expected behavior

A correct calibration happens.
For information, if it can help, these steps work with Betaflight 4.0.3. At least it shows it is not a faulty mag.

Suggested solution(s)

Unfortunatly i have no clue sorry.

Additional context

As i wrote above, the steps work in Betaflight 4.0.3 and the readings from the mag look correct. This probably means the mag is not faulty and the connections are correct.

https://pastebin.com/zmkBp7Rr

  • FC Board name and vendor:

INAV/FOXEERF722DUAL 2.2.0 Jun 18 2019 / 14:57:00 (5e5551b)

  • INAV version string:

GCC-7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]

@issue-label-bot

This comment has been minimized.

Copy link

commented Jun 19, 2019

Issue-Label Bot is automatically applying the label BUG to this issue, with a confidence of 0.82. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the BUG label Jun 19, 2019

@digitalentity digitalentity added Support and removed BUG labels Jun 19, 2019

@digitalentity

This comment has been minimized.

Copy link
Member

commented Jun 19, 2019

Please provide a wiring diagram showing how compass is connected

@goodnerdboy

This comment has been minimized.

Copy link
Author

commented Jun 19, 2019

Hi.
I followed the wiring diagram provided by Foxeer.
Here it is :

@digitalentity

This comment has been minimized.

Copy link
Member

commented Jun 19, 2019

Thanks. Will investigate. Fortunately I have an FC at hand

@goodnerdboy

This comment has been minimized.

Copy link
Author

commented Jun 19, 2019

Many thanks!
Tell me if I can be of any help.

@goodnerdboy

This comment has been minimized.

Copy link
Author

commented Jun 25, 2019

Hi @digitalentity
Did you have anytime to investigate this ?
Is there any way I can help?

@goodnerdboy

This comment has been minimized.

Copy link
Author

commented Jun 25, 2019

So this target declares the Baro on i2c 1 and Mag on i2c 2.
Unfortunately only i2c 1 is associated to pins, so I guess this target allows to connect an external barometer but not a compass.

@goodnerdboy

This comment has been minimized.

Copy link
Author

commented Jun 25, 2019

Should it be modified to match the manufacturer’s wiring diagram or is it purposely like that?

@goodnerdboy

This comment has been minimized.

Copy link
Author

commented Jul 3, 2019

Hello.
Any update on this one?

@digitalentity digitalentity added BUG and removed Support labels Jul 3, 2019

@digitalentity

This comment has been minimized.

Copy link
Member

commented Jul 3, 2019

Please test this hex

inav_2.2.1_FOXEERF722DUAL.zip

@goodnerdboy

This comment has been minimized.

Copy link
Author

commented Jul 8, 2019

It seems to work so far, I was able to set it up and calibrate it.
Thanks :)

@digitalentity

This comment has been minimized.

Copy link
Member

commented Jul 8, 2019

Thanks for testing. Fixed by #4908

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.