mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-04-05 06:25:36 +00:00
add interpolation on cal
This commit is contained in:
parent
0ce695b886
commit
774a11ae74
5 changed files with 90 additions and 4 deletions
1
dsp.c
1
dsp.c
|
|
@ -89,6 +89,7 @@ calculate_gamma(float gamma[2])
|
|||
float rs = acc_ref_s;
|
||||
float rc = acc_ref_c;
|
||||
float rr = rs * rs + rc * rc;
|
||||
//rr = sqrtf(rr) * 1e8;
|
||||
float ss = acc_samp_s;
|
||||
float sc = acc_samp_c;
|
||||
gamma[0] = (sc * rc + ss * rs) / rr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue