close all
clear all

UHS_filenm = '2025263uhslogr';

%SM_filenm = 'ShipMotions_Thursday_HeaveCompTest.dat';


UHS_data = readtable(UHS_filenm);
%SM_data = readtable(SM_filenm);

UHS_t = datetime(UHS_data.Var1, 'ConvertFrom', 'posixtime');
%SM_t = datetime(SM_data.Var1, 'ConvertFrom', 'posixtime');

N = length(UHS_t);
dt = (UHS_data.Var1(end)-UHS_data.Var1(1))/N;


t =  UHS_data.Var1(1):dt:UHS_data.Var1(end);


UHS_lineout = UHS_data.Var8;
UHS_v = UHS_data.Var9;
UHS_T = UHS_data.Var10;



figure
ah1 = subplot(3,1,1)
plot(UHS_t,UHS_T)
ylabel('Tension (t)');
grid on;


ah2 = subplot(3,1,2)
plot(UHS_t,UHS_v)
ylabel('Wire Speed (m/s) (positive is paying out');
grid on;

ah3 = subplot(3,1,3)
plot(UHS_t,UHS_lineout)
ylabel('Wire Out (m)');
grid on;

linkaxes([ah1 ah2 ah3],'x')

f