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

I2C external compass on Crius AIO Pro V1.0 runnning V3.0.1 RC3 #120

Open
Guido68 opened this issue Mar 14, 2014 · 12 comments
Open

I2C external compass on Crius AIO Pro V1.0 runnning V3.0.1 RC3 #120

Guido68 opened this issue Mar 14, 2014 · 12 comments

Comments

@Guido68
Copy link

Guido68 commented Mar 14, 2014

Hi,

I want to disable the internal compass and use a HMC5883L as a external compass on my Crius AIO Pro V1.0 board.

Can someone describe me how to make the proper adjustments in het Arduino Sketch so that I can use the external compass?

Thanks in advance,

Guido

@ralenekov
Copy link

Found in the release notes of R3B:
"Added ability to disable internal compass (to use external) in AP_IntertialSensor_MPU6000_I2C.cpp"

#define DISABLE_INTERNAL_MAG

@Guido68
Copy link
Author

Guido68 commented Mar 14, 2014

Should I include the ccp-file in the sketch?

Van: ralenekov [mailto:notifications@github.com]
Verzonden: vrijdag 14 maart 2014 10:45
Aan: MegaPirateNG/ardupilot-mpng
CC: Guido68
Onderwerp: Re: [ardupilot-mpng] I2C external compass on Crius AIO Pro V1.0 runnning V3.0.1 RC3 (#120)

Found in the release notes of R3B:
"Added ability to disable internal compass (to use external) in AP_IntertialSensor_MPU6000_I2C.cpp"

#define DISABLE_INTERNAL_MAG


Reply to this email directly or view it on GitHub #120 (comment) . https://github.com/notifications/beacon/4703270__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMDQwOTUxNSwiZGF0YSI6eyJpZCI6Mjc2ODkzMzd9fQ==--a6235a6aad71a6ace60b7569dd83ee148a068617.gif

@ralenekov
Copy link

It is included already. Just remove the comment.

@Guido68
Copy link
Author

Guido68 commented Mar 14, 2014

Sorry, uncommented it and uploaded the new sketch to the board. Still
uses the compass from the board, not the external one.

ralenekov schreef op 14-3-2014 11:31:

It is included already. Just remove the comment.


Reply to this email directly or view it on GitHub
#120 (comment).

@wengwah
Copy link

wengwah commented Mar 16, 2014

You have to erase and reset to factory default after uploading. Please get external compass in the correct orientation. By the way, you dont realy need ext compass. I had reverted back to the onboard compass now.

@smurfy
Copy link
Member

smurfy commented Mar 26, 2014

@Guido68 Please close this issue if it's resolved, if not please provide feedback if a factory reset worked for you.

I also added the changes needed to disable the internal compass to the documentation.

http://docs.megapirateng.com/documentation/tipsntricks

@RiC-
Copy link

RiC- commented May 28, 2014

Was this resolved? I have the same issue but on a HK Crius AIOP V2 running MPNG 3.0.1 R4. Uncommented #define DISABLE_INTERNAL_MAG line in AP_IntertialSensor_MPU6000_I2C.cpp, erased and reset to factory default in Mission Planner through terminal but the internal compass still seems to work. Using the Quanum LEA-6H GPS with HMC5883L Digital Compass. Any ideas?

@Guido68
Copy link
Author

Guido68 commented May 28, 2014

Yes it is resolved...

RiC- schreef op 28-5-2014 7:29:

Was this resolved? I have the same issue but on a HK Crius AIOP V2
running MPNG 3.0.1 R4. Uncommented #define DISABLE_INTERNAL_MAG line
in AP_IntertialSensor_MPU6000_I2C.cpp, erased and reset to factory
default in Mission Planner through terminal but the internal compass
still seems to work. Using the Quanum LEA-6H GPS with HMC5883L Digital
Compass. Any ideas?


Reply to this email directly or view it on GitHub
#120 (comment).

@RiC-
Copy link

RiC- commented May 28, 2014

How'd you end up resolving it? I still can't seem to disable mine...

@Guido68
Copy link
Author

Guido68 commented May 28, 2014

Did you select manual compass and set ROTATION_ROLL_180 in MP?
Did you upload the right sketch?
Did you run accel in terminal?
All connections soldered in the right order?

After all the inspections, when you turn the external compass, and hold still the crius board, can you see the compass turn in MP?

Good luck!

@RiC-
Copy link

RiC- commented May 29, 2014

I've double checked all those things. If I hold the crius board still and rotate the external compass, the compass does turn in MP. It doesn't seem like a 360 degree rotation however. If I do the reverse, hold the compass still and turn the crius board the compass in MP also moves. Actually moving the crius seems to be more effective at moving the compass dial in MP. I'm all out of ideas??

@DanO83
Copy link

DanO83 commented Aug 13, 2014

i found a picture on the AeroQuad site:

http://aeroquad.com/attachment.php?attachmentid=3500&d=1305557748&stc=1

the compass should be mounted upside down with x pointing forward

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

No branches or pull requests

6 participants