mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
scripts: derive conversion from polar to cartesian wind state covariance
This commit is contained in:
parent
a9894d7e8c
commit
eff9af549f
8
matlab/scripts/Inertial Nav EKF/polar2cart_cov.m
Normal file
8
matlab/scripts/Inertial Nav EKF/polar2cart_cov.m
Normal 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';
|
||||
Loading…
x
Reference in New Issue
Block a user