diff autocal/gmagicmain.c @ 43:8c7b0ba1e5c4

fc-rfcal-gmagic: main() coming along
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 May 2017 05:11:43 +0000
parents dcf7cd305e2b
children 5018fd8eecce
line wrap: on
line diff
--- a/autocal/gmagicmain.c	Sat May 27 05:04:14 2017 +0000
+++ b/autocal/gmagicmain.c	Sat May 27 05:11:43 2017 +0000
@@ -50,6 +50,16 @@
 	return(0);
 }
 
+prepare_rf_test_system()
+{
+	char cmd[80];
+
+	printf("Preparing RF test system for %s MHz Rx calibration\n");
+	sprintf(cmd, "signal-gen-setup %s\n", selected_band->name);
+	tsid_command(cmd);
+	return(0);
+}
+
 main(argc, argv)
 	char **argv;
 {
@@ -57,6 +67,12 @@
 	finish_cmdline(argc, argv);
 	connect_rvinterf_socket();
 	connect_tsid_socket();
+	setlinebuf(stdout);	/* to allow logging with tee */
+	prepare_rf_test_system();
+
+	printf("Putting the DUT into Test Mode\n");
+	do_tms(1);
+	do_rfpw(STD_BAND_FLAG, selected_band->rfpw_std_band);
 
 
 }