Tutorial for LSM303 has incorrect output in calibration code

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
nickseifert
 
Posts: 12
Joined: Sat Mar 09, 2013 11:57 am

Tutorial for LSM303 has incorrect output in calibration code

Post by nickseifert »

Just wanted to let someone know that the code for the LSM303 breakout has an incorrect line in the calibration code.

This is the page: http://learn.adafruit.com/lsm303-accele ... alibration

The bug is in this line:

Code: Select all

    Serial.print("Mag Maximums: "); Serial.print(MagMaxX); Serial.print("  ");Serial.print(MagMaxZ); Serial.print("  "); Serial.print(MagMaxZ); Serial.println(); Serial.println();
The middle output should be Serial.print(MagMaxY); but is instead Serial.print(MagMaxZ);

Thanks.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Tutorial for LSM303 has incorrect output in calibration

Post by adafruit_support_rick »

Fixed
Thanks!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”