changeset 132:94e8a410d6bd

fc-rfcal-txcheck: pass PCL to tester (txpwr-cal-pcl)
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 20 Dec 2021 03:52:01 +0000
parents 8e26cb57c7f8
children c99b1dce04ec
files autocal/txpwrmeas.c autocal/txstandchk.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/autocal/txpwrmeas.c	Mon Dec 20 03:29:23 2021 +0000
+++ b/autocal/txpwrmeas.c	Mon Dec 20 03:52:01 2021 +0000
@@ -18,6 +18,16 @@
 	return(0);
 }
 
+pass_pcl_to_tester(pcl)
+	unsigned pcl;
+{
+	char cmd[80];
+
+	sprintf(cmd, "txpwr-cal-pcl %u\n", pcl);
+	tsid_command(cmd);
+	return(0);
+}
+
 double
 tx_power_meas()
 {
--- a/autocal/txstandchk.c	Mon Dec 20 03:29:23 2021 +0000
+++ b/autocal/txstandchk.c	Mon Dec 20 03:52:01 2021 +0000
@@ -86,6 +86,7 @@
 	for (plnum = selected_band->start_plnum;
 	     plnum <= selected_band->end_plnum; plnum++, spec_dbm -= 2) {
 		do_txpw(TX_PWR_LEVEL, plnum);
+		pass_pcl_to_tester(plnum);
 		usleep(20000);
 		meas = tx_power_meas();
 		printf(