bitcraze / crazyflie-firmware

The main firmware for the Crazyflie Nano Quadcopter, Crazyflie Bolt Quadcopter and Roadrunner Positioning Tag.
GNU General Public License v3.0
1.19k stars 1.06k forks source link

Barometer logging does not work with the kalman estimator #616

Closed krichardsson closed 3 years ago

krichardsson commented 4 years ago

Sensor reading is not handled the same way for all estimators. When using the kalman estimator the barometer data is not passed on to the logging variable and plotting in the client shows 0.

How to reproduce:

  1. Switch to the kalman estimator using a parameter or a deck (LPS for instance)
  2. Set up logging for baro.pressure in the client

Expected result: The current air pressure, around 1000

Actual result: 0

whoenig commented 3 years ago

This is related to #722.

whoenig commented 3 years ago

This works now with the latest master (tested using CF 2.1 with flow deck installed).