apollo icon indicating copy to clipboard operation
apollo copied to clipboard

how to make matrix_a(vehicle state matrix) discrete in LatController::UpdateMatrix()?

Open l1xiao opened this issue 8 years ago • 2 comments

Dear Apollo designers, I am confused with matrix_ad obtained by following:

matrix_ad_ = (matrix_i + ts_ * 0.5 * matrix_a_) * (matrix_i - ts_ * 0.5 * matrix_a_).inverse();  

Why can this equation make matrix_a discrete? Thanks for your replying.

l1xiao avatar Nov 08 '18 08:11 l1xiao

I would like to know the answer. As far as I know, matrix_ad_ = (matrix_i + matrix_a_ *ts_).

ZFChen avatar Nov 23 '18 10:11 ZFChen

Correct me if I'm wrong. I think that's two different discretization methods.

matrix_ad_ = (matrix_i + matrix_a_ *ts_) -> this is based on Euler method.
matrix_ad_ = (matrix_i + ts_ * 0.5 * matrix_a_) * (matrix_i - ts_ * 0.5 * matrix_a_).inverse(); -> this is based on Tustin's method .

Reference: http://www-verimag.imag.fr/~tdang/DocumentsCours/2013Discretization.pdf

LuoChaojie avatar Nov 26 '18 03:11 LuoChaojie