gnss-ins-sim icon indicating copy to clipboard operation
gnss-ins-sim copied to clipboard

Why does ‘g’ need to be multiplied by -1 in the NED coordinate system?

Open WongRZ opened this issue 2 years ago • 1 comments

Dear author, In #10 Issue, you mentioned that " The accel in the body frame = c_n_to_b * f_NED = c_n_to_b * [0;0;-1]g ". My question is, why does g need to be multiplied by -1 in the NED coordinate system? Isn't the direction of gravity consistent with that of D? Thanks a lot.

WongRZ avatar Sep 27 '22 08:09 WongRZ

Hi WongRZ,

Sorry for the late reply because I haven't been working on this project for a while. I hope you have found the answer. But if not, please let me explain.

First, the accelerometer measures NON-GRAVITATIONAL acceleration: f = a - g f is the accelerometer measurement vector, a is acceleration we can observe, and g is gravity vector.

When the unit is not moving, a = [0; 0; 0]. On Earth, in the NED frame, g = [0; 0; 1]g.

So, f = -g = [0; 0; -1]g.

dxg-aceinna avatar Oct 11 '22 09:10 dxg-aceinna

Thanks a lot for your reply. I found the answer, which is consistent with your reply. And the simulation data works in my code now. This is a very convenient simulation project. Thank you for your efforts.

WongRZ avatar Oct 13 '22 09:10 WongRZ

Thank you for your feedback.

dxg-aceinna avatar Oct 14 '22 09:10 dxg-aceinna