Skip to content

Commit

Permalink
fix bias plot
Browse files Browse the repository at this point in the history
  • Loading branch information
jingpang committed May 28, 2017
1 parent e32dcb9 commit daba37b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pyplotscripts/plotnavstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@

bg = NS[:,11:14];
ba = NS[:,14:17];
dbg = NS[:,17:20];
dba = NS[:,20:23];
#dbg = NS[:,17:20];
#dba = NS[:,20:23];

fig2 = plt.figure(2);
p21, =plt.plot(time-time[0],(bg+dbg)[:,0]);
p22, =plt.plot(time-time[0],(bg+dbg)[:,1]);
p23, =plt.plot(time-time[0],(bg+dbg)[:,2]);
p21, =plt.plot(time-time[0],(bg)[:,0]);
p22, =plt.plot(time-time[0],(bg)[:,1]);
p23, =plt.plot(time-time[0],(bg)[:,2]);
plt.legend([p21,p22,p23],["bgx","bgy","bgz"]);
plt.title('gyr bias');
plt.savefig(filepath+'biasgyr.eps', format="eps");

fig3 = plt.figure(3);
p31, =plt.plot(time-time[0],(ba+dba)[:,0]);
p32, =plt.plot(time-time[0],(ba+dba)[:,1]);
p33, =plt.plot(time-time[0],(ba+dba)[:,2]);
p31, =plt.plot(time-time[0],(ba)[:,0]);
p32, =plt.plot(time-time[0],(ba)[:,1]);
p33, =plt.plot(time-time[0],(ba)[:,2]);
plt.legend([p31,p32,p33],["bax","bay","baz"]);
plt.title('acc bias');
plt.savefig(filepath+'biasacc.eps', format="eps");
Expand Down

0 comments on commit daba37b

Please sign in to comment.