Difference between revisions of "Module/Mag HMC58xx"

From PaparazziUAV
Jump to navigation Jump to search
(Documented HMC58xx module)
 
m (added links)
Line 1: Line 1:
<categorytree style="float:right; clear:right; margin-left:1ex; border: 1px solid gray; padding: 0.7ex;" mode=pages>Modules</categorytree>
= Introduction =
= Introduction =


Line 26: Line 28:


You will need to specify the AHRS_XXX_MAG_ID value. See [http://wiki.paparazziuav.org/wiki/Subsystem/ahrs#Enabling_External_Sensors AHRS External Sensors]
You will need to specify the AHRS_XXX_MAG_ID value. See [http://wiki.paparazziuav.org/wiki/Subsystem/ahrs#Enabling_External_Sensors AHRS External Sensors]
[[Category:User_Documentation]] [[Category:Modules]]

Revision as of 17:01, 29 July 2015

Introduction

Paparazzi allows the use of external Magnetometers. This module supports the use of the Honeywell HMC5843 and HMC5883 magnetometers. These magnetometers can be connected to your autopilot board via i2c.


File: conf/airframes/myplane.xml
  <firmware>
    ...
    <define name="USE_I2C2" />
    ...
    <subsystem name="ahrs" type="float_cmpl_quat">
      <define name="AHRS_XXX_MAG_ID" value="MAG_HMC58XX_SENDER_ID"/>
    </subsystem>
  </firmware>
  ...
    <modules>
     <load name="mag_hmc58xx.xml">
      <define name="MODULE_HMC58XX_UPDATE_AHRS"/>
      <define name="MAG_HMC58XX_I2C_DEV" value="i2c2"/>
     </load>
    </modules>

You will need to specify the AHRS_XXX_MAG_ID value. See AHRS External Sensors