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

MAG detection on REVO board #552

Closed
urlu75 opened this issue Sep 2, 2016 · 16 comments
Closed

MAG detection on REVO board #552

urlu75 opened this issue Sep 2, 2016 · 16 comments
Labels
Milestone

Comments

@urlu75
Copy link

urlu75 commented Sep 2, 2016

can't get the mag enable on REVO board with RC5.
with RC2 the mag is detected but i2c error count is running. Calibration KO.
with RC3+ MAG is no more detected even with CLI mag_hardware.

1500: 12 MAG_DETECTION (2, 0, 0, 0)
2755: 15 HMC5883L_READ_FAILED
2755: 14 MAG_INIT_FAILED
2755: 4 SENSOR_INIT_DONE
3305: 8 SYSTEM_READY

MAG detection (add mag_hardware=0 from CLI) & calibration succeed with betaflight 3RC12, no i2c error,manually add mag_hardware=0 with CLI.

@digitalentity
Copy link
Member

HMC5883L init failed for some reason. Unfortunately I don't have a REVO to investigate.

@digitalentity
Copy link
Member

Can you check if #532 fixes the issue for you?

@urlu75
Copy link
Author

urlu75 commented Sep 3, 2016

#532 is not fixing mag detection

@digitalentity
Copy link
Member

Ok, I definitely need a REVO to investigate.

@martinbudden
Copy link
Contributor

@urlu75 , can you try PR #563

I don't think it will fix the problem, but it will provide more information in the logs.

@urlu75
Copy link
Author

urlu75 commented Sep 5, 2016

here is the PR #563 result :
500: 2 PWM_INIT_DONE
500: 3 EXTRA_BOOT_DELAY
1185: 9 GYRO_DETECTION (6, 0, 0, 0)
1486: 10 ACC_DETECTION (7, 0, 0, 0)
1500: 11 BARO_DETECTION (3, 0, 0, 0)
1500: 12 MAG_DETECTION (2, 0, 0, 0)
2355: 15 HMC5883L_READ_OK_COUNT (0, 0)
2355: 16 HMC5883L_READ_FAILED (5, 5)
2455: 14 MAG_INIT_FAILED
2455: 4 SENSOR_INIT_DONE
3005: 8 SYSTEM_READY

and still some I2C error (11 or 12).

@martinbudden
Copy link
Contributor

So, all the reads to the HMC5883L fail. @digitalentity , any idea what might cause that?

@digitalentity
Copy link
Member

My guess would be the i2c code, not the compass driver. Hard to debug without hardware. Just some $40 more and I can get myself a REVO 😉

@martinbudden martinbudden added this to the 1.3 milestone Sep 6, 2016
@martinbudden
Copy link
Contributor

We need some real hardware to make any further progress on this. Marking it for release 1.3.

@urlu75 , can you try using an external compass, to see if that works?

@urlu75
Copy link
Author

urlu75 commented Sep 7, 2016

did not succeed to detect an external mag. The only external mag I have is the same chip as the one on the board... I understood that can be an issue.

@digitalentity
Copy link
Member

Is this issue still valid in 1.3-RC1?

@urlu75
Copy link
Author

urlu75 commented Oct 18, 2016

quick feedback with 1.3-RC1 :
-with i2c_overclock=off then i2c error counter is running fast, no mag detected
-with i2c_overclock=on then i2c error stopped at 3 and mag is detected
Mag calibration seems to be ok.
I will try to go through the all sensor's calibration process later.

@digitalentity
Copy link
Member

Can somebody re-test this with latest development?

@DzikuVx
Copy link
Member

DzikuVx commented Nov 15, 2016

I can test HMC5883 on Airbot F4 target today.

@DzikuVx
Copy link
Member

DzikuVx commented Nov 15, 2016

@digitalentity I've tested external HMC5883 and AirbotF4. Works fine, mag detected in all tries.
I'd say we close it.

@digitalentity digitalentity removed the Feedback required The issue/PR is missing information to proceed further label Nov 16, 2016
@digitalentity
Copy link
Member

Also tested on REVO (thanks @sambas). No issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants