![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
Diff: vibro.c
- Revision:
- 106:250ddd8629c6
- Parent:
- 105:bd01d8d20fb6
- Child:
- 107:4d178bcc9d8a
diff -r bd01d8d20fb6 -r 250ddd8629c6 vibro.c --- a/vibro.c Thu Mar 31 14:03:40 2016 +0000 +++ b/vibro.c Fri Apr 01 10:05:35 2016 +0000 @@ -71,7 +71,7 @@ Gyro.AmpN1=(unsigned int)((Nmax*(100-Gyro.AmpPer))/400); //левая граница амплитуды Gyro.AmpN2=(unsigned int)((Nmax/2)-Gyro.AmpN1); //правая граница амплитуды Flag=1; - + Gyro.tau = Gyro.AmpN2-Gyro.AmpN1; } else { @@ -83,6 +83,7 @@ Gyro.AmpN1=(unsigned int)((Nmax*(100-Gyro.AmpPer+Gyro.AmpPerDel))/400);//левая граница амплитуды Gyro.AmpN2=(unsigned int)((Nmax/2)-Gyro.AmpN1); //правая граница амплитуды Flag=0; + Gyro.tau = Gyro.AmpN2-Gyro.AmpN1; } //Tnoise=55; @@ -113,7 +114,7 @@ Time_vibro=0; break; case 20: -MaxAmp = Buff_Restored_sin [CountV31]; + MaxAmp = Buff_Restored_sin [CountV31]; Gyro.Amp -= (MaxAmp - 150)*2; // расчет амплитудв с учетом разници //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// if(Gyro.Amp>5500000) {