Skip to content

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
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.

4 participants