ネットワークアップデート機能とか、Pachubeへの情報登録とかの処理を追加しています

Dependencies:   Terminal EthernetNetIf Pachube TextLCD mbed ConfigFile FirmwareUpdater

Revision:
0:a62f36392b9b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/geigercounter.cpp	Tue May 17 13:49:41 2011 +0000
@@ -0,0 +1,16 @@
+#include "geigercounter.h"
+
+
+
+float Geigercounter::getcps()
+{
+    if(_geigerrun)_stoptime=time(NULL);
+    int seconds=_stoptime-_starttime;
+    float cps=(float)_count/(float)seconds;
+    return cps;
+}
+
+float Geigercounter::getcpm()
+{
+  return this->getcps()*60.0;
+}
\ No newline at end of file