ガイガーカウンタのカウントアップに合わせて表示内容を更新する仕様にしました
Dependencies: Terminal TextLCD mbed SDFileSystem
Diff: geiger.cpp
- Revision:
- 1:ce4b3a504955
- Parent:
- 0:0d32a6635113
diff -r 0d32a6635113 -r ce4b3a504955 geiger.cpp --- 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)