![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
forkd
Fork of LG2 by
Diff: main.c
- Revision:
- 98:95b8e79f13e1
- Parent:
- 97:a0f76c0c7692
- Child:
- 99:3d8f206ceac2
--- a/main.c Mon Mar 28 15:32:21 2016 +0000 +++ b/main.c Tue Mar 29 09:51:17 2016 +0000 @@ -103,32 +103,87 @@ sprintf(Time,"--%d.%3.d.%2.d.",Time1Hz,Time1K,Time100K); //Временно выдачпа временни из трех чисел WriteCon(Time); } - if (Time[0] == 'D') { Gyro.Discharg = StartDischarg; } if (Time[0] == 'L') { Gyro.BackLight = StartBackLight; } - if (Time[0] == '1') { // выдача технологическая + + + + + + + if (Time[0] == '1') { // выдача технологическая sprintf(Time,"\r\n"); WriteCon(Time); for (int i = 0; i < 32; i++ )sprintf((Time + i * 9)," <%05d> ",Buff_1Point[i]); WriteCon(Time); } - // Buff_Restored_sin + + if (Time[0] == '2') { // выдача технологическая + sprintf(Time,"\r\n"); + WriteCon(Time); + for (int i = 0; i < 32; i++ )sprintf((Time + i * 9)," <%05d> ", Buff_8Point[i]); + WriteCon(Time); + } + if (Time[0] == '3') { // выдача технологическая + sprintf(Time,"\r\n"); + WriteCon(Time); + for (int i = 0; i < 32; i++ )sprintf((Time + i * 9)," <%05d> ", Buff_16Point[i]); + WriteCon(Time); + } + + if (Time[0] == '4') { // выдача технологическая + sprintf(Time,"\r\n"); + WriteCon(Time); + for (int i = 0; i < 32; i++ )sprintf((Time + i * 9)," <%05d> ", Buff_16PointD[i]); + WriteCon(Time); + } + + if (Time[0] == '5') { // выдача технологическая + sprintf(Time,"\r\n"); + WriteCon(Time); + for (int i = 0; i < 32; i++ )sprintf((Time + i * 9)," <%05d> ",Buff_32Point[i]); + WriteCon(Time); + } + + if (Time[0] == '6') { // выдача технологическая + sprintf(Time,"\r\n"); + WriteCon(Time); + for (int i = 0; i < 32; i++ )sprintf((Time + i * 9)," <%05d> ",Buff_Restored_sin[i]); + WriteCon(Time); + } - if (Time[0] == '2') { // выдача технологическая + if (Time[0] == '7') { // выдача технологическая sprintf(Time,"\r\n"); WriteCon(Time); for (int i = 0; i < 32; i++ )sprintf((Time + i * 10)," <%07d> ",Buff_AMP64P[i]-(Buff_AMP[i])); WriteCon(Time); } - + if (Time[0] == '9') { // выдача технологическая + sprintf(Time,"\r\n"); + WriteCon(Time); + for (int i = 0; i < 32; i++ )sprintf((Time)," <%07d> ",Gyro.Frq); + WriteCon(Time); + } + + if (Time[0] == 'p') { // выдача технологическая + sprintf(Time,"\r\n"); + WriteCon(Time); + for (int i = 0; i < 32; i++ )sprintf((Time)," <%07d> ",FrecTp); + WriteCon(Time); + } + if (Time[0] == 'V') { // выдача технологическая + Gyro.Frq+=65000; + } + if (Time[0] == 'v') { // выдача технологическая + Gyro.Frq-=65000; + } - - if (Time[0] == '3') { // выдача технологическая + if (Time[0] == '8') { // выдача технологическая sprintf(Time,"\r\n"); WriteCon(Time); // for (int i = 0; i < 32; i++ )sprintf((Time + i * 9)," <%05d> ",Buff_AMP64P[i]-(Buff_AMP[i]*2)); @@ -140,14 +195,18 @@ // WriteCon(Time); } - - - if (Time[0] == 'j') { // выдача технологическая + if (Time[0] == 'b') { // выдача технологическая sprintf(Time,"\r\n"); WriteCon(Time); - for (int i = 0; i < 32; i++ ) WriteConByte(Buff_32Point[i]); - + + for (int i = 0; i < 32; i++ ) + { + ttemp=(Buff_Restored_sin[i]); + if (ttemp < 0) WriteCon("1"); else WriteCon("0"); + } + } + Read_CMD(); } if (OutBufCon1Count) OutBufCon1Count--;