comparison autocal/vcxomeas.c @ 25:5226dbaa5333

autocal/vcxomeas.c: brown paper bag
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 22 May 2017 22:09:59 +0000
parents 0b6881281d86
children b06532c9642f
comparison
equal deleted inserted replaced
24:0b6881281d86 25:5226dbaa5333
21 printf("Performing frequency measurement at DAC=%d (%s)\n", dac, hint); 21 printf("Performing frequency measurement at DAC=%d (%s)\n", dac, hint);
22 do_rfpw(AFC_DAC_VALUE, dac); 22 do_rfpw(AFC_DAC_VALUE, dac);
23 usleep(80000); 23 usleep(80000);
24 sprintf(cmd, "freq-meas %s\n", hint); 24 sprintf(cmd, "freq-meas %s\n", hint);
25 tsid_command(cmd); 25 tsid_command(cmd);
26 atof(tsid_response + 1); 26 meas = atof(tsid_response + 1);
27 printf("Measured frequency offset %.2f Hz\n", meas); 27 printf("Measured frequency offset %.2f Hz\n", meas);
28 return(meas); 28 return(meas);
29 } 29 }