From 09c97bb367bc77042a27e7263148309e17fdcb8e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 24 Dec 2011 16:22:46 +1100 Subject: [PATCH] removed dead test program this one doesn't build, and has been replaced by IMU_MPU6000_test --- .../AP_IMU_MPU6000/AP_IMU_MPU6000.pde | 54 ------------------- .../AP_IMU/examples/AP_IMU_MPU6000/Makefile | 2 - 2 files changed, 56 deletions(-) delete mode 100644 libraries/AP_IMU/examples/AP_IMU_MPU6000/AP_IMU_MPU6000.pde delete mode 100644 libraries/AP_IMU/examples/AP_IMU_MPU6000/Makefile diff --git a/libraries/AP_IMU/examples/AP_IMU_MPU6000/AP_IMU_MPU6000.pde b/libraries/AP_IMU/examples/AP_IMU_MPU6000/AP_IMU_MPU6000.pde deleted file mode 100644 index cca0b14792..0000000000 --- a/libraries/AP_IMU/examples/AP_IMU_MPU6000/AP_IMU_MPU6000.pde +++ /dev/null @@ -1,54 +0,0 @@ -// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*- - -// -// Simple test for the AP_IMU driver. -// - -#include -#include -#include // Experimental MPU6000 IMU library -#include // Parent header of Timer - // (only included for makefile libpath to work) -#include // TimerProcess is the scheduler for MPU6000 reads. -#include -#include -#include -#include - -FastSerialPort(Serial, 0); - -#ifndef CONFIG_MPU6000_CHIP_SELECT_PIN -# define CONFIG_MPU6000_CHIP_SELECT_PIN 53 -#endif - -AP_IMU_MPU6000 imu(140, - CONFIG_MPU6000_CHIP_SELECT_PIN); -AP_TimerProcess timer_scheduler; -AP_ADC_ADS7844 adc; - -void setup(void) -{ - Serial.begin(115200); - Serial.println("Doing IMU startup..."); - timer_scheduler.init(); - Serial.println("done timer init"); - adc.Init(&timer_scheduler); - Serial.println("done adc init"); - imu.init(IMU::COLD_START, delay, &timer_scheduler); - Serial.println("done IMU init"); - delay(1000); -} - -void loop(void) -{ - Vector3f accel; - Vector3f gyro; - - delay(1000); - imu.update(); - accel = imu.get_accel(); - gyro = imu.get_gyro(); - - Serial.printf("AX: 0x%4.4f AY: 0x%4.4f AZ: 0x%4.4f GX: 0x%4.4f GY: 0x%4.4f GZ: 0x%4.4f\n", - accel.x, accel.y, accel.z, gyro.x, gyro.y, gyro.z); -} diff --git a/libraries/AP_IMU/examples/AP_IMU_MPU6000/Makefile b/libraries/AP_IMU/examples/AP_IMU_MPU6000/Makefile deleted file mode 100644 index 85b4d8856b..0000000000 --- a/libraries/AP_IMU/examples/AP_IMU_MPU6000/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -BOARD = mega -include ../../../AP_Common/Arduino.mk