3 insgps_ml('INSGPSInit');
4 insgps_ml('INSSetMagNorth',[24000 1700 43000]);
5 insgps_ml('INSSetMagVar',[5 5 5]/1000/1000);
6 insgps_ml('INSSetAccelVar',1.5e-4 * ones(1,3));
7 insgps_ml('INSSetGyroVar',2e-5*ones(1,3));
9 accel = [.15 -.15 -9.9];
10 gyro = [0.01 0.007 0.012];
12 %mag = [-1700 24000 43000];
20 [a(i,:) b K] = insgps_ml('INSStatePrediction',gyro, accel,0.01);
22 [c(i,:) d K] = insgps_ml('INSMagVelBaroCorrection',mag,[0 0 0], 0);
24 [c(i,:) d K] = insgps_ml('INSVelBaroCorrection',[0 0 0], 0);
28 imagesc(b); %//,[-10 0])