close all
clear all

data1 = load('../DecodedResults/2025.07.06T04.22.05_raw.mat');
data2 = load('../DecodedResults/2025.07.06T05.22.08_raw.mat');


%data1 = load('../DecodedResults/2025.07.07T11.23.35_raw.mat');
%data2 = load('../DecodedResults/2025.07.07T12.23.38_raw.mat');


SC_Time = [data1.SC_Time ; data2.SC_Time];
SC_Range = [data1.SC_Range ; data2.SC_Range];

TC_Time = [data1.TC_Time ; data2.TC_Time];
TC_TetherVolt = [data1.TC_TetherVolt ; data2.TC_TetherVolt];
TC_BattVolt = [data1.TC_BattVolt ; data2.TC_BattVolt];


figure
plot(SC_Time,SC_Range);
hold all;
plot(TC_Time,TC_TetherVolt);
plot(TC_Time,TC_BattVolt);
datetick('x')
grid on;
legend('SC_Range','Tether Voltage','Batt Votlage');

title('2025.07.06T04.22.05_raw.mat and 2025.07.06T05.22.08_raw.mat')
%title('2025.07.07T11.23.35.mat and 2025.07.07T12.23.38_raw.mat')

%ah1 = subplot(4,1,1);
% plot(SC_Time,SC_Range)
% datetick('x')
% grid on;
% legend('SC_Range');
% 
% 
% ah2 = subplot(4,1,2);
% plot(TC_Time,TC_TetherVolt);
% hold all;
% plot(TC_Time,TC_BattVolt);
% datetick('x')
% grid on;
% legend('Tether Voltage','Batt Votlage');