I recently design my first EKF Algorithm for my drone project for attitude estimation, I am too much time confusing, about which value I put in Q and R Matrix in the real world. I use bmi088 IMu, In the IMU datasheet I see noise density, I know Q and R are covariance matrices, so I need to put their gyro and acceleration sensor's standard deviation along each axis right? how how to compute standard deviation for sensors? I see some where σ= ND * sqrt(SR )

if for example, consider a noise density of 0.01°/s/sqrt(HZ), which needs to be converted into a standard deviation at a sampling rate of 100 Hz:

σ=0.01 * sqrt(100)

so can I put these values in my process noise covariance matrix? Is this way to calculate the standard deviation for sensors like acceleration and gyro? please help me guys!

I am recenty designing EKF for attitude estimation, and I want to know which value should I put in Q and R matrices.

1

There are 1 best solutions below

2
kartiks77 On

For measurement covariance, you would have to put σ^2 in the R matrix. For process noise covariance matrix Q, you have to make a diagonal matrix with covariances for each state. These can be tuned to achieve the best estimation.

For example, if you increase the covariances of Q, the estimation will rely more on measurements and vice versa.