Hmc5883l Class
- ID: hmc5883l
 - Name: 3-axis Digital Compass
 - Other Names: Grove 3-Axis Digital Compass
 - Category: compass
 - Manufacturer: seeed
 - Connection: i2c
 - Link: http://wiki.seeed.cc/Grove-3-Axis_Compass_V1.0/
 - Kit: robok
 
Honeywell HMC5883L is a 3-axis digital compass. Communication with HMC5883L is simple and all done through an I2C interface. Different breakout boards are available. Typically, a 3V supply is all that is needed to power the sensor.
                      
Item Index
Methods
Hmc5883l
                      
                              - 
                                              
bus 
Creates an Hmc5883l object. The I2C address cannot be changed, and is always 0x1e (7-bit).
Parameters:
- 
                                              
busNumberI2C bus number
 
Returns:
direction
                      
                              ()
                      
                              
                                  Number
                              
                      
                      
                      
                      
                      
                      
                      
                          
                      
                          Returns:
heading
                      
                              ()
                      
                              
                                  Number
                              
                      
                      
                      
                      
                      
                      
                      
                          
                      
                          Returns:
coordinates
                      
                              ()
                      
                              
                                  Const int16_t *
                              
                      
                      
                      
                      
                      
                      
                      
                          
                      
                          Returns a pointer to an int[3] that contains the coordinates as ints
Returns:
*int to an int[3]
update
                      
                              ()
                      
                              
                                  Upm_result_t
                              
                      
                      
                      
                      
                      
                      
                      
                          
                      
                          Updates the values by reading from I2C
Returns:
0 if successful
set_declination
                      
                              - 
                                              
dec 
Sets the magnetic declination for better calibration
Parameters:
- 
                                              
decNumberundefined
 
get_declination
                      
                              ()
                      
                              
                                  Number
                              
                      
                      
                      
                      
                      
                      
                      
                          
                      
                          Gets the current magnetic declination value
Returns:
Magnetic declination as a floating-point value