ガイガーカウンタのカウントアップに合わせて表示内容を更新する仕様にしました

Dependencies:   Terminal TextLCD mbed SDFileSystem

Files at this revision

API Documentation at this revision

Comitter:
abe00makoto
Date:
Wed May 04 19:37:08 2011 +0000
Parent:
0:0d32a6635113
Commit message:

Changed in this revision

geiger.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/geiger.cpp	Wed May 04 18:58:09 2011 +0000
+++ b/geiger.cpp	Wed May 04 19:37:08 2011 +0000
@@ -11,7 +11,7 @@
 #define AVARAGE_MIN 5
 
 //sleeptime after a minute cout
-#define SLEEP_SEC 60 
+#define SLEEP_SEC 30 
 
 //if sdcard not use commentout #define SD_USE
 #define SD_USE
@@ -99,7 +99,8 @@
     cpm+=cpm_array[i];
   }
   cpm/=(first_touch_index+1);
-  usv=cpm/20.0;
+  //si-3bg is maybe 200 cps/R/h = 200 cps/ 10000uSv/h = 0.02 cps/uSv/h  
+  usv=cpm/60.0*0.02;
   
   //peak usv set
   if(peak_usv<usv)