Skip to content

Commit

Permalink
Addressing #16
Browse files Browse the repository at this point in the history
Printing RMC sentences before GGA ones in NMEA output
  • Loading branch information
ege010 committed May 24, 2017
1 parent d4f635c commit 9f92c6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goGPS/goGPS.m
Original file line number Diff line number Diff line change
Expand Up @@ -3530,7 +3530,7 @@
%----------------------------------------------------------------------------------------------

%if any positioning was done (either post-processing or real-time)
if (goGNSS.isPP(mode) || (mode == goGNSS.MODE_RT_NAV)) && ~exist('is_batch','var')
if (goGNSS.isPP(mode) || (mode == goGNSS.MODE_RT_NAV)) && (exist('is_batch','var') && is_batch == 0)
%display information
fprintf('Writing NMEA file...\n');
%file saving
Expand Down Expand Up @@ -3562,11 +3562,11 @@
end

%NMEA file write
fprintf(fid_nmea, [GGAstring '\n']);
if (pivot_OUT(i) ~= 0)
fprintf(fid_nmea, [RMCstring '\n']);
fprintf(fid_nmea, [GSVstring '\n']);
end
fprintf(fid_nmea, [GGAstring '\n']);
fprintf(fid_nmea, [GSAstring '\n']);
if (mode_vinc == 0) && ((mode == goGNSS.MODE_PP_KF_C_SA) || (mode == goGNSS.MODE_PP_KF_CP_SA) || (mode == goGNSS.MODE_PP_KF_C_DD) || (mode == goGNSS.MODE_PP_KF_CP_DD) || (mode == goGNSS.MODE_RT_NAV))
fprintf(fid_nmea, [PGGPKstring '\n']);
Expand Down

0 comments on commit 9f92c6c

Please sign in to comment.