rm-hull / hmc5883l

Python wrapper class for HMC5883L magnetometer (using smbus I2c)
25 stars 32 forks source link

It's not an issue it's just a doubt #4

Open LochanRn opened 5 years ago

LochanRn commented 5 years ago

Hello I am Lochan and currently doing by Major in CS from SRM university India, In the module hmc5883l.py , at line number 95 compass = hmc5883l(gauss = 4.7, declination = (-2,5)); you have mentioned how to calculate declination angle but did not mention anything about the gauss, may i know what this gauss value is and how do we set it , or how does it vary. Thanks in advance and sorry for disturbing you. :) ..!!

oliversipangkar commented 5 months ago

Hello Lochan, In init function writer made default gain (or scales) that will return values [1, 0.92], if u input 4.7 it will return [5, 2.56]

U can see the gain values here (Line 16 to be specific): image