mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-15 09:40:35 +08:00
scripts: derive conversion from polar to cartesian wind state covariance
This commit is contained in:
committed by
CarlOlsson
parent
a9894d7e8c
commit
eff9af549f
@@ -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';
|
||||
Reference in New Issue
Block a user