![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LGstaandart by
Diff: main.c
- Revision:
- 107:4d178bcc9d8a
- Parent:
- 106:250ddd8629c6
- Child:
- 108:030cdde08314
--- a/main.c Fri Apr 01 10:05:35 2016 +0000 +++ b/main.c Fri Apr 01 16:13:55 2016 +0000 @@ -32,7 +32,7 @@ extern uint32_t CMD_Mode; unsigned int secPuls; float DACF, K_DAC; - +int tempAMP; int main (void) { int i,ttemp; @@ -90,6 +90,14 @@ while ( 1 ) { //основной цикл. + /*tempAMP = Buff_Restored_sin [CountV255] - MaxAmp; + if (tempAMP > 0) {MaxAmp=Buff_Restored_sin [CountV255];} // подумать со знаком*/ + + + + + // if (tempAMP > 30) {MaxAmp = Buff_Restored_sin[CountV255];} // подумать со знаком + G_Photo_Exchange(); Concol (); // Проврка 0 консоли (вход и выход) @@ -211,12 +219,13 @@ if (Time[0] == 'm') { // выдача технологическая sprintf(Time,"\r\n"); WriteCon(Time); - sprintf((Time)," <%07d> ",Cur_Amp); WriteCon(Time); + /* sprintf((Time)," <%07d> ",Cur_Amp); WriteCon(Time); sprintf((Time)," <%07d> ",Znak_Amp); WriteCon(Time); - sprintf((Time)," <%07d> ",Spi.DAC_B); WriteCon(Time); - - - + sprintf((Time)," <%07d> ",Spi.DAC_B); WriteCon(Time);*/ + sprintf((Time),"tempAMP <%07d> ", tempAMP); WriteCon(Time); + sprintf((Time)," Buff_Restored_sin [CountV31] <%07d> ",Buff_Restored_sin [CountV31]); WriteCon(Time); + sprintf((Time)," Gyro.Amp <%07d> ",amp); WriteCon(Time); + } if (Time[0] == 'V') { // выдача технологическая