view autocal/txpwrmeas.c @ 54:21f6dba5c4df

fc-rfcal-txcheck ready to test
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 May 2017 16:03:40 +0000
parents
children b313884c79fd
line wrap: on
line source

/*
 * This module contains the Tx power measurement function.
 */

#include <stdio.h>
#include <stdlib.h>

extern char tsid_response[];

double
tx_power_meas()
{
	double meas;

	tsid_command("power-meas\n");
	meas = atof(tsid_response + 1);
	return(meas);
}