Using Logging to record loco deck location

All discussions related to the Loco Positioning system
Post Reply
chilli65
Beginner
Posts: 10
Joined: Sat Oct 21, 2017 11:44 pm

Using Logging to record loco deck location

Post by chilli65 »

Which parameter to log in order to record the loco deck location?
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Using Logging to record loco deck location

Post by kristoffer »

The estimated position is available in kalman.stateX, kalman.stateY and kalman.stateZ

Sometimes it takes a while for the Kalman filter to converge and find the position. We sometimes use a hack (not theoretically correct but seems to work pretty OK) to understand if the filter has converged or not by looking at kalman.varPX, kalman.varPY and kalman.varPZ. An example implementation can be found in https://github.com/bitcraze/crazyflie-l ... equence.py, line 63
Post Reply