![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
Diff: main.c
- Revision:
- 128:1e4675a36c93
- Parent:
- 127:6a7472d67804
- Child:
- 129:406995a91322
--- a/main.c Mon Apr 11 03:13:42 2016 +0000 +++ b/main.c Mon Apr 11 11:04:34 2016 +0000 @@ -114,6 +114,10 @@ sprintf((Time)," <%07d> <%07d>",Gyro.F_ras,Param2); WriteCon(Time); } + + if (Time[0] == 'q') { // внешняя защелка + Gyro.EXT_Latch=1; + } if (Time[0] == '1') { // выдача технологическая sprintf(Time,"\r\n"); WriteCon(Time); @@ -203,9 +207,12 @@ if (Time[0] == 'm') { // выдача технологическая sprintf(Time,"\r\n"); WriteCon(Time); - sprintf((Time),"Cur_Amp <%07d> ", Cur_Amp); WriteCon(Time); - sprintf((Time),"Znak_Amp <%07d> ", Znak_Amp); WriteCon(Time); - sprintf((Time),"AD_Regul <%07d> ", AD_Regul); WriteCon(Time); + // sprintf((Time),"Cur_Amp <%07d> ", Cur_Amp); WriteCon(Time); + // sprintf((Time),"Znak_Amp <%07d> ", Znak_Amp); WriteCon(Time); + // sprintf((Time),"AD_Regul <%07d> ", AD_Regul); WriteCon(Time); + + sprintf((Time),"PLC_Delta <%07d> ", Gyro.PLC_Delta); WriteCon(Time); + sprintf((Time),"PLC_DeltaADD <%07d> ", Gyro.PLC_DeltaADD); WriteCon(Time); // printf((Time),"AD_Regul <%07d> ", Delta); WriteCon(Time); // sprintf((Time),"Spi.DAC_B <%07d> ",Spi.DAC_B); WriteCon(Time);*/ @@ -249,6 +256,10 @@ } + if (Gyro.PLC_Error2Mode) { // выдача технологическая + sprintf(Time,"\r\nPLC_Error2Mode"); + WriteCon(Time); + } } @@ -274,7 +285,10 @@ break; case 3: if(Gyro.Delta500_Event==1)CMD_Delta_500Hz(); - break; + break; + case 4: + if(Gyro.EXT_Latch==1){CMD_Delta_Ext();} + break; } if (Spi.ADC_NewData == 1) // был приход новых данных по ацп сдесь сделать обработку информации и подготовку для выдачи делается 1 раз за вибро {