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

Enable selection between compass sensors on different buses #2522

Merged
merged 2 commits into from
Dec 4, 2017

Conversation

digitalentity
Copy link
Member

New option mag_to_use will allow to select betwen compass sensor on internal/external I2C bus (on boards where built-in compass is on separate I2C bus - only REVO so far).
Fixes #2494

@digitalentity digitalentity merged commit a5bee47 into development Dec 4, 2017
@digitalentity digitalentity deleted the de_dual_compass branch December 4, 2017 12:52
@@ -164,7 +164,7 @@ static bool deviceDetect(magDev_t * mag)

bool ak8963Detect(magDev_t * mag)
{
mag->busDev = busDeviceInit(BUSTYPE_ANY, DEVHW_AK8963, 0, OWNER_COMPASS);
mag->busDev = busDeviceInit(BUSTYPE_I2C, DEVHW_AK8963, mag->magSensorToUse, OWNER_COMPASS);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If "BUSTYPE_I2C" instead of "BUSTYPE_ANY" is set here the AK8963 SPI compass will not be detected?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MJ666 oops, sorry. Will fix ASAP

@thomaskoul
Copy link

hi i have revo and ihave external mag i doing callibrate and no poshold why
and with inav 1.8 working great

@thomaskoul
Copy link

and install 1.8 and do not callibrate compass all 0

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

Successfully merging this pull request may close these issues.

3 participants