Lighthouse deck disables barometer

Post here to get support
Post Reply
naiveHobo
Beginner
Posts: 5
Joined: Wed Feb 12, 2020 10:58 pm

Lighthouse deck disables barometer

Post by naiveHobo »

I'm trying to log the barometer log variables (temperature, pressure, asl). I get plausible log values when I use a crazyflie without the lighthouse deck but when the lighthouse deck is attached, the barometer log values are always zero. Is this a bug? Or do I need to enable the barometer explicitly when the lighthouse deck is attached?
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Lighthouse deck disables barometer

Post by kimberly »

Hi !

I was able to recreate this too! This is indeed strange and most definitely a bug. We will try to investigate this at the office. Perhaps the lighthouse is holding some kind of reset pin, but I don't think that any part of the IMU is connected to the deck pins (I think)

I'll let you know once we know more!
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Lighthouse deck disables barometer

Post by kimberly »

So it seems that this is not a hardware issue, as I see the same thing with the flowdeck too. If you would change the estimator in paramters (stabilizer.estimator) to the complementary filter (number 1), the baro log works again. But ofcourse this estimator type is not suitable for the lighthouse system and should only be used for manual flight.

In the kalman filter there is this KALMAN_USE_BARO_UPDATE, but this shouldn't be affecting the log variable of the baro itself... so it will require some more investigation. But at least you know that it is not only lighthouse deck related!
Post Reply