Where is the self test?

Firmware/software/electronics/mechanics
Post Reply
Call_me_a_Cab
Member
Posts: 51
Joined: Wed Dec 17, 2014 12:56 pm

Where is the self test?

Post 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,
CrazyGuy
Beginner
Posts: 27
Joined: Fri May 02, 2014 6:03 pm

Re: Where is the self test?

Post 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 :)
Call_me_a_Cab
Member
Posts: 51
Joined: Wed Dec 17, 2014 12:56 pm

Re: Where is the self test?

Post by Call_me_a_Cab »

Thanks dude!
Post Reply