Skip to content

Commit 82ecdc4

Browse files
committed
Fix merge error: broken GUI_Edit_Settings + minor addition
1 parent 876e4be commit 82ecdc4

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

source/obj/Core_Sky.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2686,7 +2686,7 @@ function coordFit(this, gps_time, coord, go_ids)
26862686
% sat = satellite to be interpolated (optional) go_id index
26872687
%
26882688
% SYNTAX:
2689-
% [X_sat] = this.coordInterpolateKF(gps_time, go_id)
2689+
% [X_sat, V_sat] = this.coordInterpolateKF(gps_time, go_id)
26902690

26912691
if isempty(this.time_ref_coord)
26922692
Core.getLogger.addWarning('Core_Sky appears to be empty, Breva is going to misbehave\nTrying to load needed data')

source/obj/GUI/GUI_Edit_Settings.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3113,6 +3113,7 @@ function download(this, caller, event, par_type)
31133113
fw.downloadResource(par_type,Core.getState.getSessionsStartExt, Core.getState.getSessionsStopExt);
31143114
end
31153115

3116+
function createNewProject(this, caller, event)
31163117
% Create a new project
31173118
GUI_New_Project(this);
31183119
end

source/obj/Receiver_Work_Space.m

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4782,7 +4782,7 @@ function toString(this)
47824782
end
47834783
end
47844784

4785-
function [XS_tx_r ,XS_tx] = getXSTxRot(this, go_id)
4785+
function [XS_tx_r ,XS_tx, VS_tx_all] = getXSTxRot(this, go_id)
47864786
% Compute satellite positions at transmission time and rotate them by the earth rotation
47874787
% occured during time of travel of the signal
47884788
%
@@ -4793,19 +4793,29 @@ function toString(this)
47934793
% sat = go_id of the satellite (optional)
47944794
%
47954795
% OUTPUT
4796+
% XS_tx_r = satellite postions at transimission time rotated by earth rotation occured during time of travel
47964797
% XS_tx = satellite position computed at trasmission time
4797-
% XS_tx_r = Satellite postions at transimission time rotated by earth rotation occured during time of travel
4798-
%
4798+
% VS_tx_all = satellite velocity computed at trasmission time
47994799
if nargin > 1
48004800
[XS_tx] = this.getXSTx(go_id);
48014801
[XS_tx_r] = this.earthRotationCorrection(XS_tx, go_id);
48024802
else
48034803
n_sat = this.parent.getMaxSat;
48044804
XS_tx_r = zeros(this.time.length, n_sat, 3);
4805-
for i = unique(this.go_id)'
4806-
[XS_tx] = this.getXSTx(i);
4807-
[XS_tx_r_temp] = this.earthRotationCorrection(XS_tx, i);
4808-
XS_tx_r(logical(this.sat.avail_index(:,i)) ,i ,:) = permute(XS_tx_r_temp, [1 3 2]);
4805+
if nargout == 3
4806+
VS_tx_all = zeros(this.time.length, n_sat, 3);
4807+
for i = unique(this.go_id)'
4808+
[XS_tx, VS_tx] = this.getXSTx(i);
4809+
[XS_tx_r_temp] = this.earthRotationCorrection(XS_tx, i);
4810+
XS_tx_r(logical(this.sat.avail_index(:,i)) ,i ,:) = permute(XS_tx_r_temp, [1 3 2]);
4811+
VS_tx_all(logical(this.sat.avail_index(:,i)) ,i ,:) = permute(VS_tx, [1 3 2]);
4812+
end
4813+
else
4814+
for i = unique(this.go_id)'
4815+
[XS_tx] = this.getXSTx(i);
4816+
[XS_tx_r_temp] = this.earthRotationCorrection(XS_tx, i);
4817+
XS_tx_r(logical(this.sat.avail_index(:,i)) ,i ,:) = permute(XS_tx_r_temp, [1 3 2]);
4818+
end
48094819
end
48104820
end
48114821
end
@@ -4850,7 +4860,7 @@ function toString(this)
48504860
end
48514861
end
48524862

4853-
function [XS_tx] = getXSTx(this, sat)
4863+
function [XS_tx, VS_tx] = getXSTx(this, sat)
48544864
% SYNTAX
48554865
% [XS_tx_frame , XS_rx_frame] = this.getXSTx()
48564866
%
@@ -4859,6 +4869,7 @@ function toString(this)
48594869
% sta : index of the satellite
48604870
% OUTPUT
48614871
% XS_tx = satellite position computed at trasmission time
4872+
% VS_tx = satellite velocity computed at trasmission time
48624873
%
48634874
% Compute satellite positions at trasmission time
48644875
time_tx = this.getTimeTx(sat);
@@ -4869,17 +4880,9 @@ function toString(this)
48694880
sky = Core.getCoreSky;
48704881
%sky.initSession(this.time.first, this.time.last, Core.getConstellationCollector);
48714882
[XS_tx] = sky.coordInterpolate(time_tx, sat);
4872-
4873-
4874-
% [XS_tx(idx,:,:), ~] = Core.getCoreSky.coordInterpolate(time_tx);
4875-
% XS_tx = zeros(size(this.sat.avail_index));
4876-
% for s = 1 : size(XS_tx)
4877-
% idx = this.sat.avail_index(:,s);
4878-
% %%% compute staeliite position a t trasmission time
4879-
% time_tx = this.time.subset(idx);
4880-
% time_tx = time_tx.time_diff - this.sat.tot(idx,s)
4881-
% [XS_tx(idx,:,:), ~] = Core.getCoreSky.coordInterpolate(time_tx);
4882-
% end
4883+
if nargout == 2
4884+
[XS_tx, VS_tx] = sky.coordInterpolate(time_tx, sat);
4885+
end
48834886
end
48844887
end
48854888

0 commit comments

Comments
 (0)