add DVT1-2
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 52 KiB |
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 61 KiB |
|
|
@ -1,9 +1,12 @@
|
||||||
%temp get DVT traj
|
%temp get DVT traj
|
||||||
gearRatio = [100,100,120,100,100,80,50,100,1/(0.012/(2*pi))];
|
gearRatio = [100,100,120,100,100,80,50,100,1/(0.012/(2*pi))];
|
||||||
motorConstant = [0.21*2.5,0.21*2.5,0.128,0.119,0.094,0.094,0.094,0.099,0.031];
|
% motorConstant = [0.21*2.5,0.21*2.5,0.128,0.119,0.094,0.094,0.094,0.099,0.031];
|
||||||
|
% DVT1-2
|
||||||
|
motorConstant = [0.21,0.21,0.128,0.119,0.094,0.094,0.094,0.099,0.031];
|
||||||
sensorDir = [-1,1,-1,-1,-1,1,-1,1,1];
|
sensorDir = [-1,1,-1,-1,-1,1,-1,1,1];
|
||||||
% load("C:\Users\cosmicpower\AppData\Roaming\123pan\1833128421\123同步文件夹\R1000-GC-Data\large_range_lab1.mat");
|
% load("C:\Users\cosmicpower\AppData\Roaming\123pan\1833128421\123同步文件夹\R1000-GC-Data\large_range_lab1.mat");
|
||||||
load("D:\1833128421\123同步文件夹\R1000-GC-Data\large_range_lab1.mat")
|
% load("D:\1833128421\123同步文件夹\R1000-GC-Data\large_range_lab1.mat")
|
||||||
|
load("D:\1833128421\123同步文件夹\R1000-GC-Data\DVT1-2\large-range-lab1.mat");
|
||||||
posDir = [1,1,1,1,1,1,1,-1,1];
|
posDir = [1,1,1,1,1,1,1,-1,1];
|
||||||
isCurrentSensor = true;
|
isCurrentSensor = true;
|
||||||
% J9 traj
|
% J9 traj
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
gearRatio = [100,100,120,100,100,80,50,100,1/(0.012/(2*pi))];
|
gearRatio = [100,100,120,100,100,80,50,100,1/(0.012/(2*pi))];
|
||||||
motorConstant = [0.21*2.5,0.21*2.5,0.128,0.119,0.094,0.094,0.094,0.099,0.031];
|
% motorConstant = [0.21*2.5,0.21*2.5,0.128,0.119,0.094,0.094,0.094,0.099,0.031];
|
||||||
|
% DVT1-2
|
||||||
|
motorConstant = [0.21,0.21,0.128,0.119,0.094,0.094,0.094,0.099,0.031];
|
||||||
sensorDir = [-1,1,-1,-1,-1,1,-1,1,1];
|
sensorDir = [-1,1,-1,-1,-1,1,-1,1,1];
|
||||||
% load("D:\1833128421\123同步文件夹\R1000-GC-Data\lab12.mat");
|
% load("D:\1833128421\123同步文件夹\R1000-GC-Data\lab12.mat");
|
||||||
posDir = [1,1,1,1,1,1,1,-1,1];
|
posDir = [1,1,1,1,1,1,1,-1,1];
|
||||||
|
|
||||||
% J9 traj
|
% J9 traj
|
||||||
for i=9
|
for i=2
|
||||||
fileData=eval(strcat('fileData', num2str(i)));
|
fileData=eval(strcat('fileData', num2str(i)));
|
||||||
data = fileData.data;
|
data = fileData.data;
|
||||||
dataLength = length(data);
|
dataLength = length(data);
|
||||||
|
|
@ -30,7 +32,7 @@ end
|
||||||
% should run identifcation program firstly
|
% should run identifcation program firstly
|
||||||
resolution = 20;
|
resolution = 20;
|
||||||
tau_estimate=[];
|
tau_estimate=[];
|
||||||
for k=9
|
for k=3
|
||||||
if k ==2
|
if k ==2
|
||||||
qx = idntfcnTrjctry(k).q(k,:);
|
qx = idntfcnTrjctry(k).q(k,:);
|
||||||
qy = idntfcnTrjctry(k).q(6,:);
|
qy = idntfcnTrjctry(k).q(6,:);
|
||||||
|
|
@ -53,5 +55,5 @@ end
|
||||||
hold on;
|
hold on;
|
||||||
mesh(X,Y,current_estimate,current_estimate, 'FaceAlpha', 0.0)
|
mesh(X,Y,current_estimate,current_estimate, 'FaceAlpha', 0.0)
|
||||||
%%
|
%%
|
||||||
% saveas(gcf, ['./figure/' 'J' num2str(k) ' Gravity Model' '.jpg'])
|
saveas(gcf, ['./figure/' 'J' num2str(k) ' Gravity Model' '.jpg'])
|
||||||
|
|
||||||
|
|
|
||||||