mFSK = str2num(arg_list{1});
Rs = str2num(arg_list{2});
-printf ("\nmFSK: %d Rs: %d\n", mFSK, Rs);
+if nargin == 3
+ % Optionally upload Telemetry to Habitat (http://tracker.habhub.org/)
+ if strcmp(arg_list{3}, "telem")
+ telem_upload_enabled = true;
+ else
+ telem_upload_enabled = false;
+ end
+end
+printf ("\nmFSK: %d Rs: %d nargin: %d telem: %d\n", mFSK, Rs, nargin, telem_upload_enabled);
% include modem library
gps_log = "~/Desktop/gps_log.txt"
system_command = "echo -n \"/home/david/Desktop/gps_log.txt\" | nc -u -q1 127.0.0.1 21234";
-% Upload Telemetry to Habitat (http://tracker.habhub.org/)
-telem_upload_enabled = false;
% Update this command with your own callsign.
telem_upload_command = "python telem_upload.py -c vk5dgr_Octave";
raw_data = args.raw_data
print(raw_data)
-if raw_data.startswith("HORUS"):
+if raw_data.startswith("AX5ARG"):
# Assume the data is a standard telemetry string and just upload it.
# Append a Newline and checksum (if not alread there) to the end, and "$$"'s to the start.
if not '*' in raw_data: