fork

Dependencies:   mbed

Fork of LG by igor Apu

Revision:
215:b58b887fd367
Parent:
214:4c70e452c491
Child:
216:189b0ea1dc38
--- a/Command.c	Wed Aug 16 09:00:25 2017 +0000
+++ b/Command.c	Tue Aug 29 06:33:08 2017 +0000
@@ -693,7 +693,7 @@
     BuffTemp[23] =  (Temp1 >> 0) & 0xff;	
     										//24
 
-    Temp = Gyro.PLC_Eror_count>>4; //Gyro.AD_Slow >> 16; 
+    Temp = Gyro.PLC_Eror_count; //Gyro.AD_Slow >> 16; 
     Gyro.PLC_Eror_count = 0;
     BuffTemp[24] = (Temp >> 8) & 0xff;//                                        //25 ФД СРП
     BuffTemp[25] = (Temp >> 0) & 0xff;// 										//26 ФД СРП
@@ -1243,32 +1243,45 @@
              
             //   Spi.DAC_B = 32000;
              } 
-             
+             if (Time[0] == 'h') 
+            {		// выдача технологическая
+               for(int q=0; q<64; q++)
+            		{
+                	sprintf((Time),"%d \r\n",(BuffADC_32PointD[q]));
+    	   			WriteCon(Time);
+            		}
+            	
+            }       
              
             if (Time[0] == 'm') 
             {		// выдача технологическая
                for(int q=0; q<64; q++)
-            	{
-                sprintf((Time),"%d  \r\n",    BuffADC_64Point[q]);
-    	   		WriteCon(Time);
-            	}
+            		{
+                	sprintf((Time),"%d  \r\n",    BuffADC_64Point[q]);
+    	   			WriteCon(Time);
+            		}
+            		
             } 
             
-                  if (Time[0] == 'n') 
+            if (Time[0] == 'n') 
             {		// выдача технологическая
                for(int q=0; q<64; q++)
-            	{
-                sprintf((Time),"%d  \r\n",   BuffADC_32PointD[q]);
-    	   		WriteCon(Time);
-            	}
+            		{
+            	    if( Buff_Restored_Mod[(q-Gyro.PLC_Phase)& 0x3f ] > 0) sprintf((Time)," 1 ");  
+               		else sprintf((Time)," 0 ");  
+               		WriteCon(Time);         		 	
+                	}
+                	sprintf((Time)," \r\n ");
+                	WriteCon(Time); 
             } 
-                if (Time[0] == 'b') 
-            {		// выдача технологическая
-               for(int q=0; q<64; q++)
-            	{
-                sprintf((Time),"   %d  \r\n",   BuffADC_1Point[ q] );
-    	   		WriteCon(Time);
-            	}
+           
+            if (Time[0] == 'b') 
+            {          
+                for(int q=0; q<64; q++)
+            		{
+                	sprintf((Time),"%d  \r\n",   Buff_Restored_Mod[q]);
+    	   			WriteCon(Time);
+            		}
             }