Hi
I have an HMC6343 attached to an Arduino Due and it is woking partially ok. Loaded Sparkfuns HMC6343 library and their "basic" sketch.
Heading is outputting ok but pitch and roll are ok when positive but outputting number near 65K when negative
Any clues
mdbirley:
Hi
I have an HMC6343 attached to an Arduino Due and it is woking partially ok. Loaded Sparkfuns HMC6343 library and their "basic" sketch.
Heading is outputting ok but pitch and roll are ok when positive but outputting number near 65K when negative
Any clues
The clues are obviously in your code. Where is it?
Paul
outputting number near 65K when negative
Printing a signed integer as unsigned.
I found the problem. Originally I was using an Arduino with the sparkfun code and the HMC6343. Then I switched to the Arduino Due and the problem started. Its because the Due has a 32 bit processor. When I returned to the Uno all was good.