make controlable marker with lever switch, test menu display

This commit is contained in:
TT 2016-11-03 21:56:56 +09:00
parent 23f2b7f695
commit 5498d63751
5 changed files with 106 additions and 30 deletions

1
dsp.c
View file

@ -134,6 +134,7 @@ void calclate_gamma(float *gamma)
acc_ref += (float)rr*rr + (float)ri*ri;
}
rn = sqrtf(acc_ref / len) * 2e3 * len;
//rn = acc_ref;
gamma[0] = -acc_r / rn;
gamma[1] = -acc_i / rn;
}