scripts: derive conversion from polar to cartesian wind state covariance

This commit is contained in:
Paul Riseborough 2016-07-24 21:14:29 +10:00 committed by CarlOlsson
parent a9894d7e8c
commit eff9af549f

View File

@ -0,0 +1,8 @@
clear all;
syms spd yaw real;
syms R_spd R_yaw real;
vx = spd*cos(yaw);
vy = spd*sin(yaw);
Tpc = jacobian([vx;vy],[spd;yaw]);
R_polar = [R_spd 0;0 R_yaw];
R_cartesian = Tpc*R_polar*Tpc';