sensor

Dependencies:   HMC6352 mbed

Fork of program_SensorBlock by Fumiya Fujisawa

Revision:
8:f547b66f3c43
Parent:
6:97015325107b
--- a/main.cpp	Sat Mar 08 13:16:25 2014 +0000
+++ b/main.cpp	Wed Mar 12 04:47:18 2014 +0000
@@ -279,37 +279,6 @@
         }
         ping_flag++;
         //myled = 4;
-        /*
-        moving_ave(Ping,num[Ping],ping_function(num[Ping]));
-        //moving_ave(Line,num[Line],line_function(num[Line]));
-        //pc.printf("%d\n", line_function(2));
-        if(line_function(num[Line]) > 500){
-            value_line[num[Line]] = 1;
-        } else {
-            value_line[num[Line]] = 0;
-        }
-        moving_ave(Ir,num[Ir],ir_function(num[Ir]));
-        
-        num[Ping]++;
-        num[Ir]++;
-        num[Line]++;        
-        if(num[Ping]>= ALL_PING){
-            num[Ping] = 0; 
-            
-            //putchar('\n');
-        }
-        if(num[Ir]>= ALL_IR){
-            num[Ir] = 0;
-            ir_min_fun();
-            //pc.printf("%d %d %d %d %d %d %d %d %d %d\n", value_ir[0], value_ir[1], value_ir[2], value_ir[3], value_ir[4], value_ir[5], value_ir[6], value_ir[7], value_ir[8], value_ir[9]);
-            pc.printf("%d %d\n",value_ir_min,ir_min_num);
-            //putchar('\n');
-        }
-        if(num[Line]>= ALL_LINE){
-            num[Line] = 0;
-            //putchar('\n');
-        }
-        */
         
     }
 }
\ No newline at end of file