close all
clear all

UHS_filenm = 'rov_data_2025_day335-340.csv';

UHS_data = readtable(UHS_filenm);

UHS_t = datetime(UHS_data.epoch_seconds_utc-8*3600, 'ConvertFrom', 'posixtime');


figure('fontsize',18)
ah2 = subplot(2,1,2)
plot(UHS_t,UHS_data.rov_tension)
ylabel('Tension (t)');
grid on;

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

ah1 = subplot(2,1,1)
plot(UHS_t,UHS_data.rov_wire_length)
ylabel('Wire Out (m)');
grid on;

linkaxes([ah1 ah2],'x')
fontsize(18,"points")