diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-08-16 20:57:38 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-08-16 20:57:38 +0200 |
commit | 73286f3262b624ab62ce3f2d55e3521c1cb5f135 (patch) | |
tree | 3826b3da0c537d5fb4972c3b1e7824cc91528539 /nuttx/configs | |
parent | 8575d8cd49a525bf67e7a11eeb3dd0261e20c77b (diff) | |
download | px4-firmware-73286f3262b624ab62ce3f2d55e3521c1cb5f135.tar.gz px4-firmware-73286f3262b624ab62ce3f2d55e3521c1cb5f135.tar.bz2 px4-firmware-73286f3262b624ab62ce3f2d55e3521c1cb5f135.zip |
Minor tweaks and command parsing debugging
Diffstat (limited to 'nuttx/configs')
-rw-r--r-- | nuttx/configs/px4fmu/src/up_nsh.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/nuttx/configs/px4fmu/src/up_nsh.c b/nuttx/configs/px4fmu/src/up_nsh.c index 6e092e3b4..d089f2df3 100644 --- a/nuttx/configs/px4fmu/src/up_nsh.c +++ b/nuttx/configs/px4fmu/src/up_nsh.c @@ -236,19 +236,6 @@ int nsh_archinitialize(void) if (acc_fail) message("[boot] FAILED to attach BMA180 accelerometer\r\n"); - int mpu_attempts = 0; - int mpu_fail = 0; - - while (mpu_attempts < 1) - { - mpu_fail = mpu6000_attach(spi1, PX4_SPIDEV_MPU); - mpu_attempts++; - if (mpu_fail == 0) break; - up_udelay(200); - } - - if (mpu_fail) message("[boot] FAILED to attach MPU 6000 gyro/acc\r\n"); - /* initialize I2C2 bus */ i2c2 = up_i2cinitialize(2); @@ -320,7 +307,7 @@ int nsh_archinitialize(void) if (eeprom_fail) message("[boot] FAILED to attach FMU EEPROM\r\n"); /* Report back sensor status */ - if (acc_fail || gyro_fail || mag_fail || baro_fail || eeprom_fail) + if (gyro_fail || mag_fail || baro_fail || eeprom_fail) { up_ledon(LED_AMBER); } |