![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
Diff: MTimer.c
- Revision:
- 225:f8fee6c586cc
- Parent:
- 222:7de7b3bf3a1d
- Child:
- 226:4a4d5bd5fcd7
--- a/MTimer.c Tue Nov 21 07:31:05 2017 +0000 +++ b/MTimer.c Tue Dec 12 05:53:39 2017 +0000 @@ -60,8 +60,8 @@ static int tempdac=0,tempdac1,JumpTimer=0; if (Event1Hz) { - /* sprintf((Time),"%d %d\r\n",Gyro.PLCDelay, GyroP.Str.PLCDelay); - WriteCon(Time);*/ + /* sprintf((Time),"%d %d %d %d \r\n",Spi.DAC_B, Gyro.HighTreshold, Gyro.ResetLevelCool, Gyro.DownTreshold, Gyro.ResetLevelHeat); + WriteCon(Time);*/ if(Gyro.RgConA&0x4) JumpTimer=0; else { @@ -70,7 +70,7 @@ JumpTimer++; if(JumpTimer>(Gyro.TimeToJump-1)) { - Gyro.PLCDelay = GyroP.Str.PLCDelay/10; + Gyro.PLCDelay = GyroP.Str.PLCDelay; JumpMod(); JumpTimer=0; } @@ -125,7 +125,12 @@ void Event_500Hz(void)// событие раз в 500 Гц { if(Event500Hz) - { + { + if(Gyro.Debag2) + { + sprintf((Time),"%d %d \r\n", 0xffff-Spi.DAC_A, ((Spi.DAC_B-0x7fff)&0xffff)); + WriteCon(Time); + } Event500Hz--; Gyro.Event_500Hz=1;// Event 500Гц выдачи данных для постройки графика управления вибро } @@ -287,9 +292,16 @@ // LoopOn } - if (Time5K > 800) + if (Time5K > 200000) { Time5K = 0; - //Time100K = 0; + if(Gyro.Debag) + { + for(int q=0; q<64; q++) + { + sprintf((Time),"%i \r\n", ModArraySin [q]); + WriteCon(Time); + } + } Event5K ++; }