paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Paparazzi-devel] drotek mpu6050


From: luca ferrero
Subject: [Paparazzi-devel] drotek mpu6050
Date: Fri, 3 May 2013 16:46:39 +0200

Hello,

  I flow some years ago with a TWOG with IR. Now I'd like to use it
with an IMU, I've a Drotek 6050 but I've problems with the driver, can
you help me?

- I've inserted the "aspirin2_i2c" in the airframe file with "define
name="USE_I2C0"
- I'm using the "imu_aspirin2_i2c.c" without the baro section
- this is the make file:

# Hey Emacs, this is a -*- makefile -*-

IMU_ASPIRIN2_CFLAGS = -DUSE_IMU
IMU_ASPIRIN2_CFLAGS += -DIMU_TYPE_H=\"modules/sensors/imu_aspirin2.h\"

IMU_ASPIRIN2_SRCS = $(SRC_SUBSYSTEMS)/imu.c \
                      $(SRC_MODULES)/sensors/imu_aspirin2.c


IMU_ASPIRIN2_CFLAGS += -DUSE_I2C
ifeq ($(ARCH), stm32)
IMU_ASPIRIN2_CFLAGS += -DUSE_I2C2
IMU_ASPIRIN2_CFLAGS += -DPPZUAVIMU_I2C_DEVICE=i2c2
else ifeq ($(ARCH), lpc21)
IMU_ASPIRIN2_CFLAGS += -DUSE_I2C0
IMU_ASPIRIN2_CFLAGS += -DPPZUAVIMU_I2C_DEVICE=i2c0
endif

ap.CFLAGS += $(IMU_ASPIRIN2_CFLAGS)
ap.srcs += $(IMU_ASPIRIN2_SRCS)

- I've this address in the driver file: define MPU60X0_ADDR            0x69

Where's the error(s)???

Thanks in advance,
luca



reply via email to

[Prev in Thread] Current Thread [Next in Thread]