ArduIMU

From PaparazziUAV
Revision as of 10:42, 6 October 2010 by Aerovista (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page describes how to integrate an ArduIMU into an existing Airframe/Paparazzi-Code.

  1. The ArduIMU communicates over I2C with the Paparazzi-AP. The Wiring is pretty easy to do. Connect SDA, SCL, Ground and provide the IMU with 5V.
  2. The integration into the software is realized as a Module. That is an easy way to connect and Test new Software.
  3. This Guide/Software is made to use the ArduIMU without seperate GPS-Reciever and without Compass/Magnetometer. The GPS-Data is sent by the Tiny 2.11 over I2C to the IMU.
  4. There is a other Airframe/main-AP we wrote wich uses a Magnetometer for yaw-Drift compensation. We didn't write an installation guide like this yet. But we try to do this as soon as possible.

Airframe Adjustments

conf/airframes: "MyAirframe.xml"

  • (1) Insert the module:
<modules>
  <load name="ArduIMU.xml"/>
</modules>
  • (2) Activate "i2c" and "modules"
ap.srcs += i2c.c $(SRC_ARCH)/i2c_hw.c
ap.CFLAGS += -DUSE_I2C0 -DI2C0_SCLL=150 -DI2C0_SCLH=150
ap.CFLAGS += -DUSE_MODULES

Copy the Modules and other Data

conf/modules: "ArduIMU.xml"

  • (3) Copy "ArduIMU.xml" into the directory "conf/modules/"

sw/airborne/modules/: "ArduIMU"

  • (4) Copy the directory "ArduIMU" into the directory "sw/airborne/modules/"

Flash the ArduIMU

  • (5) Flash the ArduIMU with the adapted software. For information concerning flashing of the IMU, read:

http://code.google.com/p/ardu-imu/wiki/HomePage?tm=6

Have Fun !