Page 1 of 1

Where is the self test?

Posted: Fri Feb 13, 2015 7:07 pm
by Call_me_a_Cab
Hi Guys,

I'm looking take the baro out of the self test im my firmware as it has an I2C fault. Anyone seen the selftest code and could help me find it?

Thanks,

Re: Where is the self test?

Posted: Fri Feb 13, 2015 9:45 pm
by CrazyGuy
Hi,

hal/src/imu.c
There should be somewhere this code

Code: Select all

#ifdef IMU_ENABLE_PRESSURE_MS5611
  if (ms5611Init(I2C1) == TRUE)
  {
    isMs5611Present = TRUE;
    DEBUG_PRINT("MS5611 I2C connection [OK].\n");
  }
  else
  {
    DEBUG_PRINT("MS5611 I2C connection [FAIL].\n");
  }
#endif
So remove at the beginning of the file this line: #define IMU_ENABLE_PRESSURE_MS5611
I didn't test it but I think it will work :)

Re: Where is the self test?

Posted: Fri Feb 13, 2015 11:39 pm
by Call_me_a_Cab
Thanks dude!